WO2020125370A1 - Relationship analysis method and related product - Google Patents

Relationship analysis method and related product Download PDF

Info

Publication number
WO2020125370A1
WO2020125370A1 PCT/CN2019/121610 CN2019121610W WO2020125370A1 WO 2020125370 A1 WO2020125370 A1 WO 2020125370A1 CN 2019121610 W CN2019121610 W CN 2019121610W WO 2020125370 A1 WO2020125370 A1 WO 2020125370A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
peer
target
peer user
relationship
Prior art date
Application number
PCT/CN2019/121610
Other languages
French (fr)
Chinese (zh)
Inventor
岑助甫
郑承渊
黄永熙
凌睿
母凤轩
罗同舟
Original Assignee
深圳云天励飞技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳云天励飞技术有限公司 filed Critical 深圳云天励飞技术有限公司
Publication of WO2020125370A1 publication Critical patent/WO2020125370A1/en

Links

Images

Classifications

    • 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/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition

Definitions

  • This application relates to the field of data processing technology, and specifically relates to a character relationship analysis method and related products.
  • the main method is to obtain the existing data, and then analyze the existing data to obtain the relationship between the users.
  • the relationship between the users It is inefficient and cannot directly reflect the relationship between users.
  • Embodiments of the present application provide a character relationship analysis method and related products, which can intuitively reflect the relationship between users and improve the efficiency of user relationship acquisition.
  • a first aspect of the embodiments of the present application provides a character relationship analysis method.
  • the method includes:
  • the target user relationship between the target user and the at least one peer user is determined according to the target relationship graph.
  • the peer parameters include the number of peers and the peer distance, and the peers according to the at least one peer user Parameters to establish a target relationship graph between the target user and the at least one peer user, including:
  • the target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
  • the acquiring each of the at least one peer user Correction factors of the relationship graph of peer users including:
  • the first peer user is any peer user of the at least one peer user;
  • a second aspect of an embodiment of the present application provides a character relationship analysis device.
  • the device includes an acquisition unit, a creation unit, and a determination unit, where:
  • the acquiring unit is configured to acquire a peer parameter between the target user and at least one peer user of the target user;
  • the creating unit is configured to establish a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
  • the determining unit is configured to determine a target user relationship between the target user and the at least one peer user according to the target relationship graph.
  • the peer parameters include the number of peers and the distance of peers, based on the at least one peer user’s Peer parameters, to establish a target relationship graph between the target user and the at least one peer user
  • the creation unit is specifically used to:
  • the target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
  • each of the acquiring the at least one peer user With respect to the relationship graph correction factors of the same peer users, the creation unit is specifically used to:
  • the first peer user is any peer user of the at least one peer user;
  • a third aspect of the embodiments of the present application provides a terminal, including a processor, an input device, an output device, and a memory, where the processor, input device, output device, and memory are connected to each other, wherein the memory is used to store a computer program
  • the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiments of the present application.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application. Part or all of the steps described in one aspect.
  • a fifth aspect of an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium that stores the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in the first aspect.
  • the computer program product may be a software installation package.
  • the peer parameters between the target user and the at least one peer user of the target user are obtained, and between the target user and the at least one peer user are established according to the peer parameters of the at least one peer user
  • Target relationship graph of the target relationship between the target user and the at least one peer user is determined according to the target relationship graph, therefore, relative to the existing solution, the relationship between users is based on existing data Analyze to get the user relationship.
  • the user relationship between the target user and the peer user can be intuitively reflected through the relationship graph Then, the user relationship between the target user and the peer users can be determined through the relationship graph, which can also improve the efficiency of obtaining user relationships to a certain extent.
  • FIG. 1 is a schematic structural diagram of a character analysis system applying a character analysis method according to an embodiment of the present application
  • FIG. 2A is a schematic flowchart of a character relationship analysis method according to an embodiment of the present application.
  • 2B is a schematic diagram of a reference relationship graph provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a character relationship analysis device according to an embodiment of the present application.
  • the character analysis system includes a collection device 101 and an analysis device 102, wherein the collection device 101 collects peer parameters between the target user and at least one peer user of the target user, and the collection device 101 sends the peer parameters to the analysis device 102.
  • the analyzing device 102 establishes a target relationship graph between the target user and at least one peer user according to the peer parameters of at least one peer user.
  • the analyzing device 102 determines the target user and the target user graph according to the target relationship graph
  • the target user relationship between at least one peer user therefore, compared with the existing solution, the relationship between users is analyzed through the existing data to obtain the user relationship, which can be passed by the target user and the target user's peer user's peer
  • the parameters are analyzed, and a relationship graph is established according to the peer parameters, which can intuitively reflect the user relationship between the target user and the peer user through the relationship graph, and then the user relationship between the target user and the peer user can be determined through the relationship graph, thereby It can also improve the efficiency of acquiring user relationships to a certain extent.
  • FIG. 2A is a schematic flowchart of a character relationship analysis method according to an embodiment of the present application.
  • the character relationship analysis method includes steps 201-203, as follows:
  • the peer parameters may include the number of peers and the peer distance.
  • the peer distance may be understood as the peer distance for each peer or the total distance when peers.
  • the method for obtaining peer parameters may be to obtain the peer distance between the target user and each peer user in at least one peer user through a camera.
  • the target user may pass multiple cameras when traveling with the peer user. Acquire multiple images of peers separately, and determine the peer distance between the target user and peer users based on the multiple images of peers.
  • a peer user can be understood as a user identified in the system and walking with the target user.
  • the multiple images are multiple images taken at preset time intervals, and the method for determining the peer distance between the target user and the peer user based on the multiple images includes steps A1-A4, as follows:
  • A1 According to each of the multiple images, determine the location point where the target user and the peer user are located, and obtain the movement speed of the target user and the peer user at each location point, including between two adjacent location points Multiple reference paths;
  • the reference path can be understood as a passable path between two adjacent positions. For example, if the two adjacent positions are points A and B, the reference path can be understood as between point A and point B. The path that users can pass.
  • A2. Determine the first reference distance according to the movement speed of the first position point and the preset time interval, and determine the second reference distance according to the movement speed of the second position point and the preset time interval, the first position point is The starting position, the second position is the ending position;
  • the preset time interval can be set by experience value or historical data.
  • the first position point and the second position point can be understood as, when the target user moves from the first position point to the second position point, the starting position point is the first position point, and the ending position point is the second position point, the first The position point may be any position point except the last position point among the plurality of position points, and the second position point is the next position point of the first position point.
  • the distance between the first reference distance and the second reference distance among the plurality of third distances is used as the peer distance between the target user and the peer user between the first location point and the second location point.
  • the average of the multiple third distances is taken as the peer distance between the target user and the peer user between the first location point and the second location point.
  • the location distance and the movement speed of each location point are used to determine the peer user's peer distance between two adjacent location points, which can improve the accuracy of acquiring the peer distance to a certain extent.
  • the peer parameters include peer distance and the number of peers.
  • a possible method for establishing a target relationship graph based on peer parameters includes steps B1-B5, as follows:
  • the first weight and the second weight can be obtained according to the neural network model.
  • the neural network model can be obtained by training as follows:
  • the neural network model can include an N-layer neural network.
  • the sample data can be input to the first layer of the N-layer neural network, and the first operation result can be obtained after the forward operation through the first layer, and then the first operation
  • the result is input to the second layer to perform the forward operation to obtain the second result, and until the N-1 result is input to the Nth layer to perform the forward operation to obtain the Nth operation result, perform the reverse operation on the Nth operation result Training, so that the forward training and the reverse training are repeatedly performed until the neural network model training is completed.
  • the sample data are the number of peers, the distance of peers, the preset first weight and the preset second weight.
  • the weight calculation method may be: multiplying the first weight by the number of peers, multiplying the second weight by the distance of peers, and then summing to obtain a target distance value. The foregoing method is repeated until the target distance value of each peer user in at least one peer user is calculated to obtain at least one target distance value.
  • the target user's location point is the target user's mapping point in the reference relationship graph
  • FIG. 2B is a schematic diagram of a reference relationship graph.
  • r1, r2, r3 are different target distance values
  • the center point is the mapping point of the target user in the reference relationship map.
  • a possible method for obtaining the relationship graph correction factor of each peer user in at least one peer user includes steps B41-B45, as follows:
  • B41 Acquire multiple images of a first peer user when traveling with the target user, where the first peer user is any peer user of the at least one peer user;
  • the camera may be a hyperspectral camera.
  • a possible collection method includes steps S1-S2, as follows:
  • S1 Collecting images of the first peer user and the target user when traveling together to obtain an image sequence including the target user and the peer user, and the image sequence includes multiple images;
  • the hyperspectral camera can collect images in multiple bands, and when capturing images of target users and peer users, it can collect images in multiple different bands to obtain an image sequence including multiple bands .
  • Multiple different bands can be represented as n bands, that is, from the first band to the n-th band, where n is a positive integer, where different bands can be understood as dividing a fixed band into multiple sub-bands, thereby obtaining multiple different bands
  • the band for example, the 300-600 micron band, which is divided into 10 bands, then 10 sub-bands can be obtained.
  • a method for fusing the multiple images includes steps S21-S22, as follows:
  • the labeling result includes human contour pixels and background pixels;
  • the lower left corner of each image is taken as the origin of coordinates
  • the direction of the long side of the image is the x-axis
  • the direction of the short side of the image is the y-axis to establish a rectangular coordinate system, thereby obtaining the coordinates of each pixel.
  • the method of marking the body contour of the image can be marked according to the gray value of the pixel.
  • the gray value of the pixel is within the preset gray value interval
  • the pixel is marked as a human pixel
  • preset The gray value interval is set according to empirical values or according to historical data.
  • the method for fusing the image may be: extract the labeling result of the pixel points of the same coordinates, if the labeling result of the coordinates of the same pixel point is that the number of human body pixels is greater than or equal to the preset number, then the point It is determined to be a pixel of the human body image. If the result of the marking of the coordinates of the same pixel point is that the number of human body pixels is lower than the preset number, the point is determined as the pixel of the background image; the target image is obtained according to the pixel of the image.
  • the preset number is set according to empirical values or according to historical data.
  • the imaging results of different wave bands can better reflect the characteristics of the human body, so the multi-band human body image fusion method is used to obtain the human body image, which can improve the accuracy of obtaining the human body image to a certain extent.
  • B42 Perform face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images;
  • a possible multiple images are analyzed to determine the face image of the first peer user and the face image of the target user include steps B420-B428, details as follows:
  • the target repair coefficient is used to express the completeness of the face image for repair
  • the target face image can be mirror-transformed according to the principle of face symmetry. After the mirror-transform process, the target face image after processing can be used to perform face repair based on the model of generating an adversarial network to obtain The first face image and the target repair coefficient.
  • the target face image is a face image extracted from the collected image and including only part of the face.
  • the target repair coefficient may be the proportion of pixels of the face part of the repaired face to the total number of pixels of the entire face.
  • the model for generating the adversarial network may include the following components: discriminator, semantic regularization network, etc., which are not limited here. .
  • the method of feature extraction on the first face image may include at least one of the following: LBP (Local Binary Patterns) feature extraction algorithm, HOG (Histogram of Oriented Gradient, directional gradient histogram) feature Extraction algorithms, LoG (Laplacian of Gaussian, second-order Laplacian-Gaussian) feature extraction algorithms, etc., are not limited here.
  • LBP Local Binary Patterns
  • HOG Heistogram of Oriented Gradient, directional gradient histogram
  • LoG Laplacian of Gaussian, second-order Laplacian-Gaussian
  • the face feature set is pre-stored in the database.
  • B426 Determine a first weight corresponding to the target repair coefficient according to a preset mapping relationship between the repair coefficient and the weight, and determine a second weight according to the first weight;
  • the mapping relationship between the preset repair coefficients and the weights may be that each preset repair coefficient corresponds to a weight, and the sum of the weights of each preset repair coefficient is 1, the preset The weight of the repair coefficient can be set by the user or the system default. Specifically, according to the preset mapping relationship between the repair coefficient and the weight, the first weight corresponding to the target repair coefficient is determined, and according to the first weight The value determines the second weight value.
  • the second weight value may be the weight value corresponding to the second matching value. The sum between the first weight value and the second weight value is 1, and the first weight value is matched with multiple first weights respectively. Value weighting, and weighting the second weights with multiple second matching values respectively to obtain multiple target matching values corresponding to multiple objects, and selecting the object corresponding to the largest matching value among the multiple matching values as the target person The complete face image corresponding to the face image.
  • the target face image is determined Corresponding to the complete face image, through the repair of the face, the matched image after the repair is filtered to obtain the final complete face image, which can improve the accuracy of the face image acquisition to a certain extent.
  • the angle between the face orientation of the first peer user and the face orientation of the target user can be understood as abstracting the face as a plane, the direction of the vertical line of the plane is the face orientation, and the direction of the vertical line is the face Direction, therefore, the angle between the face orientation of the first peer user and the face orientation of the target user is the angle between the vertical lines.
  • the angle between vertical lines can be understood as the angle between straight lines of different planes or the angle between coplanar straight lines.
  • the average value of the plurality of target angles is calculated to obtain the average value of the target angle, and then the relationship of the first peer user corresponding to the average value of the target angle is determined according to the mapping relationship between the average angle and the correction factor of the relationship map
  • the map correction factor, the mapping between the mean angle and the relationship map correction factor is stored in the character relationship analysis system in advance.
  • the relationship graph correction factor can be understood as a parameter that corrects the target distance value.
  • the second peer user is a user other than the first peer user among the at least one peer user.
  • B5. Determine the target relationship graph by using the relationship graph correction factor of each peer user and the reference relationship graph.
  • the relationship graph correction factor may be multiplied by the corresponding target distance value in the reference relationship graph to obtain the target relationship graph.
  • the target relationship graph can reflect the intimacy between peer users and target users. The smaller the target distance value, the higher the intimacy, and the larger the target distance value, the lower the intimacy, with the same target distance value , The same intimacy.
  • the security of the users traveling with the target user can be analyzed through the target relationship graph.
  • This method can be treasure steps C1-C3, as follows:
  • At least one reference peer user is determined from the at least one peer user, and the reference peer user is a peer user whose intimacy is lower than a preset intimacy;
  • the method of obtaining the intimacy of the reference peer users can be obtained from the generated target relationship graph.
  • the preset intimacy can be set by experience value setting or historical data.
  • the peer distance may be the peer distance when the target user and the reference peer user are currently traveling.
  • the method for obtaining the peer distance between the target user and the reference user can refer to the method for determining the peer distance in steps A1 to A4, which will not be described here.
  • the target reference peer user is a user whose peer distance among the at least one reference peer user is greater than a preset peer distance.
  • dangerous users can be understood as users who pose a threat to the personal property of others, for example, they will deceive the target user's money through some bad means, directly rob the target user, etc.
  • a possible method for pushing the alarm information to the target user includes steps C31-C34, as follows:
  • the motion information may include foot motion and head motion.
  • Head movements can include normal state, shaking state, and head tilt state.
  • the normal state can be understood as the state of normal walking
  • the shaking state can be understood as left and right shaking or back and forth shaking, etc.
  • the shaking state includes shaking frequency
  • the eccentric head state can be understood The head is tilted to the left or right.
  • Foot movements can include pace, pace direction, etc.
  • the pace direction can be understood as the walking direction, and the pace can be understood as the distance of each step and the frequency of walking.
  • the user state may include: a normal state and a bad state.
  • the bad state may include a mild bad state, a moderate bad state, and a severe bad state.
  • the mild bad state may be understood as that the target user's consciousness is in a slightly blurred state.
  • the mild drunk state the mild drunk state can be understood as the target user can walk normally but the consciousness is slightly blurred
  • the moderate bad state can be understood as the target user's consciousness is in a moderately blurred state, for example, moderate drunk state, moderate
  • the drunk state can be understood as that the target user can no longer walk normally, but can still walk.
  • the severely bad state can be understood as the target user's consciousness is in a severely blurred state, for example, the severe drunk state, the severe drunk state can be understood as that the target user has If you cannot walk normally, you will be accompanied by vomiting.
  • the method for determining the state information of the target user according to the action information can be determined by the mapping relationship between the action information and the state information.
  • a possible mapping relationship between the action information and the state information is shown in Table 1. , Taking head movement as an example, as follows:
  • Action information user status Normal state of the head normal status Shaking state low shaking frequency
  • Moderately bad condition Shaking state high shaking frequency
  • Mildly bad condition Biased state Moderately bad state or severely bad state
  • head motion is taken as an example for description, and of course, there may be a state information mapping relationship combining head motion and foot motion.
  • the target security level corresponds to the user status one by one, and the security level in the normal status is the highest, followed by a mildly bad status, a moderately poor status, and a severely poor status, and the security level is sequentially lowered.
  • the preset security level is the security level corresponding to the mild bad state, and the preset time interval can be set by experience value or historical data.
  • the alarm information corresponding to the target security level can be understood as that different security levels have different alarm information, and the specific alarm information is set by empirical values.
  • the target user's own status is determined and the target user's security level is determined based on the status.
  • the security level is low, the target user is warned. For example, the target user goes home alone after drinking.
  • the security level of the target user is low, the security level of the target user needs to be discriminated, and when the security level of the target user is determined to be low, an alarm message is sent to the user, which can alert the target user, thereby improving the target user to a certain extent Security.
  • FIG. 3 is a schematic flowchart of another character relationship analysis provided by an embodiment of the present application.
  • the character relationship analysis method may include steps 301-307, as follows:
  • 301 Obtain a peer parameter between a target user and at least one peer user of the target user;
  • the peer parameters include the number of peers and the distance of peers, according to the peer parameters of the at least one peer user.
  • the target user's location point is the target user's mapping point in the reference relationship graph
  • the method for obtaining the correction factor of the relationship graph may be: acquiring multiple images when the first peer user is traveling with the target user, and the first peer user is any one of the at least one peer user; Performing face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images; according to the first peer in each image The face image of the user and the face image of the target user, determining the angle between the face orientation of the first peer user and the target user in each image to obtain multiple target angles; according to the multiple Target angles to determine the relationship graph correction factor of the first peer user; using the acquisition method of the relationship graph correction factor of the first peer user to obtain the relationship graph correction factor of the second peer user to obtain the at least one A relationship graph correction factor of each peer user among peer users, the second peer user is a user other than the first peer user among the at least one peer user.
  • the target distance value is determined according to the number of peers and the distance of the peers, and the reference relationship graph is generated according to the target distance value. After the reference relationship graph is corrected, the target relationship graph is obtained, which can improve the acquisition of the target relationship graph to a certain extent. Accuracy.
  • FIG. 4 is a schematic flowchart of another character relationship analysis provided by an embodiment of the present application.
  • the character relationship analysis method may include steps 401-406, as follows:
  • the target security level of the target user is lower than a preset security level, push alarm information corresponding to the target security level to the target user at a preset time interval.
  • the target user's own status is determined and the target user's security level is determined based on the status.
  • the security level is low, the target user is warned. For example, the target user goes home alone after drinking.
  • the security level of the target user is low, the security level of the target user needs to be discriminated, and when the security level of the target user is determined to be low, an alarm message is sent to the user, which can alert the target user, thereby improving the target user to a certain extent Security.
  • FIG. 5 is a schematic structural diagram of a terminal provided by an embodiment of the present application. As shown in the figure, it includes a processor, an input device, an output device, and a memory. The input device, the output device, and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the above program includes to execute the following Step instructions
  • the target user relationship between the target user and the at least one peer user is determined according to the target relationship graph.
  • the peer parameters between the target user and at least one peer user of the target user are obtained, and the target between the target user and the at least one peer user is established according to the peer parameters of the at least one peer user Relationship graph, the target user relationship between the target user and the at least one peer user is determined according to the target relationship graph, therefore, relative to the existing solution, the relationship between users is analyzed through existing data
  • the user relationship between the target user and peer users can be intuitively reflected through the relationship graph, and then The user relationship between the target user and the peer users can be determined through the relationship graph, which can also improve the efficiency of obtaining the user relationship to a certain extent.
  • the terminal includes a hardware structure and/or a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the functional unit of the terminal according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
  • FIG. 6 is a schematic structural diagram of an apparatus for analyzing a person relationship according to an embodiment of the present application.
  • the apparatus includes an obtaining unit 601, a creating unit 602, and a determining unit 603, where,
  • the obtaining unit 601 is configured to obtain a peer parameter between the target user and at least one peer user of the target user;
  • the creating unit 602 is configured to establish a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
  • the determining unit 603 is configured to determine a target user relationship between the target user and the at least one peer user according to the target relationship graph.
  • the peer parameters between the target user and at least one peer user of the target user are obtained, and the target between the target user and the at least one peer user is established according to the peer parameters of the at least one peer user Relationship graph, the target user relationship between the target user and the at least one peer user is determined according to the target relationship graph, therefore, relative to the existing solution, the relationship between users is analyzed through existing data
  • the user relationship between the target user and peer users can be intuitively reflected through the relationship graph, and then The user relationship between the target user and the peer users can be determined through the relationship graph, which can also improve the efficiency of obtaining the user relationship to a certain extent.
  • the peer parameters include the number of peers and the peer distance.
  • all The creation unit 602 is specifically used for:
  • the target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
  • the creating unit 602 is specifically configured to:
  • the first peer user is any peer user of the at least one peer user;
  • the above method is repeated until the relationship graph correction factor of each peer user in the at least one peer user is obtained.
  • the character relationship analysis device is also specifically used for:
  • the target reference peer user If there is at least one target reference peer user, alarm information is pushed to the target user, and the target reference peer user is a user whose peer distance among the at least one reference peer user is greater than a preset peer distance.
  • the person relationship analysis device is further specifically used to:
  • the alarm information corresponding to the target security level is pushed to the target user at a preset time interval.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute any of the character relationship dividing methods described in the above method embodiments Part or all steps.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program causes the computer to execute any of the characters described in the above method embodiments Part or all of the steps of the relationship analysis method.

