CN113822767A - Social relationship determination method, device, equipment and storage medium - Google Patents

Social relationship determination method, device, equipment and storage medium Download PDF

Info

Publication number
CN113822767A
CN113822767A CN202010529644.5A CN202010529644A CN113822767A CN 113822767 A CN113822767 A CN 113822767A CN 202010529644 A CN202010529644 A CN 202010529644A CN 113822767 A CN113822767 A CN 113822767A
Authority
CN
China
Prior art keywords
person
social relationship
determining
target
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010529644.5A
Other languages
Chinese (zh)
Inventor
陈培琴
徐炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202010529644.5A priority Critical patent/CN113822767A/en
Publication of CN113822767A publication Critical patent/CN113822767A/en
Pending legal-status Critical Current

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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Abstract

The embodiment of the application discloses a social relationship determination method, a social relationship determination device, social relationship determination equipment and a storage medium. The method comprises the following steps: acquiring a person image containing a target person and at least one associated person; determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image; and determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data. According to the scheme, the interaction mode and the positioning record information of the target person and the associated person are determined through the person image, so that the social relationship between the target person and the associated person is automatically and accurately determined, and automatic perfect updating is realized.

Description

Social relationship determination method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of security and protection, in particular to a social relationship determining method, a social relationship determining device, social relationship determining equipment and a storage medium.
Background
Social relationships are the general term for the mutual relationships that people have in the course of common physical and mental activities, i.e. all relationships between people. From the perspective of both parties to the relationship, the social relationship includes the relationship between individuals, the relationship between individuals and groups, and the relationship between individuals and countries; also included are generally group-to-group relationships, group-to-country relationships.
At present, social relations are determined by means of interpersonal association through social information or registered official information, such as company responsibility association, family information registration and the like, and information registration is manually input, so that accuracy, timeliness and expansibility of data cannot be guaranteed.
Disclosure of Invention
The embodiment of the application provides a social relationship determination method, a social relationship determination device, social relationship determination equipment and a storage medium, so that the social relationship can be accurately determined in time, and automatic perfect updating is realized.
In one embodiment, an embodiment of the present application provides a social relationship determining method, including:
acquiring a person image containing a target person and at least one associated person;
determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image;
and determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
In another embodiment, the present application further provides a social relationship determining apparatus, including:
the personnel image acquisition module is used for acquiring a personnel image containing a target personnel and at least one associated personnel;
the relation data determining module is used for determining first social relation data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image;
and the social relationship information determining module is used for determining the social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
In another embodiment, an embodiment of the present application further provides an apparatus, including: one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the social relationship determining method according to any one of the embodiments of the present application.
In yet another embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the social relationship determining method according to any one of the embodiments of the present application.
In the embodiment of the application, first social relationship data between a target person and each associated person is determined according to an interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image; and determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data, thereby automatically and accurately determining the social relationship between the target person and the associated person and realizing automatic perfect updating.
Drawings
FIG. 1 is a flow chart of a social relationship determination method provided by an embodiment of the present invention;
fig. 2 is a flowchart of a social relationship determining method according to another embodiment of the present invention;
FIG. 3 is a diagram illustrating a social relationship information structure according to another embodiment of the present invention;
fig. 4 is a flowchart of a social relationship determining method according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a social relationship determining apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a social relationship determining apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a social relationship determining method according to an embodiment of the present invention. The social relationship determining method provided by the embodiment can be applied to the case of determining the social relationship between persons, and typically, the embodiment of the present application can be applied to the case of determining the social relationship between a target person and an associated person according to the acquired image of the person. The method may particularly be performed by a social relationship determining apparatus, which may be implemented in software and/or hardware, which may be integrated in a social relationship determining device. Referring to fig. 1, the method of the embodiment of the present application specifically includes:
and S110, acquiring a person image containing the target person and at least one associated person.
The image can be an image collected by an image collector in a monitoring scene, or an image obtained from a video, and the monitoring scene can be an occasion such as a market, a community, an office building, a restaurant and the like. The target person may be any person appearing in the image, that is, any person may be used as the target person to perform social relationship analysis. The related person is a person located in the same person image as the target person and/or a person having the same location as the target person, that is, when the existing person and the target person appear in the same image, the person is determined to be the related person of the target person, and/or when the existing person and the target person have the same location, the person is determined to be the related person of the target person.
In the embodiment of the application, in order to analyze the social relationship between the target person and the associated person, a person image including the target person and at least one associated person is obtained from an image collected by an image collector, and then the person image including the target person and the at least one associated person is analyzed to determine the social relationship between the target person and the at least one associated person. Specifically, the image containing the target person may not all contain the associated person of the target person, and may only contain one target person in the image, so that the image containing at least two persons, one of which is the target person, is obtained from the image collector, and the image containing the target person and at least one associated person is obtained, which is convenient for analyzing the social relationship between the target person and other persons, that is, the associated person.
S120, determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; and determining second social relationship data between the target person and each associated person according to the positioning record information of the person image.
The interaction mode may include face-to-face, hand-in-hand, hug, and other interaction actions or states. The first social relationship data may include a first social relationship type and a first score, the first social relationship type may be a relationship type such as a friend, a colleague, a lover, a couple, etc., and the first score may be a probability score corresponding to each type. The interactive mode can also comprise characteristic description information such as gender, age, characteristic objects and the like, so that the probability score of the social relationship type corresponding to the interactive mode is determined in an auxiliary mode. The positioning record information may be positioning record information determined according to the positioning of the image collector for collecting the person image, the direction of the image collector, and the image collecting angle, and may include longitude and latitude positioning, time information, the number of times of occurrence in the positioning place, the frequency in unit time, and the like. The second social relationship data may include a second social relationship type and a second score. The second social relationship type may be a relationship type of a friend, a colleague, a lover, a couple, etc., and the second score may be a probability score corresponding to each type.
In the embodiment of the application, training image samples can be obtained, the training image samples are classified and clustered, model training is carried out according to face-to-face angles, distances between human bodies, smiling degrees, overlapping areas between human bodies and the like to obtain an interactive mode recognition model, and the obtained personnel images including target personnel and at least one associated personnel are input into the interactive mode recognition model, so that the interactive mode of the target personnel and the at least one associated personnel in the personnel images is obtained. The method can also be used for directly carrying out intelligent analysis on the personnel images containing the target personnel and at least one associated personnel, and analyzing the interaction mode between the target personnel and the at least one associated personnel through the characteristics of the human face or the human body, such as state, distance, relative orientation, facial expression, sex, height, wearing articles and the like. And determining first social relationship information of the target person and at least one associated person through an interactive mode, wherein for example, if the interactive mode is hand-in-hand, the first social relationship type may be lovers, and determining a corresponding first score. The interaction mode is hugging, the height characteristic is one high and one low, the age characteristic is one old and one little, the first social relationship type is possibly the relatives, and the corresponding first score is determined.
If the target person and at least one associated person have been present in the same location, there may also be some association between the two persons, requiring a determination of their social relationship. In the embodiment of the application, second social relationship data between the target person and each associated person is determined according to the positioning record information of the person image, for example, if the target person and the associated person have the same positioning and the positioning is an office building, the second social relationship type between the target person and the associated person may be determined to be a colleague, and a corresponding second score is determined.
S130, determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
The social relationship information comprises a social relationship type and a corresponding score. Specifically, for a social relationship type, a first score corresponding to the social relationship type in first social relationship data is determined, a second score corresponding to the social relationship type in second social relationship data is determined, and the score corresponding to the social relationship type is determined according to the first score and the second score. And determining all possible social relationship types and corresponding scores of the target person and the associated person as the social relationship information of the target person and the associated person. The social relationship information of the target person and each associated person is obtained through analysis according to the mode, so that the associated information of the target person and other associated persons is automatically and accurately determined, a department with needs can conveniently look up and analyze the information, the social relationship is determined without depending on manual input information, and the efficiency of determining the social relationship is improved.
In the embodiment of the application, first social relationship data between a target person and each associated person is determined according to an interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image; and determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data, so that the social relationship between the target person and the associated person is automatically and accurately determined, and the automatic perfect updating of the social relationship can be realized according to the updating of the image.
Fig. 2 is a flowchart of a social relationship determining method according to another embodiment of the present invention. In the embodiment of the present application, details that are not described in detail in the embodiment are described in detail in order to optimize the embodiment. Referring to fig. 2, the social relationship determining method provided in this embodiment may include:
s210, acquiring a person image containing the target person and at least one associated person.
S220, determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; and determining second social relationship data between the target person and each associated person according to the positioning record information of the person image.
In an embodiment of the present application, the first social relationship data comprises a first social relationship type and a first score; correspondingly, determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image, and the determining comprises the following steps: and determining a first social relationship type and a first score between the target person and the associated person according to an interaction mode and a preset mapping relationship among the interaction mode, the first social relationship type and the first score.
Specifically, multiple interaction modes and mapping relations between the first social relations and the first scores can be preset, and when the interaction modes between the target person and the associated person are determined according to the person images including the target person and the associated person, the first social relation type and the first scores corresponding to the interaction modes are determined according to the preset mapping relations. As shown in table 1, the preset first score may be set according to actual situations, for example, for a same first social relationship type "friend", the first score corresponding to the "face-to-face" interaction manner is smaller than the first score corresponding to the "handle" interaction manner, thereby indicating the possibility difference of the first social relationship type determined by different interaction manners. The specific value of the first score is not limited.
TABLE 1
Figure BDA0002534766370000081
In an embodiment of the present application, the second social relationship data comprises a second social relationship type and a second score; correspondingly, according to the positioning record information of the personnel image, determining second social relationship data between the target personnel and each associated personnel, comprising the following steps: determining map annotation information according to the positioning record information of the personnel image; and determining a second social relationship type and a second score between the target person and the associated person according to the map labeling information and the mapping relationship of preset map labeling information, the second social relationship type and the second score.
Specifically, mapping relationships among the map labeling information, the second social relationship type, and the second score may be preset. And determining the positioning record information of the target person and the associated person, and determining a second social relationship type and a second score corresponding to the map marking information according to the map marking information corresponding to the positioning record information. Because the positioning record Information includes longitude and latitude Information of the positioning place, the positioning record Information can collide with a Point of Information (POI) in a map, determine map marking Information of the positioning place, and further determine a corresponding second social relationship type and a second score according to the map marking Information. For example, according to the longitude and latitude in the positioning record information of the same positioning of the target person and the related person, a map label corresponding to the longitude and latitude in a map is determined, for example, in a school, it may be determined that the second social relationship type of the target person and the related person may be classmate, and a corresponding second score is determined, as shown in table 2.
TABLE 2
Figure BDA0002534766370000091
In an embodiment of the present application, before determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data, the method further includes: determining positioning record information of a target person according to a person image of the target person, and determining positioning record information of an associated person according to a person image of the associated person; and if the positioning record information of the target person is the same as the positioning place in the positioning record information of the associated person, determining second social relationship data between the target person and each associated person according to the positioning record information.
The positioning record information also comprises the frequency and/or duration of the positioning place; correspondingly, according to the positioning record information of the personnel image, determining second social relationship data between the target personnel and each associated personnel, comprising the following steps: and if the frequency of the target person and the associated person in the same positioning place is greater than a preset frequency threshold value and/or the time length is greater than a preset time length threshold value, determining second social relationship data between the target person and the associated person.
Specifically, the target person and the related person may not appear in the same image, but may appear in the same positioning location, and a certain social relationship may also exist, so that the appeared positioning location corresponding to each person is analyzed, and if the target person and other persons have the same positioning location, a frequency appearing in the positioning location, for example, a number of times and/or a duration appearing in the positioning location in one month, for example, a total duration appearing in the positioning location in one month, is determined, and if the frequency is greater than a preset frequency threshold and/or the duration is greater than a preset duration threshold, a map label of the positioning location is determined according to latitude and longitude information of the positioning location, and then a second social relationship type and a second score corresponding to the map label are determined.
And S230, determining a target social relationship type according to the first social relationship type in the first social relationship data and/or the second data relationship type in the second social relationship data.
Illustratively, a first social relationship type contained in the first social relationship data and a second social relationship type contained in the second social relationship data are used as target social relationship types to be analyzed one by one.
S240, determining a first score sum corresponding to the target social relationship type according to the first social relationship data.
Illustratively, for a target social relationship, a first score sum corresponding to the target social relationship type in the first social relationship data is determined. For example, in Table 1, for purposes ofThe social relationship type of lovers is marked, and the corresponding first score comprises m3And m6Then the first score sum is m3+m6
And S250, determining a second score sum corresponding to the target social relationship type according to the second social relationship data.
And determining a corresponding second score sum of the target social relationship type in the second social relationship data. For example, in Table 2, for the target social relationship type "lovers", the corresponding second score includes n6Then the second score sum is n6
And S260, taking the sum of the first score sum and the second score sum and a target social relationship type as social relationship information between the target person and the associated person.
Specifically, the following formula can be used to determine the social relationship information:
(tagid1,tagid2,SR:S)S=∑mi+∑nj
wherein, tag 1 is the target personnel identifier, tag 2 is the associated personnel identifier, SR is the target social relationship type, and S is the corresponding score. m isiA first score, n, corresponding to the target social relationship SRjAnd a second score corresponding to the target social relation SR. M is a first scoring number corresponding to the target social relationship type in the first social relationship data, and N is a second scoring number corresponding to the target social relationship type in the second social relationship data.
Exemplarily, fig. 3 is a schematic diagram of a social relationship information structure provided by another embodiment of the present invention, as shown in fig. 3, for a target social relationship type "lovers", a sum of a first score sum and a second score sum, that is, m, is determined3+m6+n6And establishing a corresponding relation as the score corresponding to the target social relation type. And determining all possible target social relationship types and corresponding scores, and finally forming social relationship information between the target person and the associated person by all the possible target social relationship types and the corresponding scores.
According to the technical scheme of the embodiment of the application, the score corresponding to the target social relationship type is determined through the first score sum and the second score sum corresponding to the target social relationship type, and the social relationship information between the target person and the associated person is determined, so that the possibility that the relationship between the target person and the associated person is the target social relationship type is accurately determined, and the social relationship of the target person is conveniently analyzed.
Fig. 4 is a flowchart of a social relationship determining method according to another embodiment of the present invention. In the embodiment of the present application, details that are not described in detail in the embodiment are described in detail in order to optimize the embodiment. Referring to fig. 4, the social relationship determining method provided in this embodiment may include:
and S310, carrying out face recognition on the candidate image to obtain a face image.
For example, the candidate images may be all images acquired by the image acquirer. And carrying out face recognition on the candidate images to obtain face images, thereby facilitating the determination of the identity of each person.
And S320, matching the face images, and setting the same identification for the successfully matched face images.
In order to determine the person corresponding to each face image in the candidate images, the face is subjected to similarity matching, if the similarity is greater than a preset similarity threshold, the matching is successful, and the face images successfully matched correspond to the same person, so that the face images successfully matched are set with the same identifier, can be represented by tag, belong to the same person by the identifier, and are convenient for searching the person images according to the same identifier.
S330, if the face image of the target person is matched with any one of the face images in the candidate images, taking the identification of the face image in the candidate images as the target identification of the target person.
Specifically, when social relationship analysis needs to be performed on a specific person, the person is determined as a target person, a face image of the target person is matched with a face image in the candidate image, and if matching is successful, an identifier of the face image in the candidate image is used as a target identifier of the target person.
And S340, determining the candidate image corresponding to the face image with the target identification as a person image containing the target person.
Illustratively, in the candidate images, retrieval is performed according to the target identification, and the candidate images with the target identification are extracted as the person images containing the target person.
And S350, analyzing the personnel image containing the target personnel.
S360, if at least one associated person exists, determining that the person image is a person image containing the target person and the at least one associated person.
Specifically, the person image containing the target person is analyzed, for example, face recognition or human body recognition, to determine the number of persons contained therein. If at least two persons are contained in the image, and because the target person is contained in the image, at least one associated person can be determined to be contained in the image, and therefore the image is determined to be a person image containing the target person and the at least one associated person.
S370, determining first social relationship data between the target person and each associated person according to an interaction mode of the target person and at least one associated person in the person image; and determining second social relationship data between the target person and each associated person according to the positioning record information of the person image.
And S380, determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
According to the technical scheme, the same identification is set, so that the same personnel are labeled, the personnel image of the target personnel can be conveniently retrieved, the personnel image containing the target personnel is analyzed, the personnel image containing the target personnel and at least one associated personnel is obtained, and the social relationship between the target personnel and other associated personnel can be conveniently analyzed.
Fig. 5 is a schematic structural diagram of a social relationship determining apparatus according to an embodiment of the present invention. The device can be suitable for the condition of verifying the identity of the personnel, and typically, the embodiment of the application can be suitable for the condition of determining the social relationship between the personnel. The apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in a social relationship determining device. Referring to fig. 5, the apparatus specifically includes:
a person image obtaining module 410, configured to obtain a person image including a target person and at least one associated person;
a relationship data determining module 420, configured to determine first social relationship data between a target person and each associated person according to an interaction manner between the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image;
a social relationship information determining module 430, configured to determine social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
In an embodiment of the present application, the apparatus further includes:
the recognition module is used for carrying out face recognition on the candidate images to obtain face images;
the identification setting module is used for matching the face images and setting the same identification for the successfully matched face images;
the target identification determining module is used for taking the identification of the face image in the candidate image as the target identification of the target person if the face image of the target person is matched with any one face image in the candidate image;
and the person image determining module is used for determining the candidate image corresponding to the face image with the target identification as the person image containing the target person.
In an embodiment of the present application, the apparatus further includes:
the image analysis module is used for analyzing the personnel image containing the target personnel;
and the image determining module is used for determining that the personnel image is a personnel image containing the target personnel and at least one associated personnel if at least one associated personnel exists.
In an embodiment of the present application, the apparatus further includes:
the positioning record information determining module is used for determining the positioning record information of the target personnel according to the personnel image of the target personnel and determining the positioning record information of the associated personnel according to the personnel image of the associated personnel;
and the second social relationship data determining module is used for determining second social relationship data between the target person and each associated person according to the positioning record information if the positioning record information of the target person is the same as the positioning place in the positioning record information of the associated person.
In an embodiment of the present application, the first social relationship data comprises a first social relationship type and a first score;
accordingly, the relationship data determination module 420 includes:
and the first social relationship determining unit is used for determining a first social relationship type and a first score between the target person and the associated person according to an interaction mode and a preset mapping relationship among the interaction mode, the first social relationship type and the first score.
In an embodiment of the present application, the second social relationship data comprises a second social relationship type and a second score;
accordingly, the relationship data determination module 420 includes:
the second social relation determining unit is used for determining map annotation information according to the positioning record information of the personnel image;
and determining a second social relationship type and a second score between the target person and the associated person according to the map labeling information and the mapping relationship of preset map labeling information, the second social relationship type and the second score.
In the embodiment of the present application, the positioning record information further includes a frequency and/or a duration at the positioning location;
accordingly, the relationship data determination module 420 includes:
and the third social relationship determining unit is used for determining second social relationship data between the target person and the associated person if the frequency of the target person and the associated person in the same positioning place is greater than a preset frequency threshold and/or the time length is greater than a preset time length threshold.
In this embodiment of the application, the social relationship information determining module 430 includes:
the target social relationship type determining unit is used for determining a target social relationship type according to a first social relationship type in the first social relationship data and/or a second data relationship type in the second social relationship data;
the first scoring and determining unit is used for determining a first scoring sum corresponding to the target social relationship type according to the first social relationship data;
the second scoring and determining unit is used for determining a second scoring sum corresponding to the target social relationship type according to the second social relationship data;
and the information determining unit is used for taking the summation result of the first score sum and the second score sum and the target social relationship type as the social relationship information between the target person and the associated person.
In the embodiment of the present application, the related person is a person located in the same person image as the target person and/or a person located in the same position as the target person.
The social relationship determining device provided by the embodiment of the application can execute the social relationship determining method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the executing method.
Fig. 6 is a schematic structural diagram of a social relationship determining apparatus according to an embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary social relationship determining device 512 suitable for use in implementing embodiments of the present application. The social relationship determining apparatus 512 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the social relationship determining apparatus 512 may include: one or more processors 516; the memory 528 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 516, the one or more processors 516 may implement the social relationship determining method provided in the embodiment of the present application, including:
acquiring a person image containing a target person and at least one associated person;
determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image;
and determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
The components of the social relationship determination device 512 may include, but are not limited to: one or more processors or processors 516, a memory 528, and a bus 518 that couples the various device components, including the memory 528 and the processors 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The social relationship determining device 512 typically includes a variety of computer device readable storage media. These storage media may be any available storage media that can be accessed by the social relationship determining device 512 and include volatile and non-volatile storage media, removable and non-removable storage media.
The memory 528 may include computer device readable storage media in the form of volatile memory, such as Random Access Memory (RAM)530 and/or cache memory 532. The social relationship determining device 512 may further include other removable/non-removable, volatile/nonvolatile computer device storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic storage media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In such cases, each drive may be connected to bus 518 through one or more data storage media interfaces. Memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542 may be stored, for example, in memory 528, such program modules 542 including, but not limited to, an operating device, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may include an implementation of a network environment. The program modules 542 generally perform the functions and/or methods of the described embodiments of the invention.
The social relationship determining device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, display 526, etc.), with one or more devices that enable a user to interact with the social relationship determining device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the social relationship determining device 512 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 522. Also, the social relationship determining device 512 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 520. As shown in FIG. 6, the network adapter 520 communicates with the other modules of the social relationship determining device 512 via the bus 518. It should be appreciated that although not shown in fig. 6, other hardware and/or software modules may be used in conjunction with the social relationship determining device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, among others.
The processor 516 executes various functional applications and data processing by executing at least one of other programs of the programs stored in the memory 528, for example, to implement a social relationship determination method provided in the embodiment of the present application.
One embodiment of the present invention provides a storage medium containing computer-executable instructions which, when executed by a computer processor, perform a social relationship determination method, comprising:
acquiring a person image containing a target person and at least one associated person;
determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image;
and determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the present application, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
A computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A social relationship determination method, the method comprising:
acquiring a person image containing a target person and at least one associated person;
determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image;
and determining social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
2. The method of claim 1, wherein before determining the first social relationship data between the target person and each associated person according to the interaction pattern of the target person and at least one associated person in the person image, the method further comprises:
carrying out face recognition on the candidate image to obtain a face image;
matching the face images, and setting the same identification for the successfully matched face images;
if the face image of the target person is matched with any one of the face images in the candidate images, taking the identification of the face image in the candidate images as the target identification of the target person;
and determining the candidate image corresponding to the face image with the target identification as a person image containing the target person.
3. The method of claim 2, wherein after determining the candidate image corresponding to the face image with the target identification as the person image containing the target person, the method further comprises:
analyzing a person image containing a target person;
and if at least one associated person exists, determining that the person image is a person image containing the target person and the at least one associated person.
4. The method of claim 1, wherein prior to determining social relationship information between the target person and each associated person based on the first social relationship data and the second social relationship data, the method further comprises:
determining positioning record information of a target person according to a person image of the target person, and determining positioning record information of an associated person according to a person image of the associated person;
and if the positioning record information of the target person is the same as the positioning place in the positioning record information of the associated person, determining second social relationship data between the target person and each associated person according to the positioning record information.
5. The method of any of claims 1-4, wherein the first social relationship data comprises a first social relationship type and a first score;
correspondingly, determining first social relationship data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image, and the determining comprises the following steps:
and determining a first social relationship type and a first score between the target person and the associated person according to an interaction mode and a preset mapping relationship among the interaction mode, the first social relationship type and the first score.
6. The method of any of claims 1-4, wherein the second social relationship data comprises a second social relationship type and a second score;
correspondingly, according to the positioning record information of the personnel image, determining second social relationship data between the target personnel and each associated personnel, comprising the following steps:
determining map annotation information according to the positioning record information of the personnel image;
and determining a second social relationship type and a second score between the target person and the associated person according to the map labeling information and the mapping relationship of preset map labeling information, the second social relationship type and the second score.
7. The method according to claim 6, wherein the location record information further comprises a frequency and/or a duration of time at the location;
correspondingly, according to the positioning record information of the personnel image, determining second social relationship data between the target personnel and each associated personnel, comprising the following steps:
and if the frequency of the target person and the associated person in the same positioning place is greater than a preset frequency threshold value and/or the time length is greater than a preset time length threshold value, determining second social relationship data between the target person and the associated person.
8. The method of claim 1, wherein determining social relationship information between the target person and each associated person based on the first social relationship data and the second social relationship data comprises:
determining a target social relationship type according to a first social relationship type in the first social relationship data and/or a second data relationship type in the second social relationship data;
determining a first score sum corresponding to the target social relationship type according to the first social relationship data;
determining a second score sum corresponding to the target social relationship type according to the second social relationship data;
and taking the sum of the first score sum and the second score sum and a target social relationship type as the social relationship information between the target person and the associated person.
9. The method of claim 1, wherein the associated person is a person located in the same person image as the target person and/or a person located in the same location as the target person.
10. A social relationship determination apparatus, the apparatus comprising:
the personnel image acquisition module is used for acquiring a personnel image containing a target personnel and at least one associated personnel;
the relation data determining module is used for determining first social relation data between the target person and each associated person according to the interaction mode of the target person and at least one associated person in the person image; determining second social relationship data between the target person and each associated person according to the positioning record information of the person image;
and the social relationship information determining module is used for determining the social relationship information between the target person and each associated person according to the first social relationship data and the second social relationship data.
11. A social relationship determining apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the social relationship determination method of any of claims 1-9.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the social relationship determination method according to any one of claims 1 to 9.
CN202010529644.5A 2020-06-11 2020-06-11 Social relationship determination method, device, equipment and storage medium Pending CN113822767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010529644.5A CN113822767A (en) 2020-06-11 2020-06-11 Social relationship determination method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010529644.5A CN113822767A (en) 2020-06-11 2020-06-11 Social relationship determination method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113822767A true CN113822767A (en) 2021-12-21

