CN111639144A - Role relationship graph generation method and device, electronic equipment and storage medium - Google Patents

Role relationship graph generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111639144A
CN111639144A CN202010553927.3A CN202010553927A CN111639144A CN 111639144 A CN111639144 A CN 111639144A CN 202010553927 A CN202010553927 A CN 202010553927A CN 111639144 A CN111639144 A CN 111639144A
Authority
CN
China
Prior art keywords
role
target
information
dimensional space
position point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010553927.3A
Other languages
Chinese (zh)
Inventor
曹丽影
丁鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN202010553927.3A priority Critical patent/CN111639144A/en
Publication of CN111639144A publication Critical patent/CN111639144A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • 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
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Remote Sensing (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a role relationship diagram generation method, a role relationship diagram generation device, electronic equipment and a storage medium, wherein the role relationship diagram generation method comprises the following steps: acquiring a target role and a first associated role corresponding to the target role; determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role; determining a first position point of a first associated role in a three-dimensional space according to a target position point of the target role in the three-dimensional space, and the azimuth information and the first distance information of the first associated role relative to the target role; and generating a position relation graph between the target role and the first associated role according to the target position point and the first position point in the three-dimensional space. The method and the device for displaying the association relationship between the roles display the association relationship by using the three-dimensional graph, expand the display space of the association relationship between the roles and reduce the complexity of the position relationship graph.

Description

Role relationship graph generation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of image generation, and in particular, to a method and an apparatus for generating a role relationship diagram, an electronic device, and a storage medium.
Background
In real life, various associations exist between different individuals, for example, there are relatives between people, there are affiliations between people and objects, and so on.
At present, the incidence relation between different individuals is usually displayed in a plan view manner so as to be convenient for a user to view, and in this manner, when the incidence relation between different individuals is complex, for example, when a direct incidence relation and an indirect incidence relation exist between a target role and other roles, the generated plan view has high complexity, and the user is not convenient to obtain the incidence relation between the roles from the generated plan view.
Disclosure of Invention
In view of this, an embodiment of the present application aims to provide a method and an apparatus for generating a role relationship diagram, an electronic device, and a storage medium, where a three-dimensional diagram is used to display an association relationship between roles, so as to expand a display space of the role association relationship and reduce complexity of a position relationship diagram.
In a first aspect, an embodiment of the present application provides a method for generating a role relationship diagram, where the method includes:
acquiring a target role and a first associated role corresponding to the target role;
determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role;
determining a first position point of the first associated character in the three-dimensional space according to a target position point of the target character in the three-dimensional space and the position information and the first distance information of the first associated character relative to the target character; wherein the orientation information is the orientation information of the first associated character in the three-dimensional space;
and generating a position relation graph between the target role and the first associated role according to the target position point and the first position point in the three-dimensional space.
In a possible implementation manner, the determining, according to the association information between the target character and the first associated character, first distance information of the first associated character relative to the target character includes:
determining second distance information of a second associated role relative to the target role according to a second position point corresponding to the second associated role in the three-dimensional space;
establishing a mapping table between the association information and the distance information according to the association information and the second distance information between the target role and the second association role;
and determining first distance information of the first associated role relative to the target role according to the mapping table and the associated information between the target role and the first associated role.
In a possible implementation manner, the associated location point includes the first location point and the second location point, and the associated role includes the first associated role and the second associated role, and the location relationship diagram is generated by:
and generating a position relation graph between the target role and the associated role according to the target position point and the associated position point in the three-dimensional space.
In one possible embodiment, after determining the first location point of the first associated character in the three-dimensional space, the method further comprises:
acquiring a candidate role corresponding to a position point in the three-dimensional space;
selecting a target candidate role corresponding to the first associated role from candidate roles except the target role based on the attribute information of the first associated role;
and generating a position relation graph among the target role, the first associated role and the target candidate role according to the target position point, the first position point and the position point corresponding to the target candidate role in the three-dimensional space.
In one possible implementation, after generating the position relationship map, the method further includes:
sending the position relation graph to a user side so that the user side can display the position relation graph;
setting each role in the position relation diagram to be in a first state in response to a first operation instruction aiming at a specific area in the position relation diagram;
and responding to a second operation instruction aiming at a specific role in the position relation diagram, and setting the specific role and the associated role corresponding to the specific role to be in a second state.
In one possible embodiment, the method further comprises:
determining a distance characteristic between the first associated role and the target role according to first distance information of the first associated role relative to the target role; wherein the distance features comprise one or more of the following features: the color of the connecting line, the shape of the connecting line, the lines of the connecting line and the distance mark;
and generating a position relation graph between the target role and the first associated role according to the target position point, the first position point and the distance characteristic between the first associated role and the target role in the three-dimensional space.
In a possible embodiment, the three-dimensional space has a polyhedral structure, and the transparency of the three-dimensional space is greater than a preset threshold.
In a second aspect, an embodiment of the present application provides an apparatus for generating a role relationship diagram, where the apparatus includes:
the system comprises a first acquisition module, a first association module and a second acquisition module, wherein the first acquisition module is used for acquiring a target role and a first association role corresponding to the target role;
the first determining module is used for determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role;
the second determination module is used for determining a first position point of the first associated role in the three-dimensional space according to a target position point of the target role in the three-dimensional space and the position information and the first distance information of the first associated role relative to the target role; wherein the orientation information is the orientation information of the first associated character in the three-dimensional space;
a first generating module, configured to generate a position relationship diagram between the target role and the first associated role according to the target position point and the first position point in the three-dimensional space.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the memory communicate with each other through the bus, and the processor executes the machine-readable instructions to execute the steps of the method for generating the role relationship diagram according to any one of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method for generating a role relationship diagram according to any one of the first aspects.
The method, the device, the electronic equipment and the storage medium for generating the role relationship diagram, provided by the embodiment of the application, are used for acquiring a target role and a first associated role corresponding to the target role; determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role; determining a first position point of a first associated role in a three-dimensional space according to a target position point of the target role in the three-dimensional space, and the azimuth information and the first distance information of the first associated role relative to the target role; according to the target position point and the first position point in the three-dimensional space, a position relation graph between the target role and the first associated role is generated, and the display space of the role association relation is expanded and the complexity of the position relation graph is reduced by displaying the association relation between different roles in the three-dimensional space.
Further, the method, the apparatus, the electronic device, and the storage medium for generating a role relationship diagram provided in the embodiments of the present application may further respond to an operation instruction for a specific role in a position relationship diagram, and set the specific role and an associated role corresponding to the specific role as a target display state, so as to highlight an association relationship between the specific role and the associated role, and further reduce complexity of the position relationship diagram.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1a shows a flowchart of a method for generating a role relationship diagram according to an embodiment of the present application;
FIG. 1b shows a schematic representation of a three-dimensional space in a polyhedral structure;
FIG. 2 is a flowchart illustrating a method for generating another role relationship diagram according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for generating another role relationship diagram according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for generating another role relationship diagram according to an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating a generating apparatus of a role relationship diagram according to an embodiment of the present application;
fig. 6 shows a schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
At present, the incidence relation between different roles is usually displayed in a plan view manner for a user to check, and in this manner, when the incidence relation between different roles is complex, for example, when a direct incidence relation and an indirect incidence relation exist between a target role and other roles, the generated plan view has high complexity, and the user is not convenient to obtain the incidence relation between the roles from the generated plan view.
Based on the above problems, embodiments of the present application provide a method and an apparatus for generating a role relationship diagram, an electronic device, and a storage medium, and obtain a target role and a first associated role corresponding to the target role; determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role; determining a first position point of a first associated role in a three-dimensional space according to a target position point of the target role in the three-dimensional space, and the azimuth information and the first distance information of the first associated role relative to the target role; according to the target position point and the first position point in the three-dimensional space, a position relation graph between the target role and the first associated role is generated, and the display space of the role association relation is expanded and the complexity of the position relation graph is reduced by displaying the association relation between different roles in the three-dimensional space.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solution proposed by the present application to the above-mentioned problems in the following should be the contribution of the inventor to the present application in the process of the present application.
The technical solutions in the present application will be described clearly and completely with reference to the drawings in the present application, and it should be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the present application, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
As shown in fig. 1a, a flowchart of a method for generating a role relationship diagram provided in an embodiment of the present application is shown, where the method for generating the role relationship diagram includes the following steps:
s101, acquiring a target role and a first associated role corresponding to the target role.
In the embodiment of the application, a role determination instruction sent by a user side is received, the role determination instruction carries a target role identifier, a target role is determined based on the target role identifier, and a first associated role associated with the target role is obtained.
As a possible embodiment, according to the target attribute information corresponding to the target role, traversing the locally stored attribute information of the role other than the target role, determining the role whose attribute information is consistent with the target attribute information as the first associated role associated with the target role, for example, according to the target attribute information (school 1, work unit 1) corresponding to the target role, traversing the locally stored attribute information of the role other than the target role: attribute information 1 (school 1) of a character 1, attribute information 2 (school 2) of a character 2, attribute information 3 (work unit 2) of a character 3, and attribute information 4 (school 1, work unit 1) of a character 4, and the character 1 (alumni) and the character 4 (alumni, colleague) are determined as first associated characters associated with a target character.
As another possible implementation, the first associated role associated with the target role is searched based on a locally pre-stored role association table, for example, the role association table includes: character 10-character 11 (friend), character 12 (colleague); role 20-role 21 (neighbor), role 22 (co-worker); role 30-role 31 (mother), role 32 (friend), when the target role is "role 20", role 21 (neighbor) and role 22 (co-worker) are determined as the first associated roles associated with the target role (role 20).
S102, determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role.
In the embodiment of the application, first distance information corresponding to the first association information is searched based on a corresponding relationship between the association information and the distance information, where the first association information is association information between a target role and the first association role, and the first distance information is distance information of the first association role relative to the target role, for example, association information 1 (friend) corresponds to distance information 1(3 cm), association information 2 (parent) corresponds to distance information 2(1 cm).
S103, determining a first position point of the first associated character in the three-dimensional space according to a target position point of the target character in the three-dimensional space, and the azimuth information and the first distance information of the first associated character relative to the target character; wherein the orientation information is the orientation information of the first associated character in the three-dimensional space.
In the embodiment of the application, whether a position point corresponding to a target role exists in a three-dimensional space is judged, and if the position point exists, the position point is determined as a target position point; if not, randomly selecting a position point in the three-dimensional space as a target position point, or taking a preset initial position point in the three-dimensional space as the target position point. Determining a first position point of a first associated role in a three-dimensional space according to a target position point of the target role in the three-dimensional space, position information of the first associated role relative to the target role, and first distance information of the first associated role relative to the target role, wherein the position information is the position information of the first associated role in the three-dimensional space.
Specifically, randomly selecting one azimuth information in a three-dimensional space as the azimuth information of a first associated role relative to a target role, further determining a first candidate position point of the first associated role in the three-dimensional space according to a target position point of the target role in the three-dimensional space and the azimuth information and first distance information of the first associated role relative to the target role, determining whether the first candidate position point in the three-dimensional space corresponds to other roles, where the other roles are any one role except the first associated role (the other roles may be other first associated roles except the first associated role, so as to ensure that different first associated roles correspond to different first position points), if not, determining the first candidate position point as the first position point corresponding to the first associated role, and if so, re-selecting the azimuth information, and re-determining the first candidate position point until the re-determined first candidate position point does not correspond to other roles in the three-dimensional space.
As a possible implementation manner, the three-dimensional space is in a polyhedron structure, the transparency of the three-dimensional space is greater than a preset threshold, as shown in fig. 1b, a target polyhedron exists in the three-dimensional space, the target polyhedron is in a three-dimensional structure, and the transparency of the target polyhedron is greater than a preset threshold, the preset threshold is set according to actual needs, so that different vertices of the target polyhedron can be clearly presented through a connecting line inside the target polyhedron, and the target location point and the first associated location point coincide with different vertices of the target polyhedron, and accordingly, the embodiment of the present application may further determine the first location point of the first associated character in the three-dimensional space by:
generating a candidate polyhedron inside the target polyhedron according to the target position point corresponding to the target character on the target polyhedron, the number of first associated characters and first distance information of each first associated character relative to the target character, determining vertexes of the candidate polyhedron except the target position point as first candidate position points, judging whether any first candidate position point corresponds to other characters in the target polyhedron, wherein the other characters are characters except the first associated character, if not, determining the first candidate position point as the first position point corresponding to the first associated character, if so, re-generating the candidate polyhedron until any newly determined first candidate position point does not correspond to other characters in the target polyhedron any more, and aiming at each first associated character, based on the distance between the target position point in the candidate polyhedron and each vertex except the target position point, and determining the vertex with the distance matched with the first distance information as a first position point corresponding to the first associated role.
As shown in fig. 1b, the target character corresponds to 3 different first related characters, a candidate polyhedron including a "target position point", "vertex 1", "vertex 2", and "vertex 3" is generated, where the "target position point", "vertex 1", "vertex 2", and "vertex 3" are all vertices of the target polyhedron, that is, vertices of the candidate polyhedron overlap with partial vertices of the target polyhedron, where none of the "vertex 1", "vertex 2", and "vertex 3" corresponds to a character other than the first related character, the "vertex 1", "vertex 2", and "vertex 3" are determined as first position points, a distance between the "target position point" and the "vertex 1" matches with the first distance information 1, and the "vertex 1" is determined as a first position point 1 corresponding to the first related character 1 (corresponding to the first distance information 1), similarly, "vertex 2" is determined as first position point 2 corresponding to first related character 2 (corresponding to first distance information 2), and "vertex 3" is determined as first position point 3 corresponding to first related character 3 (corresponding to first distance information 3).
The number of the vertexes of the target polyhedron is related to the number of the roles, and specifically, the total number of the roles in the database is obtained; wherein the roles at least comprise a target role and an associated role associated with the target role; and generating a target polyhedron of which the number of corresponding vertexes is matched with the total number of the roles based on the total number of the roles, and optionally determining the product of the total number of the roles and a preset constant as the number of vertexes of the target polyhedron.
S104, generating a position relation graph between the target role and the first associated role according to the target position point and the first position point in the three-dimensional space.
In the embodiment of the present application, a target position point is respectively connected to different first position points in a three-dimensional space to obtain a position relationship diagram between a target role and a first associated role, as shown in fig. 1b, a "target position point" is respectively connected to "vertex 1", "vertex 2", and "vertex 3" inside a target polyhedron to obtain a position relationship diagram, where transparency of the target polyhedron is greater than a preset threshold.
According to the method for generating the role relationship diagram, the incidence relation between the roles is displayed in the three-dimensional space, the display space of the role incidence relation is expanded, and the complexity of the position relationship diagram is reduced.
In this embodiment of the present application, first, an associated role associated with a target role is obtained, where a specific obtaining manner is referred to as an obtaining manner of a first associated role in step 101, and then, for each associated role, it is determined whether the associated role corresponds to a location point in a three-dimensional space, if not, the associated role not corresponding to the location point is determined as the first associated role, and if so, the associated role corresponding to the location point is determined as the second associated role, and this embodiment of the present application provides two determining manners of first distance information of the first associated role relative to the target role:
firstly, when only a first associated role is included in the associated roles, first distance information matched with the first associated information is searched according to a mapping table between locally pre-stored associated information and distance information, wherein the first associated information is associated information between a target role and the first associated role, and the first distance information is distance information of the first associated role relative to the target role. For example, the related information 1 (friend) corresponds to the first distance information 1(3 cm), and the related information 2 (parent) corresponds to the first distance information 2(1 cm).
Second, as shown in fig. 2, the method for generating a role relationship diagram according to an embodiment of the present application, where determining first distance information of the first associated role relative to the target role according to the association information between the target role and the first associated role includes:
s201, according to a second position point corresponding to a second associated role in the three-dimensional space, determining second distance information of the second associated role relative to the target role.
In the embodiment of the application, according to a target position point corresponding to a target role in a three-dimensional space and a second position point corresponding to a second associated role in the three-dimensional space, a distance between the target position point and the second position point is calculated, that is, second distance information of the second associated role relative to the target role is calculated.
S202, establishing a mapping table between the associated information and the distance information according to the associated information and the second distance information between the target role and the second associated role.
In this embodiment of the present application, a mapping table between association information and distance information is obtained by establishing association information between a target role and a second association role and a corresponding relationship between second distance information of the second association role relative to the target role, where the mapping table includes the above corresponding relationship, for example, the mapping table includes: parents-2 cm, colleagues-4 cm.
S203, determining first distance information of the first associated role relative to the target role according to the mapping table and the associated information between the target role and the first associated role.
In the embodiment of the application, if the mapping table includes associated information (first associated information) between the target role and the first associated role, first distance information corresponding to the first associated information is searched from the mapping table, and if the mapping table does not include the first associated information, first distance information corresponding to the first associated information is determined according to the intimacy between the first associated information and each associated information in the mapping table and distance information corresponding to each associated information in the mapping table.
For example, the mapping table includes: the method comprises the steps that a parent is 2 cm, a colleague is 4 cm, if the association information between a target role and a first association role is 'colleague', the first distance information corresponding to the first association role is '4 cm', if the association information between the target role and the first association role is 'friend', the intimacy of the friend 'is greater than that of the' colleague ', and the intimacy of the friend' is less than that of the 'parent', namely the first distance information corresponding to the 'friend' is between '2 cm' and '4 cm', the '3 cm' is randomly selected as the first distance information corresponding to the association information 'friend', and the corresponding relation of the 'friend-3 cm' is stored in a mapping table.
Further, in the method for generating a role relationship diagram provided in the embodiment of the present application, the associated location points include the first location point and the second location point, and the associated roles include the first associated role and the second associated role, and the location relationship diagram is generated by:
and generating a position relation graph between the target role and the associated role according to the target position point and the associated position point in the three-dimensional space.
In the embodiment of the application, after a first position point corresponding to a first associated role and a second position point corresponding to a second associated role are determined, a position relationship diagram among the first associated role, the second associated role and a target role is generated according to the first position point corresponding to the first associated role, the second position point corresponding to the second associated role and the target position point corresponding to the target role.
Further, as shown in fig. 3, in the method for generating a character relationship diagram provided in the embodiment of the present application, after determining the first position point of the first associated character in the three-dimensional space, the method further includes:
s301, obtaining candidate roles corresponding to the position points in the three-dimensional space.
In the embodiment of the application, the role corresponding to each position point in the three-dimensional space is determined as a candidate role.
S302, based on the attribute information of the first associated role, selecting a target candidate role corresponding to the first associated role from the candidate roles except the target role.
As a possible embodiment, according to the target attribute information corresponding to the first associated role, traversing the attribute information of the candidate roles other than the target role, and determining the candidate role whose attribute information is consistent with the target attribute information as the target candidate role associated with the first associated role, for example, according to the target attribute information (school 1, work unit 1) corresponding to the first associated role, traversing the attribute information of the candidate roles other than the target role: attribute information 1 (school 1) of candidate character 1, attribute information 2 (school 2) of candidate character 2, attribute information 3 (work unit 2) of candidate character 3, and attribute information 4 (school 1, work unit 1) of candidate character 4, and candidate characters 1 (alumni) and 4 (alumni, colleague) are determined as target candidate characters associated with the first associated character.
As another possible implementation manner, the attribute information corresponding to the first associated role includes: the first role associated with the first associated role, selecting the first role corresponding to the first associated role from the candidate roles as a target candidate role associated with the first associated role, for example, the attribute information corresponding to the first associated role includes: role 1, role 2, the candidate roles include: role 3, role 4, role 5, role 1 is determined as the target candidate role associated with the first associated role.
S303, generating a position relation graph among the target role, the first associated role and the target candidate role according to the target position point, the first position point and the position point corresponding to the target candidate role in the three-dimensional space.
In the embodiment of the application, the target position points are respectively connected with different first position points in a three-dimensional space, and then the first position points corresponding to the first associated roles are respectively connected with the position points of the target candidate roles corresponding to the first associated roles, so as to obtain the position relationship diagram among the target roles, the first associated roles and the target candidate roles.
As a possible implementation manner, after obtaining the associated roles associated with the target role, it is determined whether each associated role corresponds to a position point in the three-dimensional space, if not, the associated role which does not correspond to a position point is determined as the first associated role, and if so, the associated role which corresponds to a position point is determined as the second associated role. When the associated role corresponding to the target role includes the second associated role, the target candidate role associated with the second associated role is obtained according to the method of step 302. And respectively connecting the target position points with different associated position points in a three-dimensional space, and then respectively connecting the associated position points corresponding to the associated roles with the position points of the target candidate roles corresponding to the associated roles to obtain a position relation graph among the target roles, the associated roles and the target candidate roles, wherein the associated position points comprise first position points and second position points, and the associated roles comprise first associated roles and second associated roles.
Further, in the method for generating a role relationship diagram provided in the embodiment of the present application, after the position relationship diagram is generated, the method further includes:
and sending the position relation graph to a user side so that the user side displays the position relation graph.
And responding to a first operation instruction aiming at a specific area in the position relation diagram, and setting each role in the position relation diagram to be in a first state.
And responding to a second operation instruction aiming at a specific role in the position relation diagram, and setting the specific role and the associated role corresponding to the specific role to be in a second state.
In the embodiment of the application, the generated position relation diagram is sent to the user side, so that the user can check the position relation diagram conveniently. In the process of viewing by a user, in response to a first operation instruction for a specific area in the position relationship diagram, where the specific area is a preset operation area, or an area in the position relationship diagram does not include a role and a connecting line, setting each role in the position relationship diagram to be in a first state, where the first state includes one or more of the following states: gray state (setting the color of the position relation diagram to black and white), and hiding the connecting lines between the characters.
Correspondingly, in response to a second operation instruction for a specific role in the position relationship diagram, the specific role and an associated role corresponding to the specific role are set to be in a second state, where the second state includes one or more of the following states: displaying a connection line between the specific character and the associated character in a color state (setting the color of the specific character and the associated character corresponding to the specific character as a color), optionally, displaying attribute information of the specific character in a preset display area in response to a second operation instruction for the specific character in the position relationship diagram, where the attribute information includes: photos, names, ages, sexes, learning experiences, work experiences, family relationships, social relationships, etc.; when the specific character is an item, the attribute information includes: the owner, the usage specification, value, weight, date of manufacture, circulation information, etc.
Further, as shown in fig. 4, in the method for generating a role relationship diagram provided in the embodiment of the present application, the method further includes:
s401, according to first distance information of the first associated role relative to the target role, determining a distance characteristic between the first associated role and the target role; wherein the distance features comprise one or more of the following features: the color of the connecting line, the shape of the connecting line, the lines of the connecting line and the distance mark.
In the embodiment of the present application, based on a mapping table of locally pre-stored distance information and distance features, a distance feature matching the first distance information is searched, where the distance feature includes one or more of the following features: the color of the connecting line, the shape of the connecting line, the line of the connecting line, and the distance identifier, where the mapping table includes different distance features corresponding to each distance information, for example, the mapping table includes: 1 cm-blue, straight, first line; 2 cm-green, straight, second line; 3 cm-red, straight line, third line, the distance feature matched with the first distance information (2 cm) is "green, straight line, second line".
Optionally, when the target role corresponds to the second associated role, the distance feature matching the second distance information is searched based on the mapping table, or when the associated role (the first associated role and the second associated role) corresponds to the target candidate role, the distance feature matching the third distance information (the distance between the associated role and the target candidate role) is searched based on the mapping table.
S402, generating a position relation graph between the target role and the first associated role according to the target position point, the first position point and the distance characteristic between the first associated role and the target role in the three-dimensional space.
In the embodiment of the application, a target connecting line for connecting a first associated role and a target role is determined according to a distance characteristic between the first associated role and the target role, the first associated role and the target role are connected in a three-dimensional space by using the target connecting line, and when the distance characteristic comprises a distance identifier, the distance identifier is displayed in a preset area of the connecting line.
Based on the same inventive concept, a role relationship diagram generation device corresponding to the role relationship diagram generation method is also provided in the embodiments of the present application, and because the principle of solving the problem of the device in the embodiments of the present application is similar to the role relationship diagram generation method in the embodiments of the present application, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 5, a schematic structural diagram of a role relationship diagram generating device provided in an embodiment of the present application is shown, where the role relationship diagram generating device includes:
a first obtaining module 501, configured to obtain a target role and a first associated role corresponding to the target role;
a first determining module 502, configured to determine, according to association information between the target role and the first associated role, first distance information of the first associated role relative to the target role;
a second determining module 503, configured to determine a first position point of the first associated character in the three-dimensional space according to a target position point of the target character in the three-dimensional space, and the position information and the first distance information of the first associated character relative to the target character; wherein the orientation information is the orientation information of the first associated character in the three-dimensional space;
a first generating module 504, configured to generate a position relationship diagram between the target role and the first associated role according to the target position point and the first position point in the three-dimensional space.
In a possible implementation manner, the determining, by the first determining module 502, first distance information of the first associated character relative to the target character according to the association information between the target character and the first associated character includes:
determining second distance information of a second associated role relative to the target role according to a second position point corresponding to the second associated role in the three-dimensional space;
establishing a mapping table between the association information and the distance information according to the association information and the second distance information between the target role and the second association role;
and determining first distance information of the first associated role relative to the target role according to the mapping table and the associated information between the target role and the first associated role.
In a possible implementation manner, the associated location points include the first location point and the second location point, the associated roles include the first associated role and the second associated role, and the first generating module 504 generates the location relationship graph by:
and generating a position relation graph between the target role and the associated role according to the target position point and the associated position point in the three-dimensional space.
In a possible implementation manner, the generating device of the role relationship diagram further includes:
the second acquisition module is used for acquiring candidate roles corresponding to position points in the three-dimensional space;
a selecting module, configured to select, based on the attribute information of the first associated role, a target candidate role corresponding to the first associated role from candidate roles other than the target role;
and the second generation module is used for generating a position relation graph among the target role, the first associated role and the target candidate role according to the target position point, the first position point and the position point corresponding to the target candidate role in the three-dimensional space.
In a possible implementation manner, the generating device of the role relationship diagram further includes:
the sending module is used for sending the position relation graph to a user side so that the user side can display the position relation graph;
the first setting module is used for responding to a first operation instruction aiming at a specific area in the position relation diagram and setting each role in the position relation diagram to be in a first state;
and the second setting module is used for responding to a second operation instruction aiming at a specific role in the position relation diagram and setting the specific role and the associated role corresponding to the specific role to be in a second state.
In a possible implementation manner, the generating device of the role relationship diagram further includes:
a third determining module, configured to determine, according to first distance information of the first associated role relative to the target role, a distance feature between the first associated role and the target role; wherein the distance features comprise one or more of the following features: the color of the connecting line, the shape of the connecting line, the lines of the connecting line and the distance mark;
and a third generating module, configured to generate a position relationship diagram between the target role and the first associated role according to the target position point, the first position point, and a distance feature between the first associated role and the target role in the three-dimensional space.
In a possible embodiment, the three-dimensional space has a polyhedral structure, and the transparency of the three-dimensional space is greater than a preset threshold.
The device for generating the role relationship diagram provided by the embodiment of the application shows the incidence relation among the roles in the three-dimensional space, expands the showing space of the role incidence relation and reduces the complexity of the position relationship diagram.
As shown in fig. 6, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601, when the electronic device runs, the processor 601 and the memory 602 communicate with each other through the bus, and the processor 601 executes the machine-readable instructions to execute the steps of the method for generating the role relationship diagram.
Specifically, the memory 602 and the processor 601 can be general memories and processors, which are not limited to the specific embodiments, and the processor 601 can execute the role relationship diagram generation method when executing the computer program stored in the memory 602.
Corresponding to the method for generating the role relationship diagram, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the method for generating the role relationship diagram.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for generating a role relationship diagram is characterized by comprising the following steps:
acquiring a target role and a first associated role corresponding to the target role;
determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role;
determining a first position point of the first associated character in the three-dimensional space according to a target position point of the target character in the three-dimensional space and the position information and the first distance information of the first associated character relative to the target character; wherein the orientation information is the orientation information of the first associated character in the three-dimensional space;
and generating a position relation graph between the target role and the first associated role according to the target position point and the first position point in the three-dimensional space.
2. The method for generating a role relationship diagram according to claim 1, wherein the determining first distance information of the first associated role relative to the target role according to the association information between the target role and the first associated role comprises:
determining second distance information of a second associated role relative to the target role according to a second position point corresponding to the second associated role in the three-dimensional space;
establishing a mapping table between the association information and the distance information according to the association information and the second distance information between the target role and the second association role;
and determining first distance information of the first associated role relative to the target role according to the mapping table and the associated information between the target role and the first associated role.
3. The method for generating a role relationship diagram according to claim 2, wherein the associated location points include the first location point and the second location point, and the associated roles include the first associated role and the second associated role, and the location relationship diagram is generated by:
and generating a position relation graph between the target role and the associated role according to the target position point and the associated position point in the three-dimensional space.
4. The method for generating a character relationship diagram according to claim 1, wherein after determining the first position point of the first associated character in the three-dimensional space, the method further comprises:
acquiring a candidate role corresponding to a position point in the three-dimensional space;
selecting a target candidate role corresponding to the first associated role from candidate roles except the target role based on the attribute information of the first associated role;
and generating a position relation graph among the target role, the first associated role and the target candidate role according to the target position point, the first position point and the position point corresponding to the target candidate role in the three-dimensional space.
5. The method for generating a role relationship diagram according to any one of claims 1, 3 and 4, wherein after the position relationship diagram is generated, the method further comprises:
sending the position relation graph to a user side so that the user side can display the position relation graph;
setting each role in the position relation diagram to be in a first state in response to a first operation instruction aiming at a specific area in the position relation diagram;
and responding to a second operation instruction aiming at a specific role in the position relation diagram, and setting the specific role and the associated role corresponding to the specific role to be in a second state.
6. The method for generating a role relationship diagram according to claim 1, wherein the method further comprises:
determining a distance characteristic between the first associated role and the target role according to first distance information of the first associated role relative to the target role; wherein the distance features comprise one or more of the following features: the color of the connecting line, the shape of the connecting line, the lines of the connecting line and the distance mark;
and generating a position relation graph between the target role and the first associated role according to the target position point, the first position point and the distance characteristic between the first associated role and the target role in the three-dimensional space.
7. The method for generating a character relationship diagram according to claim 1, wherein the three-dimensional space is a polyhedron structure, and transparency of the three-dimensional space is greater than a preset threshold.
8. An apparatus for generating a role relationship diagram, the apparatus comprising:
the system comprises a first acquisition module, a first association module and a second acquisition module, wherein the first acquisition module is used for acquiring a target role and a first association role corresponding to the target role;
the first determining module is used for determining first distance information of the first associated role relative to the target role according to the associated information between the target role and the first associated role;
the second determination module is used for determining a first position point of the first associated role in the three-dimensional space according to a target position point of the target role in the three-dimensional space and the position information and the first distance information of the first associated role relative to the target role; wherein the orientation information is the orientation information of the first associated character in the three-dimensional space;
a first generating module, configured to generate a position relationship diagram between the target role and the first associated role according to the target position point and the first position point in the three-dimensional space.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the processor executing the machine readable instructions to perform the steps of the method for generating a persona diagram according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, performs the steps of the method for generating a persona graph according to any one of claims 1 to 7.
CN202010553927.3A 2020-06-17 2020-06-17 Role relationship graph generation method and device, electronic equipment and storage medium Pending CN111639144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010553927.3A CN111639144A (en) 2020-06-17 2020-06-17 Role relationship graph generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010553927.3A CN111639144A (en) 2020-06-17 2020-06-17 Role relationship graph generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111639144A true CN111639144A (en) 2020-09-08

Family

ID=72330664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010553927.3A Pending CN111639144A (en) 2020-06-17 2020-06-17 Role relationship graph generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111639144A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190207819A1 (en) * 2018-01-04 2019-07-04 Facebook, Inc. Determining Mesh Networks Based on Determined Contexts
CN110019766A (en) * 2017-09-25 2019-07-16 腾讯科技(深圳)有限公司 Methods of exhibiting, device, mobile terminal and the readable storage medium storing program for executing of knowledge mapping
CN110602101A (en) * 2019-09-16 2019-12-20 北京三快在线科技有限公司 Method, device, equipment and storage medium for determining network abnormal group
CN110955737A (en) * 2019-11-27 2020-04-03 北京明略软件系统有限公司 Relation graph display strategy determination method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019766A (en) * 2017-09-25 2019-07-16 腾讯科技(深圳)有限公司 Methods of exhibiting, device, mobile terminal and the readable storage medium storing program for executing of knowledge mapping
US20190207819A1 (en) * 2018-01-04 2019-07-04 Facebook, Inc. Determining Mesh Networks Based on Determined Contexts
CN110602101A (en) * 2019-09-16 2019-12-20 北京三快在线科技有限公司 Method, device, equipment and storage medium for determining network abnormal group
CN110955737A (en) * 2019-11-27 2020-04-03 北京明略软件系统有限公司 Relation graph display strategy determination method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108351791B (en) Computing device with user input accessory
US20170186219A1 (en) Method for 360-degree panoramic display, display module and mobile terminal
EP2786353A1 (en) Methods and systems for capturing and moving 3d models and true-scale metadata of real world objects
JP2013097473A5 (en)
CN110928894B (en) Entity alignment method and device
CN111653175B (en) Virtual sand table display method and device
WO2014201824A1 (en) A method for interchanging data between the three-demensional shopping platform and the external platform
US20170148225A1 (en) Virtual dressing system and virtual dressing method
CN112435323B (en) Light effect processing method, device, terminal and medium in virtual model
CN111652971A (en) Display control method and device
CN111583398B (en) Image display method, device, electronic equipment and computer readable storage medium
CN112288882A (en) Information display method and device, computer equipment and storage medium
CN112181141A (en) AR positioning method, AR positioning device, electronic equipment and storage medium
US20180203592A1 (en) System for designing and configuring a home improvement installation
CN111651055A (en) City virtual sand table display method and device, computer equipment and storage medium
JP2019079439A (en) Computer program, display, display method, image output device, image output method, and image display system
CN114529647A (en) Object rendering method, device and apparatus, electronic device and storage medium
KR102013917B1 (en) Appartus and method for displaying hierarchical depth image in virtual realilty
CN111639144A (en) Role relationship graph generation method and device, electronic equipment and storage medium
CN115527000B (en) Method and device for batch monomalization of unmanned aerial vehicle oblique photography model
CN103838909A (en) Information processing apparatus, information processing method, and program
CN109598021B (en) Information display method, device, equipment and storage medium
CN108597025B (en) Artificial intelligence-based virtual reality-oriented rapid model construction method and device
EP2816520A1 (en) A method for interchanging data between the three-demensional shopping platform and the external platform
CN114529648A (en) Model display method, device, apparatus, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200908

RJ01 Rejection of invention patent application after publication