Abstract

A relationship analysis method and a related product. The method comprises: acquiring a companionship parameter with respect to a target user and at least one companion user of the target user (201); establishing, according to the companionship parameter of the at least one companion user, a target relationship graph with respect to the target user and the at least one companion user (202); and determining, according to the target relationship graph, a target user relationship between the target user and the at least one companion user (203). Thus, the invention intuitively reflects relationships between users, and improves the efficiency of determining user relationships.

Description

人物关系分析方法及相关产品Character relationship analysis method and related products
本申请要求于2018年12月21日提交中国专利局,申请号为201811573297.5、发明名称为“人物关系分析方法及相关产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires priority to be submitted to the Chinese Patent Office on December 21, 2018, with the application number 201811573297.5 and the invention titled "Person Relation Analysis Method and Related Products". The entire content of this application is incorporated by reference in this application .
技术领域Technical field
本申请涉及数据处理技术领域,具体涉及一种人物关系分析方法及相关产品。This application relates to the field of data processing technology, and specifically relates to a character relationship analysis method and related products.
背景技术Background technique
随着城市文明的不断发展,人与人之间的关系也变得越来越复杂。当前对用户之间的关系进行分析时,主要采用的方式为通过获取已有的数据,然后通过对已有的数据进行分析,得出用户之间的关系,在获取用户之间的关系时的效率较低且不能对用户之间的关系进行直观的反映。With the continuous development of urban civilization, the relationship between people has become more and more complicated. At present, when analyzing the relationship between users, the main method is to obtain the existing data, and then analyze the existing data to obtain the relationship between the users. When obtaining the relationship between the users It is inefficient and cannot directly reflect the relationship between users.
发明内容Summary of the invention
本申请实施例提供一种人物关系分析方法及相关产品,能够直观的反映出用户之间的关系,以及提升用户关系获取时的效率。Embodiments of the present application provide a character relationship analysis method and related products, which can intuitively reflect the relationship between users and improve the efficiency of user relationship acquisition.
本申请实施例的第一方面提供了一种人物关系分析方法,所述方法包括:A first aspect of the embodiments of the present application provides a character relationship analysis method. The method includes:
获取目标用户与所述目标用户的至少一个同行用户之间的同行参数;Acquiring peer parameters between the target user and at least one peer user of the target user;
根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱;Establishing a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。The target user relationship between the target user and the at least one peer user is determined according to the target relationship graph.
可选的,结合本申请实施例的第一方面,在第一方面的第一种可能的实现方式中,所述同行参数包括同行次数和同行距离,所述根据所述至少一个同行 用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱,包括:Optionally, with reference to the first aspect of the embodiments of the present application, in a first possible implementation manner of the first aspect, the peer parameters include the number of peers and the peer distance, and the peers according to the at least one peer user Parameters to establish a target relationship graph between the target user and the at least one peer user, including:
获取所述同行次数的第一权值,以及获取所述同行距离的第二权值;Obtaining a first weight value of the number of peers, and a second weight value of the distance of the peers;
采用所述第一权值、所述第二权值对所述至少一个同行用户的同行次数与所述至少一个同行用户的同行距离进行权值计算,得到至少一个目标距离值;Weighting the number of peers of the at least one peer user and the peer distance of the at least one peer user by using the first weight value and the second weight value to obtain at least one target distance value;
以所述目标用户的位置点为圆心以及至少一个目标距离值为半径,建立参考关系图谱,所述目标用户的位置点为目标用户的在所述参考关系图谱中的映射点;Establish a reference relationship map with the target user's position point as the center of the circle and at least one target distance value as the radius, and the target user's position point as the target user's mapping point in the reference relationship map;
获取所述至少一个同行用户中的每个同行用户的关系图谱修正因子;Obtaining the relationship graph correction factor of each peer user in the at least one peer user;
通过所述每个同行用户的关系图谱修正因子和所述参考关系图谱,确定出所述目标关系图谱。The target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
可选的,结合本申请实施例的第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述获取所述至少一个同行用户的中的每个同行用户的关系图谱修正因子,包括:Optionally, with reference to the first possible implementation manner of the first aspect of the embodiments of the present application, in a second possible implementation manner of the first aspect, the acquiring each of the at least one peer user Correction factors of the relationship graph of peer users, including:
获取第一同行用户与所述目标用户同行时的多张图像,所述第一同行用户为所述至少一个同行用户中的任意一个同行用户;Acquiring multiple images of a first peer user when traveling with the target user, the first peer user is any peer user of the at least one peer user;
对所述多张图像进行人脸识别,得到所述多张图像的每张图像中的第一同行用户的人脸图像以及所述目标用户的人脸图像;Performing face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images;
根据所述每张图像中第一同行用户的人脸图像以及所述目标用户的人脸图像,确定每张图像中所述第一同行用户与所述目标用户面部朝向之间的夹角,得到多个目标夹角;Determine the angle between the face orientation of the first peer user and the target user in each image according to the face image of the first peer user in each image and the face image of the target user, to obtain Multiple target angles;
根据所述多个目标夹角确定出所述第一同行用户的关系图谱修正因子;Determining the relationship graph correction factor of the first peer user according to the multiple target angles;
采用所述第一同行用户的关系图谱修正因子的获取方式,获取第二同行用户的关系图谱修正因子,得到所述至少一个同行用户中的每个同行用户的关系图谱修正因子,所述第二同行用户为所述至少一个同行用户中除所述第一同行用户之外的用户。Adopting the acquisition method of the relationship graph correction factor of the first peer user to obtain the relationship graph correction factor of the second peer user to obtain the relationship graph correction factor of each peer user of the at least one peer user, the second The peer user is a user other than the first peer user among the at least one peer user.
本申请实施例的第二方面提供了一种人物关系分析装置,所述装置包括获取单元、创建单元和确定单元,其中,A second aspect of an embodiment of the present application provides a character relationship analysis device. The device includes an acquisition unit, a creation unit, and a determination unit, where:
所述获取单元,用于获取目标用户与所述目标用户的至少一个同行用户之间的同行参数;The acquiring unit is configured to acquire a peer parameter between the target user and at least one peer user of the target user;
所述创建单元,用于根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱;The creating unit is configured to establish a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
所述确定单元,用于根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。The determining unit is configured to determine a target user relationship between the target user and the at least one peer user according to the target relationship graph.
可选的,结合本申请实施例的第二方面,在第二方面的第一种可能的实现方式中,所述同行参数包括同行次数和同行距离,在所述根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱方面,所述创建单元具体用于:Optionally, with reference to the second aspect of the embodiments of the present application, in a first possible implementation manner of the second aspect, the peer parameters include the number of peers and the distance of peers, based on the at least one peer user’s Peer parameters, to establish a target relationship graph between the target user and the at least one peer user, the creation unit is specifically used to:
获取所述同行次数的第一权值,以及获取所述同行距离的第二权值;Obtaining a first weight value of the number of peers, and a second weight value of the distance of the peers;
采用所述第一权值、所述第二权值对所述至少一个同行用户的同行次数与所述至少一个同行用户的同行距离进行权值计算,得到至少一个目标距离值;Weighting the number of peers of the at least one peer user and the peer distance of the at least one peer user by using the first weight value and the second weight value to obtain at least one target distance value;
以所述目标用户的位置点为圆心以及至少一个目标距离值为半径,建立参考关系图谱,所述目标用户的位置点为目标用户的在所述参考关系图谱中的映射点;Establish a reference relationship map with the target user's position point as the center of the circle and at least one target distance value as the radius, and the target user's position point as the target user's mapping point in the reference relationship map;
获取所述至少一个同行用户中的每个同行用户的关系图谱修正因子;Obtaining the relationship graph correction factor of each peer user in the at least one peer user;
通过所述每个同行用户的关系图谱修正因子和所述参考关系图谱,确定出所述目标关系图谱。The target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
可选的,结合本申请实施例的第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,在所述获取所述至少一个同行用户的中的每个同行用户的关系图谱修正因子方面,所述创建单元具体用于:Optionally, with reference to the first possible implementation manner of the second aspect of the embodiments of the present application, in the second possible implementation manner of the second aspect, each of the acquiring the at least one peer user With respect to the relationship graph correction factors of the same peer users, the creation unit is specifically used to:
获取第一同行用户与所述目标用户同行时的多张图像,所述第一同行用户为所述至少一个同行用户中的任意一个同行用户;Acquiring multiple images of a first peer user when traveling with the target user, the first peer user is any peer user of the at least one peer user;
对所述多张图像进行人脸识别,得到所述多张图像的每张图像中的第一同行用户的人脸图像以及所述目标用户的人脸图像;Performing face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images;
根据所述每张图像中第一同行用户的人脸图像以及所述目标用户的人脸图像,确定每张图像中所述第一同行用户与所述目标用户面部朝向之间的夹角,得到多个目标夹角;Determine the angle between the face orientation of the first peer user and the target user in each image according to the face image of the first peer user in each image and the face image of the target user, to obtain Multiple target angles;
根据所述多个目标夹角确定出所述第一同行用户的关系图谱修正因子;Determining the relationship graph correction factor of the first peer user according to the multiple target angles;
采用所述第一同行用户的关系图谱修正因子的获取方式,获取第二同行用户的关系图谱修正因子,得到所述至少一个同行用户中的每个同行用户的关系图谱修正因子,所述第二同行用户为所述至少一个同行用户中除所述第一同行用户之外的用户。Adopting the acquisition method of the relationship graph correction factor of the first peer user to obtain the relationship graph correction factor of the second peer user to obtain the relationship graph correction factor of each peer user of the at least one peer user, the second The peer user is a user other than the first peer user among the at least one peer user.
本申请实施例的第三方面提供一种终端,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如本申请实施例第一方面中的步骤指令。A third aspect of the embodiments of the present application provides a terminal, including a processor, an input device, an output device, and a memory, where the processor, input device, output device, and memory are connected to each other, wherein the memory is used to store a computer program The computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiments of the present application.
本申请实施例的第四方面提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application. Part or all of the steps described in one aspect.
本申请实施例的第五方面提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。A fifth aspect of an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium that stores the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in the first aspect. The computer program product may be a software installation package.
实施本申请实施例,至少具有如下有益效果:The implementation of the embodiments of the present application has at least the following beneficial effects:
通过本申请实施例,获取目标用户与所述目标用户的至少一个同行用户之间的同行参数,根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱,根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系,因此,相对于现有 方案中,通过已有数据对用户之间的关系进行分析,得到用户关系,能够通过对目标用户与目标用户的同行用户的同行参数进行分析,并根据同行参数建立关系图谱,能够通过关系图谱直观的反映出目标用户与同行用户之间的用户关系,进而可通过关系图谱确定出目标用户与同行用户之间的用户关系,从而也能一定程度上提升获取用户关系的效率。Through the embodiment of the present application, the peer parameters between the target user and the at least one peer user of the target user are obtained, and between the target user and the at least one peer user are established according to the peer parameters of the at least one peer user Target relationship graph of the target relationship between the target user and the at least one peer user is determined according to the target relationship graph, therefore, relative to the existing solution, the relationship between users is based on existing data Analyze to get the user relationship. By analyzing the peer parameters of the target user and the target user's peer users, and establishing a relationship graph based on the peer parameters, the user relationship between the target user and the peer user can be intuitively reflected through the relationship graph Then, the user relationship between the target user and the peer users can be determined through the relationship graph, which can also improve the efficiency of obtaining user relationships to a certain extent.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, without paying any creative labor, other drawings can be obtained based on these drawings.
图1为本申请实施例提供了一种应用人物分析方法的人物分析系统的结构示意图;1 is a schematic structural diagram of a character analysis system applying a character analysis method according to an embodiment of the present application;
图2A为本申请实施例提供了一种人物关系分析方法的流程示意图;2A is a schematic flowchart of a character relationship analysis method according to an embodiment of the present application;
图2B为本申请实施例提供了一种参考关系图谱的示意图;2B is a schematic diagram of a reference relationship graph provided by an embodiment of the present application;
图3为本申请实施例提供了另一种人物关系分析的流程示意图;3 is a schematic flowchart of another character relationship analysis provided by an embodiment of the present application;
图4为本申请实施例提供了另一种人物关系分析的流程示意图;4 is a schematic flowchart of another character relationship analysis provided by an embodiment of the present application;
图5为本申请实施例提供的一种终端的结构示意图;5 is a schematic structural diagram of a terminal according to an embodiment of the present application;
图6为本申请实施例提供了一种人物关系分析装置的结构示意图。6 is a schematic structural diagram of a character relationship analysis device according to an embodiment of the present application.
具体实施方式detailed description
为了更好的理解本申请实施例提供的一种人物关系分析方法,下面首先对应用人物分析方法的人物分析系统进行简要介绍。如图1所示,人物分析系统包括采集装置101和分析装置102,其中,采集装置101采集目标用户与目标用户的至少一个同行用户之间的同行参数,采集装置101将同行参数发送到分析装置102,分析装置102根据至少一个同行用户的同行参数,建立目标用户与至 少一个同行用户之间的目标关系图谱,在成功建立目标关系图谱后,分析装置102根据目标关系图谱,确定出目标用户与至少一个同行用户之间的目标用户关系,因此,相对于现有方案中,通过已有数据对用户之间的关系进行分析,得到用户关系,能够通过对目标用户与目标用户的同行用户的同行参数进行分析,并根据同行参数建立关系图谱,能够通过关系图谱直观的反映出目标用户与同行用户之间的用户关系,进而可通过关系图谱确定出目标用户与同行用户之间的用户关系,从而也能一定程度上提升获取用户关系的效率。In order to better understand the character relationship analysis method provided by the embodiments of the present application, the following first briefly introduces the character analysis system applying the character analysis method. As shown in FIG. 1, the character analysis system includes a collection device 101 and an analysis device 102, wherein the collection device 101 collects peer parameters between the target user and at least one peer user of the target user, and the collection device 101 sends the peer parameters to the analysis device 102. The analyzing device 102 establishes a target relationship graph between the target user and at least one peer user according to the peer parameters of at least one peer user. After successfully establishing the target relationship graph, the analyzing device 102 determines the target user and the target user graph according to the target relationship graph The target user relationship between at least one peer user, therefore, compared with the existing solution, the relationship between users is analyzed through the existing data to obtain the user relationship, which can be passed by the target user and the target user's peer user's peer The parameters are analyzed, and a relationship graph is established according to the peer parameters, which can intuitively reflect the user relationship between the target user and the peer user through the relationship graph, and then the user relationship between the target user and the peer user can be determined through the relationship graph, thereby It can also improve the efficiency of acquiring user relationships to a certain extent.
请参阅图2A,图2A为本申请实施例提供了一种人物关系分析方法的流程示意图。如图2A所示,人物关系分析方法包括步骤201-203,具体如下:Please refer to FIG. 2A, which is a schematic flowchart of a character relationship analysis method according to an embodiment of the present application. As shown in FIG. 2A, the character relationship analysis method includes steps 201-203, as follows:
201、获取目标用户与所述目标用户的至少一个同行用户之间的同行参数。201. Acquire a peer parameter between a target user and at least one peer user of the target user.
可选的,同行参数可包括同行次数和同行距离,同行距离可以理解为每次同行时的同行距离,也可以理解为同行时的总距离。Optionally, the peer parameters may include the number of peers and the peer distance. The peer distance may be understood as the peer distance for each peer or the total distance when peers.
可选的,获取同行参数的方法可以为通过摄像头获取目标用户与至少一个同行用户中的每个同行用户的同行距离,具体的,可以为,在目标用户与同行用户同行时,通过多个摄像头分别获取同行时的多张图像,根据同行时的多张图像来确定出目标用户与同行用户的同行距离。同行用户可以理解为系统中判别出的,与目标用户一同行走的用户。其中,多张图像为按照预设的时间间隔拍摄得到的多张图像,根据多张图像来确定目标用户与同行用户的同行距离的方法包括步骤A1-A4,具体如下:Optionally, the method for obtaining peer parameters may be to obtain the peer distance between the target user and each peer user in at least one peer user through a camera. Specifically, the target user may pass multiple cameras when traveling with the peer user. Acquire multiple images of peers separately, and determine the peer distance between the target user and peer users based on the multiple images of peers. A peer user can be understood as a user identified in the system and walking with the target user. Wherein, the multiple images are multiple images taken at preset time intervals, and the method for determining the peer distance between the target user and the peer user based on the multiple images includes steps A1-A4, as follows:
A1、根据多张图像中的每张图像,确定出目标用户和同行用户所在的位置点,以及获取目标用户和同行用户在每个位置点的运动速度,相邻的两个位置点之间包括多条参考路径;A1. According to each of the multiple images, determine the location point where the target user and the peer user are located, and obtain the movement speed of the target user and the peer user at each location point, including between two adjacent location points Multiple reference paths;
其中,参考路径可以理解为相邻两个位置点之间的可以通行的路径,例如,相邻两个位置点为A点和B点,则参考路径可以理解为从A点到B点之间的用户可以通行的路径。The reference path can be understood as a passable path between two adjacent positions. For example, if the two adjacent positions are points A and B, the reference path can be understood as between point A and point B. The path that users can pass.
A2、根据第一位置点的运动速度和预设时间间隔,确定出第一参考距离, 以及根据第二位置点的运动速度和预设时间间隔,确定出第二参考距离,第一位置点为起始位置点,第二位置点为截止位置点;A2. Determine the first reference distance according to the movement speed of the first position point and the preset time interval, and determine the second reference distance according to the movement speed of the second position point and the preset time interval, the first position point is The starting position, the second position is the ending position;
其中,预设时间间隔可以通过经验值设定或历史数据设定。Among them, the preset time interval can be set by experience value or historical data.
其中,第一位置点和第二位置点可以理解为,目标用户从第一位置点到第二位置点时,起始位置点为第一位置点,截止位置点为第二位置点,第一位置点可以为多个位置点中除了最后一个位置点的任意一个位置点,第二位置点为第一位置点的下一个位置点。Among them, the first position point and the second position point can be understood as, when the target user moves from the first position point to the second position point, the starting position point is the first position point, and the ending position point is the second position point, the first The position point may be any position point except the last position point among the plurality of position points, and the second position point is the next position point of the first position point.
A3、获取第一位置点和第二位置点之间每条参考路径的距离,得到多个第三距离;A3. Obtain the distance between each reference path between the first location point and the second location point to obtain multiple third distances;
A4、将多个第三距离中位于第一参考距离和第二参考距离之间的距离,作为目标用户和同行用户在第一位置点和第二位置点之间的同行距离。A4. The distance between the first reference distance and the second reference distance among the plurality of third distances is used as the peer distance between the target user and the peer user between the first location point and the second location point.
可选的,若存在多个第三距离,则取该多个第三距离的均值作为目标用户和同行用户在第一位置点和第二位置点之间的同行距离。Optionally, if there are multiple third distances, the average of the multiple third distances is taken as the peer distance between the target user and the peer user between the first location point and the second location point.
本示例中,通过位置点以及每个位置点的运动速度来确定出目标用户在两个相邻位置点之间的同行距离,能够一定程度上提升获取同行距离时的准确性。In this example, the location distance and the movement speed of each location point are used to determine the peer user's peer distance between two adjacent location points, which can improve the accuracy of acquiring the peer distance to a certain extent.
202、根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱。202. Establish a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user.
可选的,同行参数包括同行距离和同行次数,一种可能的根据同行参数建立目标关系图谱的方法包括步骤B1-B5,具体如下:Optionally, the peer parameters include peer distance and the number of peers. A possible method for establishing a target relationship graph based on peer parameters includes steps B1-B5, as follows:
B1、获取所述同行次数的第一权值,以及获取所述同行距离的第二权值;B1. Obtain the first weight of the number of peers and the second weight of the distance of peers;
其中,第一权值和第二权值,可以根据神经网络模型得到,具体的,神经网络模型可以通过如下方式训练得到:Among them, the first weight and the second weight can be obtained according to the neural network model. Specifically, the neural network model can be obtained by training as follows:
神经网络模型可以包括N层神经网络,在训练时,可以将样本数据输入到该N层神经网络的第一层,通过第一层进行正向运算后得到第一运算结果,然后将第一运算结果输入到第二层进行正向运算,得到第二结果,以此,直至第N-1结果输入到第N层进行正向运算,得到第N运算结果,在对第N运算结果 执行反向训练,以此重复执行正向训练和反向训练,直至神经网络模型训练完成。样本数据为同行次数、同行距离、预设的第一权值和预设第二权值。The neural network model can include an N-layer neural network. During training, the sample data can be input to the first layer of the N-layer neural network, and the first operation result can be obtained after the forward operation through the first layer, and then the first operation The result is input to the second layer to perform the forward operation to obtain the second result, and until the N-1 result is input to the Nth layer to perform the forward operation to obtain the Nth operation result, perform the reverse operation on the Nth operation result Training, so that the forward training and the reverse training are repeatedly performed until the neural network model training is completed. The sample data are the number of peers, the distance of peers, the preset first weight and the preset second weight.
B2、采用所述第一权值、所述第二权值对所述至少一个同行用户的同行次数与所述至少一个同行用户的同行距离进行权值计算,得到至少一个目标距离值;B2. Using the first weight value and the second weight value to perform weight calculation on the number of peers of the at least one peer user and the peer distance of the at least one peer user to obtain at least one target distance value;
其中,权值计算的方法可以为:将第一权值乘以同行次数,将第二权值乘以同行距离,再求和,得到一个目标距离值。重复前述方法,直至计算出至少一个同行用户中的每个同行用户的目标距离值,得到至少一个目标距离值。The weight calculation method may be: multiplying the first weight by the number of peers, multiplying the second weight by the distance of peers, and then summing to obtain a target distance value. The foregoing method is repeated until the target distance value of each peer user in at least one peer user is calculated to obtain at least one target distance value.
B3、以所述目标用户的位置点为圆心以及至少一个目标距离值为半径,建立参考关系图谱,所述目标用户的位置点为目标用户的在所述参考关系图谱中的映射点;B3. Establish a reference relationship graph with the target user's location point as the center of the circle and at least one target distance value as the radius. The target user's location point is the target user's mapping point in the reference relationship graph;
可选的,如图2B所示,图2B为一种参考关系图谱的示意图。其中,r1、r2、r3为不同的目标距离值,圆心位置点为目标用户的在参考关系图谱中的映射点。Optionally, as shown in FIG. 2B, FIG. 2B is a schematic diagram of a reference relationship graph. Among them, r1, r2, r3 are different target distance values, and the center point is the mapping point of the target user in the reference relationship map.
B4、获取所述至少一个同行用户中的每个同行用户的关系图谱修正因子;B4. Obtain the relationship graph correction factor of each peer user in the at least one peer user;
可选的,一种可能的获取至少一个同行用户中的每个同行用户的关系图谱修正因子的方法包括步骤B41-B45、具体如下:Optionally, a possible method for obtaining the relationship graph correction factor of each peer user in at least one peer user includes steps B41-B45, as follows:
B41、获取第一同行用户与所述目标用户同行时的多张图像,所述第一同行用户为所述至少一个同行用户中的任意一个同行用户;B41. Acquire multiple images of a first peer user when traveling with the target user, where the first peer user is any peer user of the at least one peer user;
其中,多张图像可以通过摄像头采集得到。其中,摄像头可以为高光谱摄像头,采用高光谱摄像头时,一种可能的采集方法包括步骤S1-S2,具体如下:Among them, multiple images can be collected by the camera. The camera may be a hyperspectral camera. When a hyperspectral camera is used, a possible collection method includes steps S1-S2, as follows:
S1、对第一同行用户与所述目标用户同行时的图像进行采集,得到包括目标用户和同行用户的一个图像序列,所述图像序列中包括多张图像;S1: Collecting images of the first peer user and the target user when traveling together to obtain an image sequence including the target user and the peer user, and the image sequence includes multiple images;
可选的,高光谱摄像头可以采集多个波段中的图像,在对目标用户和同行用户的图像进行采集时,可以采集多个不同波段中的图像,从而得到一个包括多个波段下的图像序列。多个不同波段可以表示为n个波段,即,第一波段至 第n波段,n为正整数,其中,不同波段可以理解为,将一个固定波段均分成多个子波段,从而得到多个不同的波段,例如,300-600微米波段,将该波段均分为10个波段,则可得到10个子波段。Optionally, the hyperspectral camera can collect images in multiple bands, and when capturing images of target users and peer users, it can collect images in multiple different bands to obtain an image sequence including multiple bands . Multiple different bands can be represented as n bands, that is, from the first band to the n-th band, where n is a positive integer, where different bands can be understood as dividing a fixed band into multiple sub-bands, thereby obtaining multiple different bands The band, for example, the 300-600 micron band, which is divided into 10 bands, then 10 sub-bands can be obtained.
S2、对所述多张图像进行融合,得到目标图像。S2. Fusion the multiple images to obtain a target image.
可选的,一种对所述多张图像进行融合的方法包括步骤S21-S22,具体如下:Optionally, a method for fusing the multiple images includes steps S21-S22, as follows:
S21、对多张图像中的每张图像中的所有像素点进行轮廓标记,得到标记结果,标记结果包括人体轮廓像素点、背景像素点;S21. Perform contour labeling on all pixels in each image in multiple images to obtain a labeling result. The labeling result includes human contour pixels and background pixels;
其中,以每张图像的左下角为坐标原点,图像的长边所在方向为x轴,图像的短边所在方向为y轴建立直角坐标系,从而得到每个像素点的坐标。其中,对图像进行人体轮廓标记的方法,可以根据像素点的灰度值进行标记,当像素点的灰度值处于预设灰度值区间,则将该像素点点标记为人体像素点,预设灰度值区间根据经验值设定或根据历史数据进行设定。Wherein, the lower left corner of each image is taken as the origin of coordinates, the direction of the long side of the image is the x-axis, and the direction of the short side of the image is the y-axis to establish a rectangular coordinate system, thereby obtaining the coordinates of each pixel. Among them, the method of marking the body contour of the image can be marked according to the gray value of the pixel. When the gray value of the pixel is within the preset gray value interval, the pixel is marked as a human pixel, preset The gray value interval is set according to empirical values or according to historical data.
S22、采用该标记结果,对多张图像进行融合,得到目标图像。S22. Using the labeling result, fuse multiple images to obtain a target image.
其中,根据标记结果,对图像进行融合的方法可以为:提取相同坐标的像素点的标记结果,若相同像素点的坐标的标记结果为人体像素点大于或等于预设个数,则将该点判定为人体图像的像素点,若相同像素点的坐标的标记结果为人体像素点低于预设个数,则将该点判定为背景图像的像素点;根据图像的像素点得到目标图像。预设个数根据经验值设定或根据历史数据进行设定。According to the labeling result, the method for fusing the image may be: extract the labeling result of the pixel points of the same coordinates, if the labeling result of the coordinates of the same pixel point is that the number of human body pixels is greater than or equal to the preset number, then the point It is determined to be a pixel of the human body image. If the result of the marking of the coordinates of the same pixel point is that the number of human body pixels is lower than the preset number, the point is determined as the pixel of the background image; the target image is obtained according to the pixel of the image. The preset number is set according to empirical values or according to historical data.
通过采集多个波段中的人体图像,然后对多个波段中的人体图像进行融合,得到人体图像,由于不同波段对不同的颜色的事物进行成像的结果不同,例如,用户在穿着时,会身穿不同颜色的衣服等,则不同波段的成像结果,能够更好反映出人体的特征,从而采用多波段人体图像融合的方式得到人体图像,能够一定程度上提升获取人体图像时的准确性。By collecting human body images in multiple wave bands, and then merging human body images in multiple wave bands to obtain human body images, due to the different results of imaging different colors in different wave bands, for example, when users wear Wearing different colors of clothes, etc., the imaging results of different wave bands can better reflect the characteristics of the human body, so the multi-band human body image fusion method is used to obtain the human body image, which can improve the accuracy of obtaining the human body image to a certain extent.
B42、对所述多张图像进行人脸识别,得到所述多张图像的每张图像中的第一同行用户的人脸图像以及所述目标用户的人脸图像;B42. Perform face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images;
可选的,当人脸图像出现被遮挡时,一种可能的多张图像进行分析,确定 出第一同行用户的人脸图像以及所述目标用户的人脸图像的方法包括步骤B420-B428,具体如下:Optionally, when the face image is occluded, a possible multiple images are analyzed to determine the face image of the first peer user and the face image of the target user include steps B420-B428, details as follows:
B420、依据人脸的对称性原理对目标人脸图像进行修复,得到第一人脸图像以及目标修复系数,所述目标修复系数用于表述人脸图像对修复的完整度;B420. Repair the target face image according to the principle of face symmetry to obtain the first face image and the target repair coefficient. The target repair coefficient is used to express the completeness of the face image for repair;
可选的,可根据人脸的对称性原理对目标人脸图像进行镜像变换处理,在进行镜像变换处理以后,可将处理以后的目标人脸图像基于生成对抗网络的模型进行人脸修复,得到第一人脸图像以及目标修复系数。Alternatively, the target face image can be mirror-transformed according to the principle of face symmetry. After the mirror-transform process, the target face image after processing can be used to perform face repair based on the model of generating an adversarial network to obtain The first face image and the target repair coefficient.
其中,目标人脸图像为从采集的图像中提取出的仅包括部分人脸的人脸图像。目标修复系数可为修复完成的人脸部位的像素占整个人脸的像素总数的比例值,生成对抗网络的模型可包括以下组成部分:鉴别器、语义正则化网络等等,在此不作限定。Wherein, the target face image is a face image extracted from the collected image and including only part of the face. The target repair coefficient may be the proportion of pixels of the face part of the repaired face to the total number of pixels of the entire face. The model for generating the adversarial network may include the following components: discriminator, semantic regularization network, etc., which are not limited here. .
B421、对所述第一人脸图像进行特征提取,得到第一人脸特征集,以及对所述目标人脸图像进行特征提取,得到第二人脸特征集;B421. Perform feature extraction on the first face image to obtain a first face feature set, and perform feature extraction on the target face image to obtain a second face feature set;
可选地,对第一人脸图像进行特征提取的方法可包括以下至少一种:LBP(Local Binary Patterns,局部二值模式)特征提取算法、HOG(Histogram of Oriented Gradient,方向梯度直方图)特征提取算法、LoG(Laplacian of Gaussian,二阶拉普拉斯-高斯)特征提取算法等等,在此不做限定。Optionally, the method of feature extraction on the first face image may include at least one of the following: LBP (Local Binary Patterns) feature extraction algorithm, HOG (Histogram of Oriented Gradient, directional gradient histogram) feature Extraction algorithms, LoG (Laplacian of Gaussian, second-order Laplacian-Gaussian) feature extraction algorithms, etc., are not limited here.
B422、依据所述第一人脸特征集在所述数据库中进行搜索,得到与所述第一人脸特征集匹配成功的多个对象的人脸图像;B422. Perform a search in the database according to the first face feature set to obtain face images of multiple objects that successfully match the first face feature set;
其中,数据库中预先存储有人脸特征集。Among them, the face feature set is pre-stored in the database.
B423、将所述第二人脸特征集与所述多个对象的人脸图像的特征集进行匹配,得到多个第一匹配值;B423. Match the second face feature set with the feature sets of the face images of the multiple objects to obtain multiple first matching values;
B424、获取所述多个对象中每一对象的人体特征数据,得到多个人体特征数据;B424. Obtain the human body characteristic data of each of the multiple objects to obtain multiple human body characteristic data;
B425、将所述目标人脸对应的人体特征数据与所述多个人体特征数据中每一人体特征数据进行匹配,得到多个第二匹配值;B425. Match the human body feature data corresponding to the target face with each of the multiple human body feature data to obtain multiple second matching values;
B426、按照预设的修复系数与权值之间的映射关系,确定所述目标修复系数对应的第一权值,并依据所述第一权值确定第二权值;B426. Determine a first weight corresponding to the target repair coefficient according to a preset mapping relationship between the repair coefficient and the weight, and determine a second weight according to the first weight;
B427、根据所述第一权值、所述第二权值、所述多个第一匹配值、所述多个第二匹配值进行加权运算,得到多个目标匹配值;B427. Perform a weighted operation according to the first weight value, the second weight value, the multiple first matching values, and the multiple second matching values to obtain multiple target matching values;
B428、从所述多个目标匹配值中选取最大值,并将所述最大值对应的对象作为所述目标人脸图像对应的完整人脸图像。B428. Select the maximum value from the multiple target matching values, and use the object corresponding to the maximum value as the complete face image corresponding to the target face image.
其中,预设的修复系数与权值之间的映射关系可为每一个预设的修复系数均对应一个权值,且每一个预设的修复系数的权值之间的和为1,预设的修复系数的权值可由用户自行设置或者系统默认,具体地,根据预设的修复系数与权值之间的映射关系,确定目标修复系数对应的第一权值,并依据所述第一权值确定第二权值,第二权值可为第二匹配值对应的权值,第一权值与第二权值之间的和为1,将第一权值分别与多个第一匹配值加权,并将第二权值分别与多个第二匹配值进行加权运算,得到多个对象分别对应的多个目标匹配值,选取多个匹配值中最大的匹配值对应的对象为目标人脸图像对应的完整人脸图像。The mapping relationship between the preset repair coefficients and the weights may be that each preset repair coefficient corresponds to a weight, and the sum of the weights of each preset repair coefficient is 1, the preset The weight of the repair coefficient can be set by the user or the system default. Specifically, according to the preset mapping relationship between the repair coefficient and the weight, the first weight corresponding to the target repair coefficient is determined, and according to the first weight The value determines the second weight value. The second weight value may be the weight value corresponding to the second matching value. The sum between the first weight value and the second weight value is 1, and the first weight value is matched with multiple first weights respectively. Value weighting, and weighting the second weights with multiple second matching values respectively to obtain multiple target matching values corresponding to multiple objects, and selecting the object corresponding to the largest matching value among the multiple matching values as the target person The complete face image corresponding to the face image.
本示例中,通过对不完整人脸图像进行修复,在通过修复后的人脸图像,进行匹配,得到多个对象的人脸图像,在通过人体特征的比对,来确定出目标人脸图像对应的完整人脸图像,从而通过对人脸进行修复,在对修复后匹配的图像进行筛选,得到最后的完整人脸图像,能够一定程度上提升人脸图像获取时的准确性。In this example, by repairing the incomplete face image, matching the repaired face image to obtain the face images of multiple objects, and by comparing the human features, the target face image is determined Corresponding to the complete face image, through the repair of the face, the matched image after the repair is filtered to obtain the final complete face image, which can improve the accuracy of the face image acquisition to a certain extent.
B43、根据所述每张图像中第一同行用户的人脸图像以及所述目标用户的人脸图像,确定每张图像中所述第一同行用户与所述目标用户面部朝向之间的夹角,得到多个目标夹角;B43. Determine the angle between the face orientation of the first peer user and the target user in each image based on the face image of the first peer user and the face image of the target user in each image To get multiple target angles;
其中,第一同行用户的面部朝向与目标用户的面部朝向之间的夹角可以理解为将面部抽象为一个平面,该平面的垂线的方向为面部朝向,垂线的方向为面部所对的方向,因此,第一同行用户的面部朝向与目标用户的面部朝向之间的夹角即为垂线之间的夹角。垂线之间的夹角可以理解为异面直线之间的夹角 或共面直线之间的夹角。The angle between the face orientation of the first peer user and the face orientation of the target user can be understood as abstracting the face as a plane, the direction of the vertical line of the plane is the face orientation, and the direction of the vertical line is the face Direction, therefore, the angle between the face orientation of the first peer user and the face orientation of the target user is the angle between the vertical lines. The angle between vertical lines can be understood as the angle between straight lines of different planes or the angle between coplanar straight lines.
B44、根据所述多个目标夹角确定出所述第一同行用户的关系图谱修正因子;B44. Determine the relationship graph correction factor of the first peer user according to the multiple target angles;
其中,计算所述多个目标夹角的均值,得到目标夹角均值,再根据夹角均值与关系图谱修正因子之间的映射关系,确定出与目标夹角均值对应的第一同行用户的关系图谱修正因子,夹角均值与关系图谱修正因子之间的映射关系预先存储于人物关系分析系统中。关系图谱修正因子可以理解为对目标距离值进行修正的参数。Among them, the average value of the plurality of target angles is calculated to obtain the average value of the target angle, and then the relationship of the first peer user corresponding to the average value of the target angle is determined according to the mapping relationship between the average angle and the correction factor of the relationship map The map correction factor, the mapping between the mean angle and the relationship map correction factor is stored in the character relationship analysis system in advance. The relationship graph correction factor can be understood as a parameter that corrects the target distance value.
B45、采用所述第一同行用户的关系图谱修正因子的获取方式,获取第二同行用户的关系图谱修正因子,得到所述至少一个同行用户中的每个同行用户的关系图谱修正因子,所述第二同行用户为所述至少一个同行用户中除所述第一同行用户之外的用户。B45. Use the acquisition method of the relationship graph correction factor of the first peer user to obtain the relationship graph correction factor of the second peer user, and obtain the relationship graph correction factor of each peer user of the at least one peer user. The second peer user is a user other than the first peer user among the at least one peer user.
其中,第一同行用户的关系图谱修正因子的获取方式可以理解为步骤B41-B44所描述的方法。Wherein, the way to obtain the relationship graph correction factor of the first peer user can be understood as the method described in steps B41-B44.
B5、通过所述每个同行用户的关系图谱修正因子和所述参考关系图谱,确定出所述目标关系图谱。B5. Determine the target relationship graph by using the relationship graph correction factor of each peer user and the reference relationship graph.
可选的,可以将关系图谱修正因子乘以参考关系图谱中对应的目标距离值,从而得到目标关系图谱。Optionally, the relationship graph correction factor may be multiplied by the corresponding target distance value in the reference relationship graph to obtain the target relationship graph.
203、根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。203. Determine a target user relationship between the target user and the at least one peer user according to the target relationship graph.
可选的,目标关系图谱可以反映出同行用户与目标用户之间的亲密程度,目标距离值越小,则亲密度越高,目标距离值越大,则亲密度越低,具有相同目标距离值,则亲密度相同。Optionally, the target relationship graph can reflect the intimacy between peer users and target users. The smaller the target distance value, the higher the intimacy, and the larger the target distance value, the lower the intimacy, with the same target distance value , The same intimacy.
一个可能的实例中,为了提升目标用户的安全性,可以通过目标关系图谱对与目标用户同行的用户的安全性进行分析,该方法可宝库步骤C1-C3,具体如 下:In a possible example, in order to improve the security of the target user, the security of the users traveling with the target user can be analyzed through the target relationship graph. This method can be treasure steps C1-C3, as follows:
C1、从所述至少一个同行用户中确定出至少一个参考同行用户,所述参考同行用户为亲密度低于预设亲密度的同行用户;C1, at least one reference peer user is determined from the at least one peer user, and the reference peer user is a peer user whose intimacy is lower than a preset intimacy;
其中,获取参考同行用户的亲密度的方法可以从生成的目标关系图谱中进行获取。预设亲密度可以通过经验值设定或历史数据进行设定。Among them, the method of obtaining the intimacy of the reference peer users can be obtained from the generated target relationship graph. The preset intimacy can be set by experience value setting or historical data.
C2、获取所述目标用户与所述至少一个参考同行用户中的每个参考同行用户之间的同行距离;C2. Obtain the peer distance between the target user and each of the at least one reference peer user;
可选的,同行距离可以是目标用户与参考同行用户当前同行时的同行距离。获取目标用户与参考用户之间的同行距离的方法可以参照步骤A1-A4中确定同行距离的方法,此处不再赘述。Optionally, the peer distance may be the peer distance when the target user and the reference peer user are currently traveling. The method for obtaining the peer distance between the target user and the reference user can refer to the method for determining the peer distance in steps A1 to A4, which will not be described here.
C3、若存在至少一个目标参考同行用户,则向所述目标用户推送告警信息,所述目标参考同行用户为所述至少一个参考同行用户中的同行距离大于预设同行距离的用户。C3. If there is at least one target reference peer user, the alarm information is pushed to the target user. The target reference peer user is a user whose peer distance among the at least one reference peer user is greater than a preset peer distance.
可选的,由于目标用户与参考同行用户的同行距离较长,且亲密度较低,则可以判定参考同行用户可能对目标用户构成安全隐患,为潜在的危险用户,则可向目标用户推送告警信息,危险用户可以理解为对他人的人身财产构成威胁的用户,例如,会通过一些不良手段骗取目标用户的钱财、直接抢劫目标用户等。Optionally, because the distance between the target user and the reference peer user is longer and the intimacy is lower, it can be determined that the reference peer user may pose a security risk to the target user, and if it is a potentially dangerous user, an alarm can be pushed to the target user Information, dangerous users can be understood as users who pose a threat to the personal property of others, for example, they will deceive the target user's money through some bad means, directly rob the target user, etc.
可选的,一种可能的向目标用户推送告警信息的方法包括步骤C31-C34,具体如下:Optionally, a possible method for pushing the alarm information to the target user includes steps C31-C34, as follows:
C31、获取所述目标用户的动作信息;C31. Obtain the action information of the target user;
其中,动作信息可包括脚部动作和头部动作。头部动作可包括正常状态、晃动状态和偏头状态等,正常状态可以理解为正常行走时的状态,晃动状态可以理解为左右晃动或前后晃动等,晃动状态包括晃动频率,偏头状态可以理解为头部向左或向右倾斜的状态。脚部动作可以包括步伐,步伐方向等,步伐方向可以理解为行走方向,步伐可以理解为每步的距离以及步行的频率。The motion information may include foot motion and head motion. Head movements can include normal state, shaking state, and head tilt state. The normal state can be understood as the state of normal walking, the shaking state can be understood as left and right shaking or back and forth shaking, etc. The shaking state includes shaking frequency, and the eccentric head state can be understood The head is tilted to the left or right. Foot movements can include pace, pace direction, etc. The pace direction can be understood as the walking direction, and the pace can be understood as the distance of each step and the frequency of walking.
C32、根据所述动作信息,确定出所述目标用户的状态信息;C32. Determine the state information of the target user according to the action information;
可选的,用户状态可以包括:正常状态、不良状态,不良状态可以包括轻度不良状态、中度不良状态和重度不良状态,轻度不良状态可以理解为目标用户的意识处于轻度模糊状态,例如,轻度醉酒状态,轻度醉酒状态可以理解为目标用户可以正常行走但意识稍微模糊,中度不良状态可以理解为目标用户的意识处于中度模糊状态,例如,中度醉酒状态,中度醉酒状态可以理解为,目标用户已不能正常的行走,但仍能行走,重度不良状态可以理解为目标用户的意识处于重度模糊状态,例如,重度醉酒状态,重度醉酒状态可以理解为,目标用户已不能正常的行走,会伴有呕吐现象。Optionally, the user state may include: a normal state and a bad state. The bad state may include a mild bad state, a moderate bad state, and a severe bad state. The mild bad state may be understood as that the target user's consciousness is in a slightly blurred state. For example, the mild drunk state, the mild drunk state can be understood as the target user can walk normally but the consciousness is slightly blurred, and the moderate bad state can be understood as the target user's consciousness is in a moderately blurred state, for example, moderate drunk state, moderate The drunk state can be understood as that the target user can no longer walk normally, but can still walk. The severely bad state can be understood as the target user's consciousness is in a severely blurred state, for example, the severe drunk state, the severe drunk state can be understood as that the target user has If you cannot walk normally, you will be accompanied by vomiting.
可选的,根据动作信息确定出目标用户的状态信息的方法可以通过动作信息与状态信息之间的映射关系进行确定,一种可能的动作信息与状态信息之间的映射关系如表1所示,以头部动作为例,具体如下:Optionally, the method for determining the state information of the target user according to the action information can be determined by the mapping relationship between the action information and the state information. A possible mapping relationship between the action information and the state information is shown in Table 1. , Taking head movement as an example, as follows:
表1Table 1
动作信息Action information 用户状态user status
头部正常状态Normal state of the head 正常状态normal status
晃动状态(晃动频率低)Shaking state (low shaking frequency) 中度不良状态Moderately bad condition
晃动状态(晃动频率高)Shaking state (high shaking frequency) 轻度不良状态Mildly bad condition
偏头状态Biased state 中度不良状态或重度不良状态Moderately bad state or severely bad state
其中,此处仅以头部动作为例进行说明,当然还可以有头部动作和脚部动作结合的状态信息映射关系。Here, only the head motion is taken as an example for description, and of course, there may be a state information mapping relationship combining head motion and foot motion.
C33、根据所述状态信息,确定出所述目标用户的目标安全等级;C33. Determine the target security level of the target user according to the status information;
可选的,目标安全等级与用户状态一一对应,正常状态的安全等级最高,依次为轻度不良状态、中度不良状态、重度不良状态,安全等级依次降低。Optionally, the target security level corresponds to the user status one by one, and the security level in the normal status is the highest, followed by a mildly bad status, a moderately poor status, and a severely poor status, and the security level is sequentially lowered.
C34、若所述目标用户的目标安全等级低于预设安全等级,则按照预设时间间隔向所述目标用户推送与所述目标安全等级相对应的告警信息。C34. If the target security level of the target user is lower than a preset security level, then push alarm information corresponding to the target security level to the target user at a preset time interval.
其中,预设安全等级为轻度不良状态对应的安全等级,预设时间间隔可以 通过经验值或历史数据设定。与目标安全等级相对应的告警信息可以理解为,不同的安全等级具有不同的告警信息,具体告警信息通过经验值设定。Among them, the preset security level is the security level corresponding to the mild bad state, and the preset time interval can be set by experience value or historical data. The alarm information corresponding to the target security level can be understood as that different security levels have different alarm information, and the specific alarm information is set by empirical values.
本示例中,通过判断目标用户自身的状态,并根据该状态确定出目标用户的安全等级,当安全等级较低时,则向目标用户发出告警信息,例如,目标用户酒后独自回家,此时目标用户的安全等级较低,则需要对目标用户的安全等级进行判别,确定出目标用户安全等级较低时,向该用户发出告警信息,能够提醒目标用户,从而一定程度上提升了目标用户的安全性。In this example, the target user's own status is determined and the target user's security level is determined based on the status. When the security level is low, the target user is warned. For example, the target user goes home alone after drinking. When the security level of the target user is low, the security level of the target user needs to be discriminated, and when the security level of the target user is determined to be low, an alarm message is sent to the user, which can alert the target user, thereby improving the target user to a certain extent Security.
请参阅图3,图3为本申请实施例提供了另一种人物关系分析的流程示意图。如图3所示,人物关系分析方法可包括步骤301-307,具体如下:Please refer to FIG. 3, which is a schematic flowchart of another character relationship analysis provided by an embodiment of the present application. As shown in FIG. 3, the character relationship analysis method may include steps 301-307, as follows:
301、获取目标用户与所述目标用户的至少一个同行用户之间的同行参数;301: Obtain a peer parameter between a target user and at least one peer user of the target user;
其中,同行参数包括同行次数和同行距离,所述根据所述至少一个同行用户的同行参数。Wherein, the peer parameters include the number of peers and the distance of peers, according to the peer parameters of the at least one peer user.
302、获取所述同行次数的第一权值,以及获取所述同行距离的第二权值;302. Obtain a first weight value of the number of peers and a second weight value of the distance of the peers;
303、采用所述第一权值、所述第二权值对所述至少一个同行用户的同行次数与所述至少一个同行用户的同行距离进行权值计算,得到至少一个目标距离值;303. Perform weight calculation on the number of peers of the at least one peer user and the peer distance of the at least one peer user by using the first weight and the second weight to obtain at least one target distance value;
304、以所述目标用户的位置点为圆心以及至少一个目标距离值为半径,建立参考关系图谱,所述目标用户的位置点为目标用户的在所述参考关系图谱中的映射点;304. Establish a reference relationship graph with the target user's location point as the center of the circle and at least one target distance value as the radius. The target user's location point is the target user's mapping point in the reference relationship graph;
305、获取所述至少一个同行用户中的每个同行用户的关系图谱修正因子;305. Obtain a relationship graph correction factor for each peer user in the at least one peer user;
其中,获取关系图谱修正因子的方法可以为:获取第一同行用户与所述目标用户同行时的多张图像,所述第一同行用户为所述至少一个同行用户中的任意一个同行用户;对所述多张图像进行人脸识别,得到所述多张图像的每张图像中的第一同行用户的人脸图像以及所述目标用户的人脸图像;根据所述每张图像中第一同行用户的人脸图像以及所述目标用户的人脸图像,确定每张图像中所述第一同行用户与所述目标用户面部朝向之间的夹角,得到多个目标夹角; 根据所述多个目标夹角确定出所述第一同行用户的关系图谱修正因子;采用所述第一同行用户的关系图谱修正因子的获取方式,获取第二同行用户的关系图谱修正因子,得到所述至少一个同行用户中的每个同行用户的关系图谱修正因子,所述第二同行用户为所述至少一个同行用户中除所述第一同行用户之外的用户。Wherein, the method for obtaining the correction factor of the relationship graph may be: acquiring multiple images when the first peer user is traveling with the target user, and the first peer user is any one of the at least one peer user; Performing face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images; according to the first peer in each image The face image of the user and the face image of the target user, determining the angle between the face orientation of the first peer user and the target user in each image to obtain multiple target angles; according to the multiple Target angles to determine the relationship graph correction factor of the first peer user; using the acquisition method of the relationship graph correction factor of the first peer user to obtain the relationship graph correction factor of the second peer user to obtain the at least one A relationship graph correction factor of each peer user among peer users, the second peer user is a user other than the first peer user among the at least one peer user.
306、通过所述每个同行用户的关系图谱修正因子和所述参考关系图谱,确定出所述目标关系图谱;306. Determine the target relationship graph by using the relationship graph correction factor of each peer user and the reference relationship graph;
307、根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。307. Determine a target user relationship between the target user and the at least one peer user according to the target relationship graph.
本示例中,根据同行次数和同行距离来确定出目标距离值,根据目标距离值生成参考关系图谱,在对参考关系图谱进行修正,然后得到目标关系图谱,能够一定程度上提升目标关系图谱获取时的准确性。In this example, the target distance value is determined according to the number of peers and the distance of the peers, and the reference relationship graph is generated according to the target distance value. After the reference relationship graph is corrected, the target relationship graph is obtained, which can improve the acquisition of the target relationship graph to a certain extent. Accuracy.
请参阅图4,图4为本申请实施例提供了另一种人物关系分析的流程示意图。如图4所示,人物关系分析方法可包括步骤401-406,具体如下:Please refer to FIG. 4, which is a schematic flowchart of another character relationship analysis provided by an embodiment of the present application. As shown in FIG. 4, the character relationship analysis method may include steps 401-406, as follows:
401、获取目标用户与所述目标用户的至少一个同行用户之间的同行参数;401. Acquire peer parameters between a target user and at least one peer user of the target user;
402、根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱;402. Establish a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
403、根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系;403. Determine a target user relationship between the target user and the at least one peer user according to the target relationship graph;
404、从所述至少一个同行用户中确定出至少一个参考同行用户,所述参考同行用户为亲密度低于预设亲密度的同行用户;404. Determine at least one reference peer user from the at least one peer user, where the reference peer user is a peer user whose intimacy is lower than a preset intimacy;
405、获取所述目标用户与所述至少一个参考同行用户中的每个参考同行用户之间的同行距离;405. Obtain the peer distance between the target user and each of the at least one reference peer user;
406、若所述至少一个参考同行用户中的人一个参考同行用户的同行距离高于预设距离,则获取所述目标用户的动作信息;406. If the travel distance of one of the at least one reference peer user is higher than a preset distance, acquire the action information of the target user;
407、根据所述动作信息,确定出所述目标用户的状态信息;407. Determine the state information of the target user according to the action information;
408、根据所述状态信息,确定出所述目标用户的目标安全等级;408. Determine the target security level of the target user according to the status information;
409、若所述目标用户的目标安全等级低于预设安全等级,则按照预设时间间隔向所述目标用户推送与所述目标安全等级相对应的告警信息。409. If the target security level of the target user is lower than a preset security level, push alarm information corresponding to the target security level to the target user at a preset time interval.
本示例中,通过判断目标用户自身的状态,并根据该状态确定出目标用户的安全等级,当安全等级较低时,则向目标用户发出告警信息,例如,目标用户酒后独自回家,此时目标用户的安全等级较低,则需要对目标用户的安全等级进行判别,确定出目标用户安全等级较低时,向该用户发出告警信息,能够提醒目标用户,从而一定程度上提升了目标用户的安全性。In this example, the target user's own status is determined and the target user's security level is determined based on the status. When the security level is low, the target user is warned. For example, the target user goes home alone after drinking. When the security level of the target user is low, the security level of the target user needs to be discriminated, and when the security level of the target user is determined to be low, an alarm message is sent to the user, which can alert the target user, thereby improving the target user to a certain extent Security.
与上述实施例一致的,请参阅图5,图5为本申请实施例提供的一种终端的结构示意图,如图所示,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,上述程序包括用于执行以下步骤的指令;Consistent with the above embodiment, please refer to FIG. 5, which is a schematic structural diagram of a terminal provided by an embodiment of the present application. As shown in the figure, it includes a processor, an input device, an output device, and a memory. The input device, the output device, and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the above program includes to execute the following Step instructions
获取目标用户与所述目标用户的至少一个同行用户之间的同行参数;Acquiring peer parameters between the target user and at least one peer user of the target user;
根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱;Establishing a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。The target user relationship between the target user and the at least one peer user is determined according to the target relationship graph.
本示例中,获取目标用户与所述目标用户的至少一个同行用户之间的同行参数,根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱,根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系,因此,相对于现有方案中,通过已有数据对用户之间的关系进行分析,得到用户关系,能够通过对目标用户与目标用户的同行用户的同行参数进行分析,并根据同行参数建立关系图谱,能够通过关系图谱直观的反映出目标用户与同行用户之间的用户关系,进而可通过关系图谱确定出目标用户与同行用户之间的用户关系,从而也能一定程度 上提升获取用户关系的效率。In this example, the peer parameters between the target user and at least one peer user of the target user are obtained, and the target between the target user and the at least one peer user is established according to the peer parameters of the at least one peer user Relationship graph, the target user relationship between the target user and the at least one peer user is determined according to the target relationship graph, therefore, relative to the existing solution, the relationship between users is analyzed through existing data To get the user relationship, by analyzing the peer parameters of the target user and the target user’s peer users, and establishing a relationship graph based on the peer parameters, the user relationship between the target user and peer users can be intuitively reflected through the relationship graph, and then The user relationship between the target user and the peer users can be determined through the relationship graph, which can also improve the efficiency of obtaining the user relationship to a certain extent.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solutions of the embodiments of the present application from the perspective of the execution process on the method side. It can be understood that, in order to realize the above-mentioned functions, the terminal includes a hardware structure and/or a software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the functional unit of the terminal according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
与上述一致的,请参阅图6,图6为本申请实施例提供了一种人物关系分析装置的结构示意图,所述装置包括获取单元601、创建单元602和确定单元603,其中,Consistent with the above, please refer to FIG. 6, which is a schematic structural diagram of an apparatus for analyzing a person relationship according to an embodiment of the present application. The apparatus includes an obtaining unit 601, a creating unit 602, and a determining unit 603, where,
所述获取单元601,用于获取目标用户与所述目标用户的至少一个同行用户之间的同行参数;The obtaining unit 601 is configured to obtain a peer parameter between the target user and at least one peer user of the target user;
所述创建单元602,用于根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱;The creating unit 602 is configured to establish a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
所述确定单元603,用于根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。The determining unit 603 is configured to determine a target user relationship between the target user and the at least one peer user according to the target relationship graph.
本示例中,获取目标用户与所述目标用户的至少一个同行用户之间的同行参数,根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱,根据所述目标关系图谱确定出所述目标用 户与所述至少一个同行用户之间的目标用户关系,因此,相对于现有方案中,通过已有数据对用户之间的关系进行分析,得到用户关系,能够通过对目标用户与目标用户的同行用户的同行参数进行分析,并根据同行参数建立关系图谱,能够通过关系图谱直观的反映出目标用户与同行用户之间的用户关系,进而可通过关系图谱确定出目标用户与同行用户之间的用户关系,从而也能一定程度上提升获取用户关系的效率。In this example, the peer parameters between the target user and at least one peer user of the target user are obtained, and the target between the target user and the at least one peer user is established according to the peer parameters of the at least one peer user Relationship graph, the target user relationship between the target user and the at least one peer user is determined according to the target relationship graph, therefore, relative to the existing solution, the relationship between users is analyzed through existing data To get the user relationship, by analyzing the peer parameters of the target user and the target user’s peer users, and establishing a relationship graph based on the peer parameters, the user relationship between the target user and peer users can be intuitively reflected through the relationship graph, and then The user relationship between the target user and the peer users can be determined through the relationship graph, which can also improve the efficiency of obtaining the user relationship to a certain extent.
可选的,所述同行参数包括同行次数和同行距离,在所述根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱方面,所述创建单元602具体用于:Optionally, the peer parameters include the number of peers and the peer distance. In terms of establishing a target relationship graph between the target user and the at least one peer user based on the peer parameters of the at least one peer user, all The creation unit 602 is specifically used for:
获取所述同行次数的第一权值,以及获取所述同行距离的第二权值;Obtaining a first weight value of the number of peers, and a second weight value of the distance of the peers;
采用所述第一权值、所述第二权值对所述至少一个同行用户的同行次数与所述至少一个同行用户的同行距离进行权值计算,得到至少一个目标距离值;Weighting the number of peers of the at least one peer user and the peer distance of the at least one peer user by using the first weight value and the second weight value to obtain at least one target distance value;
以所述目标用户的位置点为圆心以及至少一个目标距离值为半径,建立参考关系图谱,所述目标用户的位置点为目标用户的在所述参考关系图谱中的映射点;Establish a reference relationship map with the target user's position point as the center of the circle and at least one target distance value as the radius, and the target user's position point as the target user's mapping point in the reference relationship map;
获取所述至少一个同行用户中的每个同行用户的关系图谱修正因子;Obtaining the relationship graph correction factor of each peer user in the at least one peer user;
通过所述每个同行用户的关系图谱修正因子和所述参考关系图谱,确定出所述目标关系图谱。The target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
可选的,在所述获取所述至少一个同行用户的中的每个同行用户的关系图谱修正因子方面,所述创建单元602具体用于:Optionally, in terms of acquiring the relationship graph correction factor of each peer user of the at least one peer user, the creating unit 602 is specifically configured to:
获取第一同行用户与所述目标用户同行时的多张图像,所述第一同行用户为所述至少一个同行用户中的任意一个同行用户;Acquiring multiple images of a first peer user when traveling with the target user, the first peer user is any peer user of the at least one peer user;
对所述多张图像进行人脸识别,得到所述多张图像的每张图像中的第一同行用户的人脸图像以及所述目标用户的人脸图像;Performing face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images;
根据所述每张图像中第一同行用户的人脸图像以及所述目标用户的人脸图像,确定每张图像中所述第一同行用户与所述目标用户面部朝向之间的夹角, 得到多个目标夹角;Determine the angle between the face orientation of the first peer user and the target user in each image according to the face image of the first peer user and the face image of the target user in each image, to obtain Multiple target angles;
根据所述多个目标夹角确定出所述第一同行用户的关系图谱修正因子;Determining the relationship graph correction factor of the first peer user according to the multiple target angles;
重复上述方法,直至得到所述至少一个同行用户中的每个同行用户的关系图谱修正因子。The above method is repeated until the relationship graph correction factor of each peer user in the at least one peer user is obtained.
可选的,所述人物关系分析装置还具体用于:Optionally, the character relationship analysis device is also specifically used for:
从所述至少一个同行用户中确定出至少一个参考同行用户,所述参考同行用户为亲密度低于预设亲密度的同行用户;Determining at least one reference peer user from the at least one peer user, the reference peer user being a peer user whose intimacy is lower than a preset intimacy;
获取所述目标用户与所述至少一个参考同行用户中的每个参考同行用户之间的同行距离;Obtaining the peer distance between the target user and each of the at least one reference peer user;
若存在至少一个目标参考同行用户,则向所述目标用户推送告警信息,所述目标参考同行用户为所述至少一个参考同行用户中的同行距离大于预设同行距离的用户。If there is at least one target reference peer user, alarm information is pushed to the target user, and the target reference peer user is a user whose peer distance among the at least one reference peer user is greater than a preset peer distance.
可选的,在所述向所述目标用户推送告警信息方面,所述人物关系分析装置还具体用于:Optionally, in terms of pushing the alarm information to the target user, the person relationship analysis device is further specifically used to:
获取所述目标用户的动作信息;Obtain the action information of the target user;
根据所述动作信息,确定出所述目标用户的状态信息;Determine the status information of the target user according to the action information;
根据所述状态信息,确定出所述目标用户的目标安全等级;Determine the target security level of the target user according to the status information;
若所述目标用户的目标安全等级低于预设安全等级,则按照预设时间间隔向所述目标用户推送与所述目标安全等级相对应的告警信息。If the target security level of the target user is lower than the preset security level, the alarm information corresponding to the target security level is pushed to the target user at a preset time interval.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种人物关系分方法的部分或全部步骤。An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute any of the character relationship dividing methods described in the above method embodiments Part or all steps.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种人物关系分方法的部分或全部步骤。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program causes the computer to execute any of the characters described in the above method embodiments Part or all of the steps of the relationship analysis method.