Family

ID=78924286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010529644.5A Pending CN113822767A (en) 2020-06-11 2020-06-11 Social relationship determination method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113822767A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114465A (en) * 2022-07-19 2022-09-27 重庆紫光华山智安科技有限公司 Image record association storage method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110003236A (en) * 2009-07-03 2011-01-11 한국과학기술원 Face image indexing apparatus and method therefor
CN107735795A (en) * 2015-07-02 2018-02-23 北京市商汤科技开发有限公司 Method and system for social relationships identification
CN110807117A (en) * 2018-08-03 2020-02-18 深圳云天励飞技术有限公司 User relationship prediction method and device and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110003236A (en) * 2009-07-03 2011-01-11 한국과학기술원 Face image indexing apparatus and method therefor
CN107735795A (en) * 2015-07-02 2018-02-23 北京市商汤科技开发有限公司 Method and system for social relationships identification
CN110807117A (en) * 2018-08-03 2020-02-18 深圳云天励飞技术有限公司 User relationship prediction method and device and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114465A (en) * 2022-07-19 2022-09-27 重庆紫光华山智安科技有限公司 Image record association storage method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109858555B (en) Image-based data processing method, device, equipment and readable storage medium
US11610394B2 (en) Neural network model training method and apparatus, living body detecting method and apparatus, device and storage medium
US11698261B2 (en) Method, apparatus, computer device and storage medium for determining POI alias
WO2019033574A1 (en) Electronic device, dynamic video face recognition method and system, and storage medium
CN107609463B (en) Living body detection method, living body detection device, living body detection equipment and storage medium
CN107908641B (en) Method and system for acquiring image annotation data
CN111815421B (en) Tax policy processing method and device, terminal equipment and storage medium
CN107909088B (en) Method, apparatus, device and computer storage medium for obtaining training samples
CN111985241B (en) Medical information query method, device, electronic equipment and medium
CN109034199B (en) Data processing method and device, storage medium and electronic equipment
Jiao et al. Real-time lane detection and tracking for autonomous vehicle applications
CN113994351A (en) Method and system for dynamic and incremental face recognition
CN110609879B (en) Interest point duplicate determination method and device, computer equipment and storage medium
CN110020638B (en) Facial expression recognition method, device, equipment and medium
CN111310065A (en) Social contact recommendation method and device, server and storage medium
CN113822767A (en) Social relationship determination method, device, equipment and storage medium
CN113434718A (en) Method and device for determining associated image, electronic equipment and storage medium
CN110647595B (en) Method, device, equipment and medium for determining newly-added interest points
CN113177479B (en) Image classification method, device, electronic equipment and storage medium
CN110059180B (en) Article author identity recognition and evaluation model training method and device and storage medium
CN110378378B (en) Event retrieval method and device, computer equipment and storage medium
CN114078271A (en) Threshold determination method, target person identification method, device, equipment and medium
CN108280139B (en) POI data processing method, device, equipment and computer readable storage medium
CN109460511B (en) Method and device for acquiring user portrait, electronic equipment and storage medium
CN111125272B (en) Regional characteristic acquisition method, regional characteristic acquisition device, computer equipment and medium

Legal Events

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