Claims (10)

  1. 一种人物关系分析方法,其特征在于,所述方法包括:A character relationship analysis method, characterized in that the method includes:
    获取目标用户与所述目标用户的至少一个同行用户之间的同行参数;Acquiring peer parameters between the target user and at least one peer user of the target user;
    根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱;Establishing a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
    根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。The target user relationship between the target user and the at least one peer user is determined according to the target relationship graph.
  2. 根据权利要求1所述的方法,其特征在于,所述同行参数包括同行次数和同行距离,所述根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱,包括:The method according to claim 1, wherein the peer parameters include a number of peers and a peer distance, and based on the peer parameters of the at least one peer user, establishing a relationship between the target user and the at least one peer user Atlas of target relationships, including:
    获取所述同行次数的第一权值,以及获取所述同行距离的第二权值;Obtaining a first weight value of the number of peers, and a second weight value of the distance of the peers;
    采用所述第一权值、所述第二权值对所述至少一个同行用户的同行次数与所述至少一个同行用户的同行距离进行权值计算,得到至少一个目标距离值;Weighting the number of peers of the at least one peer user and the peer distance of the at least one peer user by using the first weight value and the second weight value to obtain at least one target distance value;
    以所述目标用户的位置点为圆心以及至少一个目标距离值为半径,建立参考关系图谱,所述目标用户的位置点为目标用户的在所述参考关系图谱中的映射点;Establish a reference relationship map with the target user's position point as the center of the circle and at least one target distance value as the radius, and the target user's position point as the target user's mapping point in the reference relationship map;
    获取所述至少一个同行用户中的每个同行用户的关系图谱修正因子;Obtaining the relationship graph correction factor of each peer user in the at least one peer user;
    通过所述每个同行用户的关系图谱修正因子和所述参考关系图谱,确定出所述目标关系图谱。The target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
  3. 根据权利要求2所述的方法,其特征在于,所述获取所述至少一个同行用户的中的每个同行用户的关系图谱修正因子,包括:The method according to claim 2, wherein the acquiring the relationship graph correction factor of each peer user of the at least one peer user comprises:
    获取第一同行用户与所述目标用户同行时的多张图像,所述第一同行用户为所述至少一个同行用户中的任意一个同行用户;Acquiring multiple images of a first peer user when traveling with the target user, the first peer user is any peer user of the at least one peer user;
    对所述多张图像进行人脸识别,得到所述多张图像的每张图像中的第一同行用户的人脸图像以及所述目标用户的人脸图像;Performing face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images;
    根据所述每张图像中第一同行用户的人脸图像以及所述目标用户的人脸图像,确定每张图像中所述第一同行用户与所述目标用户面部朝向之间的夹角, 得到多个目标夹角;Determine the angle between the face orientation of the first peer user and the target user in each image according to the face image of the first peer user and the face image of the target user in each image, to obtain Multiple target angles;
    根据所述多个目标夹角确定出所述第一同行用户的关系图谱修正因子;Determining the relationship graph correction factor of the first peer user according to the multiple target angles;
    采用所述第一同行用户的关系图谱修正因子的获取方式,获取第二同行用户的关系图谱修正因子,得到所述至少一个同行用户中的每个同行用户的关系图谱修正因子,所述第二同行用户为所述至少一个同行用户中除所述第一同行用户之外的用户。Adopting the acquisition method of the relationship graph correction factor of the first peer user to obtain the relationship graph correction factor of the second peer user to obtain the relationship graph correction factor of each peer user of the at least one peer user, the second The peer user is a user other than the first peer user among the at least one peer user.
  4. 根据权利要求2所述的方法,其特征在于,所述目标用户关系包括亲密度,所述方法还包括:The method according to claim 2, wherein the target user relationship includes intimacy, and the method further includes:
    从所述至少一个同行用户中确定出至少一个参考同行用户,所述参考同行用户为亲密度低于预设亲密度的同行用户;Determining at least one reference peer user from the at least one peer user, the reference peer user being a peer user whose intimacy is lower than a preset intimacy;
    获取所述目标用户与所述至少一个参考同行用户中的每个参考同行用户之间的同行距离;Obtaining the peer distance between the target user and each of the at least one reference peer user;
    若存在至少一个目标参考同行用户,则向所述目标用户推送告警信息,所述目标参考同行用户为所述至少一个参考同行用户中的同行距离大于预设同行距离的用户。If there is at least one target reference peer user, alarm information is pushed to the target user, and the target reference peer user is a user whose peer distance among the at least one reference peer user is greater than a preset peer distance.
  5. 根据权利要求4所述的方法,其特征在于,所述向所述目标用户推送告警信息,包括:The method according to claim 4, wherein the pushing of the alarm information to the target user comprises:
    获取所述目标用户的动作信息;Obtain the action information of the target user;
    根据所述动作信息,确定出所述目标用户的状态信息;Determine the status information of the target user according to the action information;
    根据所述状态信息,确定出所述目标用户的目标安全等级;Determine the target security level of the target user according to the status information;
    若所述目标用户的目标安全等级低于预设安全等级,则按照预设时间间隔向所述目标用户推送与所述目标安全等级相对应的告警信息。If the target security level of the target user is lower than the preset security level, the alarm information corresponding to the target security level is pushed to the target user at a preset time interval.
  6. 一种人物关系分析装置,其特征在于,所述装置包括获取单元、创建单元和确定单元,其中,A character relationship analysis device, characterized in that the device includes an acquisition unit, a creation unit and a determination unit, wherein,
    所述获取单元,用于获取目标用户与所述目标用户的至少一个同行用户之 间的同行参数;The obtaining unit is configured to obtain a peer parameter between the target user and at least one peer user of the target user;
    所述创建单元,用于根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱;The creating unit is configured to establish a target relationship graph between the target user and the at least one peer user according to the peer parameters of the at least one peer user;
    所述确定单元,用于根据所述目标关系图谱确定出所述目标用户与所述至少一个同行用户之间的目标用户关系。The determining unit is configured to determine a target user relationship between the target user and the at least one peer user according to the target relationship graph.
  7. 根据权利要求6所述的装置,其特征在于,所述同行参数包括同行次数和同行距离,在所述根据所述至少一个同行用户的同行参数,建立所述目标用户与所述至少一个同行用户之间的目标关系图谱方面,所述创建单元具体用于:The apparatus according to claim 6, wherein the peer parameters include a number of peers and a peer distance, and the target user and the at least one peer user are established based on the peer parameters of the at least one peer user In terms of the target relationship graph, the creation unit is specifically used to:
    获取所述同行次数的第一权值,以及获取所述同行距离的第二权值;Obtaining a first weight value of the number of peers, and a second weight value of the distance of the peers;
    采用所述第一权值、所述第二权值对所述至少一个同行用户的同行次数与所述至少一个同行用户的同行距离进行权值计算,得到至少一个目标距离值;Weighting the number of peers of the at least one peer user and the peer distance of the at least one peer user by using the first weight value and the second weight value to obtain at least one target distance value;
    以所述目标用户的位置点为圆心以及至少一个目标距离值为半径,建立参考关系图谱,所述目标用户的位置点为目标用户的在所述参考关系图谱中的映射点;Establish a reference relationship map with the target user's position point as the center of the circle and at least one target distance value as the radius, and the target user's position point as the target user's mapping point in the reference relationship map;
    获取所述至少一个同行用户中的每个同行用户的关系图谱修正因子;Obtaining the relationship graph correction factor of each peer user in the at least one peer user;
    通过所述每个同行用户的关系图谱修正因子和所述参考关系图谱,确定出所述目标关系图谱。The target relationship graph is determined through the relationship graph correction factor of each peer user and the reference relationship graph.
  8. 根据权利要求7所述的装置,其特征在于,在所述获取所述至少一个同行用户的中的每个同行用户的关系图谱修正因子方面,所述创建单元具体用于:The apparatus according to claim 7, characterized in that, in terms of acquiring the relationship graph correction factor of each peer user of the at least one peer user, the creating unit is specifically configured to:
    获取第一同行用户与所述目标用户同行时的多张图像,所述第一同行用户为所述至少一个同行用户中的任意一个同行用户;Acquiring multiple images of a first peer user when traveling with the target user, the first peer user is any peer user of the at least one peer user;
    对所述多张图像进行人脸识别,得到所述多张图像的每张图像中的第一同行用户的人脸图像以及所述目标用户的人脸图像;Performing face recognition on the multiple images to obtain the face image of the first peer user and the face image of the target user in each of the multiple images;
    根据所述每张图像中第一同行用户的人脸图像以及所述目标用户的人脸图像,确定每张图像中所述第一同行用户与所述目标用户面部朝向之间的夹角,得到多个目标夹角;Determine the angle between the face orientation of the first peer user and the target user in each image according to the face image of the first peer user in each image and the face image of the target user, to obtain Multiple target angles;
    根据所述多个目标夹角确定出所述第一同行用户的关系图谱修正因子;Determining the relationship graph correction factor of the first peer user according to the multiple target angles;
    采用所述第一同行用户的关系图谱修正因子的获取方式,获取第二同行用户的关系图谱修正因子,得到所述至少一个同行用户中的每个同行用户的关系图谱修正因子,所述第二同行用户为所述至少一个同行用户中除所述第一同行用户之外的用户。Adopting the acquisition method of the relationship graph correction factor of the first peer user to obtain the relationship graph correction factor of the second peer user to obtain the relationship graph correction factor of each peer user of the at least one peer user, the second The peer user is a user other than the first peer user among the at least one peer user.
  9. 一种终端,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-5任一项所述的方法。A terminal is characterized by comprising a processor, an input device, an output device, and a memory, where the processor, input device, output device, and memory are connected to each other, wherein the memory is used to store a computer program, and the computer program Including program instructions, the processor is configured to call the program instructions to perform the method according to any one of claims 1-5.
  10. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-5任一项所述的方法。A computer-readable storage medium, characterized in that the computer storage medium stores a computer program, and the computer program includes program instructions, which when executed by a processor causes the processor to execute as claimed in claim 1 -5 The method of any one.
PCT/CN2019/121610 2018-12-21 2019-11-28 Relationship analysis method and related product WO2020125370A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811573297.5A CN109766786B (en) 2018-12-21 2018-12-21 Character relation analysis method and related product
CN201811573297.5 2018-12-21

Publications (1)

Publication Number Publication Date
WO2020125370A1 true WO2020125370A1 (en) 2020-06-25

Family

ID=66450799

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/121610 WO2020125370A1 (en) 2018-12-21 2019-11-28 Relationship analysis method and related product

Country Status (2)

Country Link
CN (1) CN109766786B (en)
WO (1) WO2020125370A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766786B (en) * 2018-12-21 2020-10-23 深圳云天励飞技术有限公司 Character relation analysis method and related product
CN110263765A (en) * 2019-07-16 2019-09-20 图普科技(广州)有限公司 Image processing method, device and electronic equipment
CN110502992B (en) * 2019-07-18 2021-06-15 武汉科技大学 Relation graph based fast face recognition method for fixed scene video
CN111191601B (en) * 2019-12-31 2023-05-12 深圳云天励飞技术有限公司 Method, device, server and storage medium for identifying peer users
CN112016443B (en) * 2020-08-26 2022-04-26 深圳市商汤科技有限公司 Method and device for identifying same lines, electronic equipment and storage medium
CN112015956A (en) * 2020-09-04 2020-12-01 杭州海康威视数字技术股份有限公司 Similarity determination method, device, equipment and storage medium for mobile object

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140161324A1 (en) * 2012-12-07 2014-06-12 Hon Hai Precision Industry Co., Ltd. Electronic device and data analysis method
WO2016165547A1 (en) * 2015-04-14 2016-10-20 蔡宏铭 Method and system for realizing instant messaging among persons traveling together, travel together information sharing and content recommendation
CN106649399A (en) * 2015-11-03 2017-05-10 北京明略软件系统有限公司 Association degree obtaining method and apparatus
TW201738838A (en) * 2016-04-28 2017-11-01 國立清華大學 Computing method for ridesharing path, computing apparatus and recording medium using the same
CN108133185A (en) * 2017-12-21 2018-06-08 山东师范大学 The method and system of pedestrian's relationship is judged based on track data
CN108564788A (en) * 2018-06-07 2018-09-21 重庆邮电大学 A kind of colleague's vehicle discovery method based on streaming big data
CN109766786A (en) * 2018-12-21 2019-05-17 深圳云天励飞技术有限公司 Character relation analysis method and Related product

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214186B (en) * 2010-04-07 2013-04-24 腾讯科技(深圳)有限公司 Method and system for displaying object relation
CN103455515B (en) * 2012-06-01 2017-03-22 腾讯科技(深圳)有限公司 User recommendation method and system in SNS (social networking services) community
CN102945258B (en) * 2012-10-18 2016-01-20 北京淘友天下科技发展有限公司 Obtain social network user certain factor and system
CN103885573B (en) * 2012-12-19 2017-03-01 财团法人车辆研究测试中心 The auto-correction method of automobile-used display system and its system
CN103136705B (en) * 2013-03-05 2016-04-27 深圳市葡萄信息技术有限公司 A kind of statistical method for interpersonal relationship heat
CN104637078B (en) * 2013-11-14 2017-12-15 腾讯科技(深圳)有限公司 A kind of image processing method and device
US11657060B2 (en) * 2014-02-27 2023-05-23 Microsoft Technology Licensing, Llc Utilizing interactivity signals to generate relationships and promote content
CN104298754B (en) * 2014-10-17 2017-08-25 梁忠伟 Information excavating transmission method, social network device and system by trunk of sequence of pictures
US20160275193A1 (en) * 2015-03-18 2016-09-22 Nuzzel, Inc. Socially driven feed of aggregated content in substantially real time
CN104933201A (en) * 2015-07-15 2015-09-23 蔡宏铭 Content recommendation method and system based on peer information
CN105117443B (en) * 2015-08-12 2018-07-20 华南理工大学 A kind of proposed algorithm based on more relational networks
CN105912579A (en) * 2016-04-01 2016-08-31 东软集团股份有限公司 Generation method and device for character relationship maps
CN106204396A (en) * 2016-07-24 2016-12-07 南京瀚科瑞杰智能科技有限公司 Distributed ecological intelligence connection endowment service system
CN106682212B (en) * 2016-12-31 2020-10-30 复旦大学 Social relation classification method and device based on user mobile behaviors
CN107481154A (en) * 2017-07-17 2017-12-15 广州特道信息科技有限公司 The analysis method and device of social networks interpersonal relationships
CN108830735B (en) * 2017-12-27 2021-09-03 广州市云润大数据服务有限公司 Online interpersonal relationship analysis method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140161324A1 (en) * 2012-12-07 2014-06-12 Hon Hai Precision Industry Co., Ltd. Electronic device and data analysis method
WO2016165547A1 (en) * 2015-04-14 2016-10-20 蔡宏铭 Method and system for realizing instant messaging among persons traveling together, travel together information sharing and content recommendation
CN106649399A (en) * 2015-11-03 2017-05-10 北京明略软件系统有限公司 Association degree obtaining method and apparatus
TW201738838A (en) * 2016-04-28 2017-11-01 國立清華大學 Computing method for ridesharing path, computing apparatus and recording medium using the same
CN108133185A (en) * 2017-12-21 2018-06-08 山东师范大学 The method and system of pedestrian's relationship is judged based on track data
CN108564788A (en) * 2018-06-07 2018-09-21 重庆邮电大学 A kind of colleague's vehicle discovery method based on streaming big data
CN109766786A (en) * 2018-12-21 2019-05-17 深圳云天励飞技术有限公司 Character relation analysis method and Related product

Also Published As

Publication number Publication date
CN109766786A (en) 2019-05-17
CN109766786B (en) 2020-10-23

Similar Documents

Publication Publication Date Title
WO2020125370A1 (en) Relationship analysis method and related product
CN108875732B (en) Model training and instance segmentation method, device and system and storage medium
WO2019218824A1 (en) Method for acquiring motion track and device thereof, storage medium, and terminal
CN109815770B (en) Two-dimensional code detection method, device and system
CN110532984B (en) Key point detection method, gesture recognition method, device and system
US9934591B2 (en) Remote determination of quantity stored in containers in geographical region
US10262190B2 (en) Method, system, and computer program product for recognizing face
WO2018188453A1 (en) Method for determining human face area, storage medium, and computer device
KR102442844B1 (en) Method for Distinguishing a Real Three-Dimensional Object from a Two-Dimensional Spoof of the Real Object
CN109815843B (en) Image processing method and related product
TW201911130A (en) Method and device for remake image recognition
CN111738357B (en) Junk picture identification method, device and equipment
US11804071B2 (en) Method for selecting images in video of faces in the wild
WO2020258121A1 (en) Face recognition method and apparatus, and electronic device
CN111626371B (en) Image classification method, device, equipment and readable storage medium
US20200356800A1 (en) Polygonal region detection
CN108875481B (en) Method, device, system and storage medium for pedestrian detection
CN111008935B (en) Face image enhancement method, device, system and storage medium
US10402629B1 (en) Facial recognition using fractal features
CN107423306B (en) Image retrieval method and device
WO2020172870A1 (en) Method and apparatus for determining motion trajectory of target object
WO2022247539A1 (en) Living body detection method, estimation network processing method and apparatus, computer device, and computer readable instruction product
US11315358B1 (en) Method and system for detection of altered fingerprints
JP5698418B2 (en) Identification by iris recognition
CN111368763A (en) Image processing method and device based on head portrait and computer readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1