CN115292793A - House type design method and related device - Google Patents

House type design method and related device Download PDF

Info

Publication number
CN115292793A
CN115292793A CN202211201335.0A CN202211201335A CN115292793A CN 115292793 A CN115292793 A CN 115292793A CN 202211201335 A CN202211201335 A CN 202211201335A CN 115292793 A CN115292793 A CN 115292793A
Authority
CN
China
Prior art keywords
house type
initial
graph
type graph
topological relation
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.)
Granted
Application number
CN202211201335.0A
Other languages
Chinese (zh)
Other versions
CN115292793B (en
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.)
Shenzhen Xkool Technology Co Ltd
Original Assignee
Shenzhen Xkool Technology 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 Shenzhen Xkool Technology Co Ltd filed Critical Shenzhen Xkool Technology Co Ltd
Priority to CN202211201335.0A priority Critical patent/CN115292793B/en
Publication of CN115292793A publication Critical patent/CN115292793A/en
Application granted granted Critical
Publication of CN115292793B publication Critical patent/CN115292793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Geometry (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Algebra (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Computing Systems (AREA)
  • Structural Engineering (AREA)
  • Evolutionary Computation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a house type design method and a related device, wherein the method comprises the following steps: acquiring an initial floor plan; determining a first topological relation and a second topological relation of the initial house type graph, wherein the first topological relation of the initial house type graph comprises first reference information of a plurality of sub house type areas in the initial house type graph relative to house type entrances in the initial house type graph respectively, and the second topological relation of the initial house type graph comprises second reference information of the plurality of sub house type area entrances in the initial house type graph relative to the house type entrances in the initial house type graph respectively; matching a recommended layout graph similar to the initial layout graph from a layout library according to the first topological relation and the second topological relation of the initial layout graph; and outputting the recommended user pattern. According to the method and the device, the user type graph similar to the initial user type graph can be recommended to the designer according to the initial user type graph drawn by the designer, and therefore the efficiency of drawing the user type graph by the designer is improved.

Description

House type design method and related device
Technical Field
The application relates to a computer technology, which is applied to the field of buildings, in particular to a house type design method and a related device.
Background
In the field of buildings, a building or indoor designer splices different sub-house type area modules by means of a computer, sets relevant parameters such as the area, the approximate shape and size, application labels and the like of the sub-house type areas to obtain a house type sketch (commonly called a bubble sketch), and modifies the house type sketch and draws elements such as walls, area inlets, windows and the like according to more specific requirements such as north-south permeability, reasonable room division, dry-wet separation, high area utilization rate and the like, so that a final house type sketch is designed. Designers often wish to draw inspiration from similar past cases or to consult similar databases to find a custom figure of reference value before drawing the custom figure.
How to efficiently recommend the required reference floor plan to the user is a technical problem that those skilled in the art are studying.
Disclosure of Invention
The embodiment of the application discloses a house type design method and a related device, which can recommend a house type graph similar to an initial house type graph to the initial house type graph drawn by a designer according to the initial house type graph, thereby improving the efficiency of drawing the house type graph by the designer.
In a first aspect, an embodiment of the present application provides a house type design method, where the method includes:
acquiring an initial house type graph, wherein the initial house type graph comprises a house type entrance, a plurality of sub house type areas and a plurality of sub house type area entrances;
determining a first topological relation and a second topological relation of the initial house type graph, wherein the first topological relation of the initial house type graph comprises first reference information of a plurality of sub house type areas in the initial house type graph relative to house type entrances in the initial house type graph respectively, the second topological relation of the initial house type graph comprises second reference information of the plurality of sub house type area entrances in the initial house type graph relative to the house type entrances in the initial house type graph respectively, the first reference information comprises one or more of distance, position and direction, and the second reference information comprises one or more of distance, position and direction;
matching a recommended house type graph similar to the initial house type graph from a house type library according to the first topological relation and the second topological relation of the initial house type graph, wherein the house type library comprises a plurality of house type graphs, and each house type graph in the plurality of house type graphs corresponds to the first topological relation and the second topological relation;
and outputting the recommended user pattern.
In the method, the topological relation can reflect the spatial structure relation among the graphic elements in the overall concept, wherein the first topological relation is used for reflecting the connectivity and the adjacency of a plurality of sub-house type areas in the house type diagram and can be described by using the first reference information, so that the similarity between the plurality of house type diagrams in the house type library and the initial house type diagram can be judged by using the first topological relation. The second topological relation is used for reflecting the relative positions of the entrances of the plurality of sub-house type areas in the house type graph and can be described by using second reference information, so that the similarity between the plurality of house type graphs in the house type library and the initial house type graph can be judged by using the second topological relation.
If two or more house type graphs exist in the house type library, the first topological relations of the two or more house type graphs are the same, but the second topological relations are different, or the second topological relations of the two or more house type graphs are the same, but the first topological relations are different, the similarity between the two or more house type graphs and the initial house type graph is difficult to distinguish by only using a single topological relation, so the method combines the first topological relation and the second topological relation for comprehensively judging the similarity between the multiple house type graphs in the house type library and the initial house type graph, the limitation of matching aiming at the single topological relation can be avoided, and the matching accuracy is improved.
It should be noted that the initial house type graph is a house type sketch drawn by a designer, and when the initial house type graph is continuously changed due to drawing of the designer, the output recommended house type graph is changed, so that the method can recommend the similar house type graph for the designer in real time in the drawing process of the designer, the designer can conveniently obtain design inspiration, and the efficiency of drawing the house type graph by the designer is improved.
With reference to the first aspect, in a possible implementation manner, the determining a first topological relation and a second topological relation of the initial user-type graph includes:
determining the position of a house type entrance in the initial house type graph, and determining first reference information of a plurality of sub house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
determining a first topological relation of the initial house type graph according to first reference information of the plurality of sub house type areas relative to the house type entrance respectively;
determining the position of a house type entrance in the initial house type graph, and determining second reference information of a plurality of sub-house type area entrances corresponding to a plurality of sub-house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
and determining a second topological relation of the initial house type graph according to second reference information of a plurality of sub house type area entrances corresponding to the plurality of sub house type areas relative to the house type entrance respectively.
In the method, the element types of different house type graphs may be different, and the house type entries are indispensable elements in the house type graph, so that the house type entries are used as a reference to unify the reference elements of the initial house type graph and the plurality of house type graphs in the house type library, so that the plurality of sub-house type areas in the house type graph respectively determine the first reference information relative to the reference element, and the plurality of sub-house type area entries of the house type graph respectively determine the second reference information relative to the reference element, thereby unifying the content forms of the first topological relation and the second topological relation of the different house type graphs. The method is beneficial to matching the topological relation of the initial layout drawing with the topological relations of the layout drawings respectively.
With reference to the first aspect, or any one of the foregoing possible implementation manners of the first aspect, in another possible implementation manner, the first reference information of each of a plurality of sub-house type areas in the initial house type diagram with respect to a house type entrance in the initial house type diagram includes:
first reference information of center points of a plurality of sub-house type areas in the initial house type graph relative to a center point of a house type entrance in the initial house type graph;
the second reference information of the plurality of sub-house type area entrances in the initial house type graph respectively corresponding to the house type entrances in the initial house type graph comprises:
second reference information of center points of a plurality of sub-house type area inlets in the initial house type graph relative to the center point of the house type inlet in the initial house type graph.
The initial house type graph is simplified by the method, the house type inlets, the plurality of sub-house type areas and the plurality of sub-house type area inlets in the initial house type graph are simplified into corresponding central points, and the house type graph becomes a scatter diagram formed by a plurality of points, so that the calculation process needed for obtaining the first reference information in the first topological relation and the second reference information in the second topological relation of the initial house type graph is simplified.
It should be noted that, when the house type entrance, the plurality of sub-house type areas and the plurality of sub-house type area entrances are irregular patterns, the center point thereof is replaced with the center point of gravity thereof.
Optionally, the direction in the first reference information and the second reference information includes front, back, left, right, left front, left back, right front, or right back, or the direction includes east, south, west, north, southeast, northeast, southwest, or northwest.
It should be noted that, for convenience of calculation, different directions in the above method may correspond to different values.
Optionally, the distance between the first reference information and the second reference information includes a straight-line distance between two center points.
Optionally, the positions in the first reference information and the second reference information include a horizontal distance and a vertical distance between two central points; or the position in the first reference information and the second reference information includes an acute angle formed by a straight line obtained by connecting two central points and a preset reference line.
It should be noted that, considering that there may exist a house type graph completely symmetrical to the initial house type graph in the house type library, the above method does not select a mode of establishing a rectangular coordinate system or a polar coordinate system with the house type entrance center point of the initial house type graph as the origin, but a mode of combining horizontal/vertical distances between two center points or a mode of an acute angle formed by a straight line connecting two center points and a preset reference line, for describing the positions of the center points of the plurality of sub-house type areas and the center points of the plurality of sub-house type area entrances of the initial house type graph relative to the house type entrance center point, and avoids the occurrence of a situation that there exists a house type graph completely symmetrical to the initial house type graph in the house type library without recommendation.
With reference to the first aspect or any one of the foregoing possible implementation manners of the first aspect, in a further possible implementation manner, the matching, according to the first topological relation and the second topological relation of the initial house type graph, a recommended house type graph similar to the initial house type graph from a house type library includes:
comparing a first topological relation corresponding to each house type graph in a plurality of house type graphs of a house type library with a first topological relation of the initial house type graph respectively to obtain a first similarity of each house type graph and the initial house type graph;
comparing the second topological relation corresponding to each house type graph with the second topological relation of the initial house type graph respectively to obtain a second similarity of each house type graph and the initial house type graph;
determining the comprehensive similarity of each house type graph and the initial house type graph according to the first similarity and the second similarity of each house type graph and the initial house type graph;
and determining a recommended layout similar to the initial layout according to the comprehensive similarity.
In the method, the initial family pattern and the first similarity of each family pattern in the family library to the first topological relation and the second similarity of each family pattern to the first topological relation are comprehensively considered, and the family pattern similar to the initial family pattern can be comprehensively and accurately recommended to the designer by determining the comprehensive similarity.
With reference to the first aspect or any one of the foregoing possible implementation manners of the first aspect, in yet another possible implementation manner, the first topological relation of the initial user-type graph includes a matrix M with a dimension of n \1093m 1 Wherein:
Figure 465919DEST_PATH_IMAGE001
wherein n represents the number of a plurality of sub-house type areas in the initial house type graph, and m represents the number of data types in the first reference information; a is a xy Representing the y type data in the first reference information of the x-th sub-house type area in the initial house type graph relative to the house type entrance in the initial house type graph, wherein n and m are positive integers which are more than 1, and x is equal to 1, 2, 3, \ 8230;, n-1, n, and y is equal to 1, 2, 3, \\ 8230;, m-1, m; the matrix A 1 、A 2 、…、A n-1 、A n Respectively said matrix M 1 The row matrix is used for representing first reference information of an x-th sub-house type area in the initial house type graph relative to a house type entrance in the initial house type graph;
the second topological relation of the initial user type graph comprises a matrix M with the dimension p \1093q 2 Wherein:
Figure 923925DEST_PATH_IMAGE002
wherein p represents the number of a plurality of sub-house type area entries in the initial house type graph, and q represents the number of data types in the second reference information; b is ij Representing jth type data in second reference information of an ith sub-house type area entrance in the initial house type graph relative to the house type entrance in the initial house type graph, wherein p and q are positive integers, i is equal to 1, 2, 3, \ 8230;, p-1, p, and j is equal to 1, 2, 3, \\ 8230;, q-1, q; the matrix B 1 、B 2 、…、B p-1 、B p Respectively being said matrix M 2 A row matrix ofSecond reference information representing the i-th sub-subscriber zone entry in the initial subscriber graph relative to the subscriber entry in the initial subscriber graph.
In the method, different types of data of the first reference information in the first topological relation of the initial floor plan are collected into a matrix form, and the first reference information (such as one or more of distance, position and direction) of a plurality of sub-floor plan areas in the initial floor plan relative to a floor entrance in the initial floor plan can be clearly and intensively represented; similarly, the different types of data of the second reference information in the second topological relation of the initial user type graph are collected into a matrix form, and the second reference information (such as one or more items of distance, position and direction) of the plurality of sub user type area entrances in the initial user type graph relative to the user type entrances in the initial user type graph can be clearly and intensively represented.
Specifically, the first topological relation and the second topological relation of each house type graph in the house type library are also in the same matrix form, so that the subsequent calculation of the first similarity and the second similarity is facilitated.
With reference to the first aspect, or any one of the foregoing possible implementation manners of the first aspect, in yet another possible implementation manner, the comparing the first topological relation corresponding to each house type graph with the first topological relation of the initial house type graph to obtain a first similarity between each house type graph and the initial house type graph includes:
calculating cosine similarity between a matrix in the first topological relation of the initial house type graph and a matrix in the first topological relation of the first house type graph to obtain a first cosine matrix, wherein the first cosine matrix is used for representing the first similarity between each house type graph and the initial house type graph, and the first house type graph is any one of the house type graphs;
comparing the second topological relation corresponding to each house type graph with the second topological relation of the initial house type graph respectively to obtain a second similarity between each house type graph and the initial house type graph, including:
and calculating cosine similarity of a matrix in the second topological relation of the initial house type graph and a matrix in the second topological relation of the first house type graph to obtain a second cosine matrix, wherein the second cosine matrix is used for representing the second similarity of each house type graph and the initial house type graph.
The method quantifies the similarity of the initial house type graph and any house type graph in the house type library into cosine similarity calculation between two different matrixes. It should be noted that, the cosine similarity calculation method is not only simple and convenient in calculation and wide in application range, but also only requires that the number of column matrixes between two different matrixes is equal. In the above method, the number of sub-house type areas of any house type graph in the initial house type graph and the house type library may not be equal, but the number of data types of the first/second reference information is equal, so that the number of matrix row matrices in the first/second topological relation of the initial house type graph and the number of matrix row vectors in the first/second topological relation of the any house type graph may not be equal, but the number of column matrices is equal, and therefore the cosine similarity algorithm is adopted to conform to the usage scenario of calculating the first/second similarity between the any house type graph and the initial house type graph in the above method.
Specifically, each element in the first cosine matrix represents a similarity between a certain sub-house type area in the initial house type diagram and a certain sub-house type area in any one house type diagram corresponding to the first reference information; each element in the second cosine matrix represents the similarity of a certain sub-house type area inlet in the initial house type graph and a certain sub-house type area inlet in any one house type graph corresponding to the second reference information; the comprehensive similarity between any one of the house pattern and the initial house pattern comprises a total weighted value obtained by weighting and calculating the sum value of all elements in the first cosine matrix and the sum value of all elements in the second cosine matrix.
Therefore, the cosine matrix can reflect the partial similarity between a certain sub-house type area or sub-house type area entrance of any one house type graph and a certain sub-house type area or sub-house type area entrance of the initial house type graph, and can also reflect the overall similarity between any one house type graph and the initial house type graph, so that a recommended house type graph with higher similarity can be obtained based on the cosine matrix.
In addition, the method takes the first similarity of any one house type diagram and the initial house type diagram as the primary similarity, and takes the second similarity as the secondary similarity, that is, the contributions of the first similarity and the second similarity to the comprehensive similarity are different, so that the sum of all elements in the first cosine matrix and the sum of all elements in the second cosine matrix are weighted by using the weighting coefficient, the contribution degree of the first similarity and the second similarity to the comprehensive similarity can be reflected, and the comprehensive similarity can be calculated more accurately.
With reference to the first aspect, or any one of the foregoing possible implementation manners of the first aspect, in yet another possible implementation manner, the determining, according to the comprehensive similarity, a recommended user type graph similar to the initial user type graph includes:
if the difference value of the comprehensive similarity of the second house type graph and the third house type graph is higher than a first preset threshold value, taking the house type graph with the comprehensive similarity arranged at the top N positions in the plurality of house type graphs as a recommended house type graph, wherein the second house type graph and the third house type graph are any two house type graphs in the plurality of house type graphs, and N is a positive integer;
if the difference value of the comprehensive similarity of the second house type graph and the third house type graph is lower than a first preset threshold value, comparing the third topological relation of the initial house type graph with the third topological relation of the second house type graph and the third topological relation of the third house type graph respectively to obtain the third similarity of the initial house type graph with the second house type graph and the third similarity of the third house type graph respectively, wherein the third topological relation comprises a polygon obtained by connecting the central points of all sub house type areas in the house type graph;
sequencing the plurality of house type graphs according to the comprehensive similarity to obtain a first sequencing result;
adjusting the house type graphs with the third similarity smaller than a second threshold value in the second house type graph and the third house type graph to the last digit in the first sequencing result to obtain a second sequencing result;
and taking the house type graph with the top N bits in the second sorting result as a recommended house type graph.
Specifically, the third similarity between the second or third house type diagram and the initial house type diagram is the similarity between a polygon obtained by connecting the central points of all the sub-house type areas in the second or third house type diagram and a polygon obtained by connecting the central points of all the sub-house type areas in the initial house type diagram.
In the method, when the positions in the first reference information and the second reference information comprise a horizontal distance and a vertical distance between two central points; or, when the position in the first reference information and the second reference information includes an acute angle between a straight line connecting two center points and a preset reference line, there may be a special house type diagram in the house type library that is far from the initial house type diagram in terms of the spatial structure relationship between the graphic elements, but has a high comprehensive similarity, and then the special house type diagram may be selected as the recommended house type diagram. In order to avoid this, similarity check is further performed on the preliminarily obtained first ranking result, specifically, the second house type graph and the third house type graph with close comprehensive similarity in the first ranking result are compared again by using a polygon similarity algorithm, and the house type graphs which are dissimilar to the initial house type graph in the second house type graph and the third house type graph are filtered out, so that a second ranking result is obtained. Therefore, the second ranking result can more accurately reflect the situation that a plurality of house type graphs in the house type library are similar to the initial house type graph, and the matching accuracy is further improved.
With reference to the first aspect or any one of the foregoing possible implementation manners of the first aspect, in a further possible implementation manner, after the outputting the recommended user pattern diagram, the method further includes:
obtaining a screening instruction, wherein the screening instruction is used for specifying one or more of the number, the area, the orientation or the type of the sub-house type areas or the sub-house type area inlets;
according to the screening instruction, matching a specified house type graph which accords with the screening instruction from the recommended house type graph;
and outputting the specified custom-type graph.
In the method, after obtaining the recommended house type diagram, the designer can select the house type diagram conforming to the specified condition again from the recommended house type diagram by specifying the condition, such as specifying one or more of the number, area, orientation or type of the sub-house type area or the sub-house type area entrance, which is convenient for the designer to quickly and accurately obtain the house type diagram similar to the initial house type diagram and conforming to the design requirement by combining with the design requirement of the designer.
In a second aspect, an embodiment of the present application provides a house layout apparatus, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an initial house type diagram, and the initial house type diagram comprises a house type entrance, a plurality of sub house type areas and a plurality of sub house type area entrances;
a determining unit, configured to determine a first topological relation and a second topological relation of the initial house type graph, where the first topological relation of the initial house type graph includes first reference information of a plurality of sub-house type areas in the initial house type graph, respectively, relative to a house type entrance in the initial house type graph, the second topological relation of the initial house type graph includes second reference information of a plurality of sub-house type area entrances in the initial house type graph, respectively, relative to a house type entrance in the initial house type graph, the first reference information includes one or more of a distance, a position, and a direction, and the second reference information includes one or more of a distance, a position, and a direction;
a matching unit, configured to match a recommended house type graph similar to the initial house type graph from a house type library according to a first topological relation and a second topological relation of the initial house type graph, where the house type library includes a plurality of house type graphs, and each of the plurality of house type graphs has a first topological relation and a second topological relation corresponding thereto;
and the output unit is used for outputting the recommended user pattern diagram.
With reference to the second aspect, in a possible implementation manner, in determining the first topological relation and the second topological relation of the initial user-type graph, the determining unit is specifically configured to:
determining the position of a house type entrance in the initial house type graph, and determining first reference information of a plurality of sub house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
determining a first topological relation of the initial house type graph according to first reference information of the plurality of sub house type areas relative to the house type entrance respectively;
determining the position of a house type entrance in the initial house type graph, and determining second reference information of a plurality of sub-house type area entrances corresponding to a plurality of sub-house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
and determining a second topological relation of the initial house type graph according to second reference information of a plurality of sub house type area entrances corresponding to the plurality of sub house type areas relative to the house type entrance respectively.
With reference to the second aspect, or any one of the foregoing possible implementation manners of the second aspect, in another possible implementation manner, the first reference information of each of a plurality of sub-subscriber areas in the initial subscriber graph with respect to a subscriber entry in the initial subscriber graph includes:
first reference information of center points of a plurality of sub-house type areas in the initial house type graph relative to a center point of a house type entrance in the initial house type graph;
the second reference information of the plurality of sub-house type area entrances in the initial house type graph respectively corresponding to the house type entrances in the initial house type graph comprises:
second reference information of center points of a plurality of sub-house type area inlets in the initial house type graph relative to the center point of the house type inlet in the initial house type graph.
Optionally, the direction in the first/second reference information includes front, rear, left, right, left front, left rear, right front or right rear, or the direction includes east, south, west, north, southeast, northeast, southwest or northwest.
Optionally, the distance in the first/second reference information includes a straight-line distance between two center points.
Optionally, the position in the first/second reference information includes a horizontal distance and a vertical distance between two center points; or the position in the first/second reference information includes an acute angle between a straight line obtained by connecting two center points and a preset reference line.
With reference to the second aspect or any one of the foregoing possible implementation manners of the second aspect, in yet another possible implementation manner, in terms of matching a recommended house type diagram similar to the initial house type diagram from a house type library according to the first topological relation and the second topological relation of the initial house type diagram, the matching unit is specifically configured to:
comparing a first topological relation corresponding to each house type graph in a plurality of house type graphs of a house type library with a first topological relation of the initial house type graph respectively to obtain a first similarity of each house type graph and the initial house type graph;
comparing the second topological relation corresponding to each floor plan with the second topological relation of the initial floor plan respectively to obtain a second similarity of each floor plan and the initial floor plan;
determining the comprehensive similarity of each floor model graph and the initial floor model graph according to the first similarity and the second similarity of each floor model graph and the initial floor model graph;
and determining a recommended layout similar to the initial layout according to the comprehensive similarity.
With reference to the second aspect, or any one of the foregoing possible implementations of the second aspect, in yet another possible implementation, the first topological relationship of the initial user-type graph includes a matrix M with a dimension n \1093m 1 Wherein:
Figure DEST_PATH_IMAGE003
wherein n represents the number of a plurality of sub-house type areas in the initial house type graph, and m represents the number of data types in the first reference information; a is a mentioned xy Representing the y-th data in the first reference information of the x-th sub-house type area in the initial house type diagram relative to the house type entrance in the initial house type diagram, the n andm is a positive integer greater than 1, x is equal to 1, 2, 3, \8230, n-1 and n, and y is equal to 1, 2, 3, \8230, m-1 and m; the matrix A 1 、A 2 、…、A n-1 、A n Respectively said matrix M 1 The row matrix is used for representing first reference information of an x-th sub-house type area in the initial house type graph relative to a house type entrance in the initial house type graph;
the second topological relation of the initial user type graph comprises a matrix M with a dimension p \1093q 2 Wherein:
Figure 587993DEST_PATH_IMAGE002
wherein p represents the number of a plurality of sub-house type region entries in the initial house type graph, and q represents the number of data types in the second reference information; b is described ij Representing jth type data in second reference information of an ith sub-house type area entrance in the initial house type graph relative to the house type entrance in the initial house type graph, wherein p and q are positive integers, i is equal to 1, 2, 3, \ 8230;, p-1, p, and j is equal to 1, 2, 3, \\ 8230;, q-1, q; the matrix B 1 、B 2 、…、B p-1 、B p Respectively said matrix M 2 The row matrix is used for representing second reference information of the ith sub-subscriber type area entrance in the initial subscriber type graph relative to the subscriber type entrance in the initial subscriber type graph.
With reference to the second aspect, or any one of the foregoing possible implementation manners of the second aspect, in yet another possible implementation manner, in comparing the first topological relation corresponding to each house type diagram with the first topological relation of the initial house type diagram, to obtain a first similarity between each house type diagram and the initial house type diagram, the matching unit is specifically configured to:
calculating cosine similarity of a matrix in a first topological relation of the initial house type graph and a matrix in a first topological relation of a first house type graph to obtain a first cosine matrix, wherein the first cosine matrix is used for representing the first similarity of each house type graph and the initial house type graph, and the first house type graph is any one of the house type graphs;
in respect of obtaining a second similarity between each house type graph and the initial house type graph by comparing the second topological relation corresponding to each house type graph with the second topological relation of the initial house type graph, the matching unit is specifically configured to:
and calculating cosine similarity of a matrix in the second topological relation of the initial house type graph and a matrix in the second topological relation of the first house type graph to obtain a second cosine matrix, wherein the second cosine matrix is used for representing the second similarity of each house type graph and the initial house type graph.
Specifically, each element in the first cosine matrix represents the similarity between a certain sub-house type area in the initial house type diagram and a certain sub-house type area in any house type diagram corresponding to the first reference information; each element in the second cosine matrix represents the similarity of a certain sub-house type area inlet in the initial house type graph and a certain sub-house type area inlet in any one house type graph corresponding to the second reference information; the comprehensive similarity between any one of the house pattern and the initial house pattern comprises a total weighted value obtained by weighting and calculating the sum value of all elements in the first cosine matrix and the sum value of all elements in the second cosine matrix.
With reference to the second aspect, or any one of the foregoing possible implementation manners of the second aspect, in yet another possible implementation manner, in determining a recommended layout similar to the initial layout according to the comprehensive similarity, the matching unit is specifically configured to:
if the difference value of the comprehensive similarity of the second house type diagram and the third house type diagram is higher than a first preset threshold value, the house type diagram with the comprehensive similarity arranged at the top N positions in the plurality of house type diagrams is taken as a recommended house type diagram, wherein the second house type diagram and the third house type diagram are any two house type diagrams in the plurality of house type diagrams, and N is a positive integer;
if the difference value of the comprehensive similarity of the second house type graph and the third house type graph is lower than a first preset threshold value, comparing the third topological relation of the initial house type graph with the third topological relation of the second house type graph and the third topological relation of the third house type graph respectively to obtain the third similarity of the initial house type graph with the second house type graph and the third similarity of the third house type graph respectively, wherein the third topological relation comprises a polygon obtained by connecting the central points of all sub house type areas in the house type graph;
sequencing the plurality of house type graphs according to the comprehensive similarity to obtain a first sequencing result;
adjusting the house type graphs of which the third similarity is smaller than a second preset threshold value in the second house type graph and the third house type graph to the last position in the first sequencing result to obtain a second sequencing result;
and taking the house type graph with the top N bits in the second sorting result as a recommended house type graph.
Specifically, the third similarity between the second or third house type diagram and the initial house type diagram is the similarity between a polygon obtained by connecting the central points of all the sub-house type areas in the second or third house type diagram and a polygon obtained by connecting the central points of all the sub-house type areas in the initial house type diagram.
With reference to the second aspect or any one of the foregoing possible implementations of the second aspect, in yet another possible implementation, the apparatus further includes: second acquisition unit, second matching unit, second output unit, wherein:
the second obtaining unit is configured to obtain a filtering instruction after the recommended house type diagram is output, where the filtering instruction is used to specify one or more of the number, area, orientation, or type of sub-house type areas or sub-house type area inlets;
the second matching unit is used for matching the specified house type graph conforming to the screening instruction from the recommended house type graph according to the screening instruction;
and the second output unit is used for outputting the specified custom-type graph.
In a third aspect, an embodiment of the present application provides a house design device, which includes a processor, a memory, and a communication interface, where the communication interface is configured to perform a receiving and/or sending operation under the control of the processor, the memory is configured to store a computer program, and the processor is configured to call the computer program, so as to implement the method described in the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, this application provides a computer-readable storage medium, which is characterized in that the computer-readable storage medium stores a computer program, which when executed on a processor, is used to implement the method described in the first aspect or any one of the possible implementation manners of the first aspect.
The beneficial effects of the technical methods provided in the second to fourth aspects of the present application may refer to the beneficial effects of the technical solution of the first aspect, which are not described herein again.
Drawings
The drawings that need to be used in the description of the embodiments of the present application will now be briefly described.
Fig. 1 is a schematic architecture diagram of a house layout system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a house type design method according to an embodiment of the present application;
FIG. 3 is a schematic view of a scene of an operation interface provided in an embodiment of the present application;
FIG. 4 is a schematic view of a further exemplary operating interface provided in an embodiment of the present application;
fig. 5 is a schematic view of a scenario of determining first reference information of a house type map according to an embodiment of the present application;
FIG. 6 is a schematic view of a scenario for calculating comprehensive similarity of a user-type diagram according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a house type designing apparatus 70 according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a house layout apparatus 80 according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
It should be noted that the type of house type diagram is not strictly limited in the present application. The house type graph is a graph describing any spatial layout in the field of buildings and can be a residential house type graph, a commercial house type graph, an office type house type graph and the like.
For convenience of understanding, the embodiment of the application is illustrated by taking a residential house type figure as an example. Accordingly, hereinafter, the "house type entrance" may be understood as "entrance door", the "sub-house type area" may be understood as "room area", and the "sub-house type area entrance" may be understood as "room door".
Referring to fig. 1, fig. 1 is a schematic architecture diagram of a house type design system provided in an embodiment of the present application, where the system includes a terminal device 101 and a house type design device 102. The number of terminal devices 101 is not strictly limited in the present application, and the number shown in fig. 1 is only an example.
The terminal device 101 is an electronic device having both data processing and data transceiving capabilities, and is configured to present an operation interface to a designer, so that the designer can draw, select, or edit an initial custom-layout in the operation interface. The terminal device 101 may receive an operation instruction of a designer, and provide initial layout data information generated in response to the operation instruction to the layout device 102, so that the layout device 102 provides relevant services to the designer. Optionally, the terminal device 101 may be an independent device such as a handheld terminal, a desktop terminal, and a wearable device, or may be a component (e.g., a chip or an integrated circuit) included in the independent device, and when the terminal device is a handheld terminal, the terminal device may be a mobile phone, a tablet computer, a computer (e.g., a notebook computer, a palmtop computer, etc.), and the like.
The house design apparatus 102 is a device with computing power and storage space including a house type library for storing various house type graphs and their corresponding topological relationships. The house layout device 102 may obtain an initial house layout transmitted by the terminal device 101, match a recommended house layout similar to the initial house layout from the house layout library, and output the recommended house layout to the terminal device 101. Alternatively, the user design apparatus 102 may be a physical device such as a server or a host, or may be a virtual device such as a virtual machine or a container. Optionally, the house design apparatus 102 may be a cloud, such as a single service of the cloud or a server cluster composed of multiple servers, or may be a local apparatus, such as a local single service or a server cluster composed of multiple servers.
The house-type design device 102 and the terminal device 101 may be directly connected through a wired communication method, such as a tangible medium, such as a metal wire and an optical fiber, or indirectly connected through a wireless communication method, such as an intangible medium, such as a wireless lan and bluetooth.
Optionally, if the terminal device 101 has the same computing power and storage space as the house type designing device 102, the designer can draw, select, or edit the initial house type diagram by using only the terminal device 101, and obtain a recommended house type diagram similar to the initial house type diagram. I.e. the terminal device 101 performs the related calculation operations previously mentioned as performed by the house-type designing device 102.
In the system architecture shown in fig. 1, when drawing an initial custom-layout drawing through a terminal device, a designer can obtain a recommended custom-layout drawing similar to the initial custom-layout drawing, and draw design inspiration from the recommended custom-layout drawing, thereby improving efficiency of drawing the custom-layout drawing.
Referring to fig. 2, fig. 2 is a schematic flow chart of a house type design method provided in the embodiment of the present application, which can be implemented based on the system architecture shown in fig. 1, and the method includes, but is not limited to, the following steps:
step S201: the house type design equipment acquires an initial house type diagram.
The house-type design apparatus may be the house-type design apparatus 102 shown in fig. 1, or may be other devices having computing capabilities. The initial house type diagram comprises a house type entrance, a plurality of sub house type areas and a plurality of sub house type area entrances, and is generated by a terminal device (such as the terminal device 101 shown in figure 1) in response to an operation instruction of a designer. There are many ways to operate the instruction, which are easy to understand, and two possible ways are listed as follows:
the first method is as follows: a designer places a user-type entrance area block and a plurality of sub-user-type area blocks on a sketch editing interface presented by a terminal device, as shown in fig. 3, fig. 3 is a scene schematic diagram of an operation interface provided in an embodiment of the present application. The designer can edit the attributes of the area block, such as the name, area, size, and the like of the area block, in the right attribute panel 302 by clicking the area block 301, modify the size of the area block in the small floating window 303 of the sketch editing interface, and directly drag a movable point on the area block to modify the shape of the area block. The terminal equipment captures related operations of the editing page in real time, single-line wall changing, overlapping space, gap processing, door and window generation and the like are carried out on a sketch formed by splicing a plurality of area blocks, an initial house type graph is generated by a background, and the initial house type graph is sent to house type design equipment.
Further, the designer may view the initial user-type diagram 403 in the preview floating window 402 by clicking the user-type generation icon 401 on the left side of the sketch editing interface, as shown in fig. 4, where fig. 4 is a scene diagram of another operation interface provided in the embodiment of the present application. Optionally, the designer may return to the sketch editing interface by clicking the continue editing icon 404 on the lower right side of the preview floating window, and further modify the sketch spliced by the plurality of area blocks. As a further alternative, the designer may make further modifications to the details of the initial user-type diagram by clicking on the application icon 405 on the lower right side of the preview pane to enter a detail editing interface.
The second method comprises the following steps: the designer draws the house type drawing through other building design software, such as common automatic Computer Aided Design (CAD), and imports the house type drawing file with the attribute in the format of other building design software into the terminal device. The terminal equipment can convert the house type graph file into an initial house type graph which is suitable for the format of an operating system of the terminal equipment, and sends the initial house type graph to the house type design equipment.
Correspondingly, the house type design device receives the initial house type graph sent by the terminal device. Of course, the house type designing apparatus may also obtain the initial house type diagram through other ways, such as downloading from a network, and the specific obtaining manner is not limited herein.
Step S202: the house type design device determines a first topological relation and a second topological relation of the initial house type graph.
The initial house type graph comprises a first topological relation and a second topological relation, the first topological relation and the second topological relation can reflect the spatial structure relation among graphic elements in an overall concept, and specifically, the first topological relation comprises first reference information of a plurality of sub house type areas in the initial house type graph relative to a house type entrance in the initial house type graph respectively; the second topological relation of the initial house type graph comprises second reference information of a plurality of sub house type area entrances in the initial house type graph relative to the house type entrances in the initial house type graph. The first reference information includes one or more of a distance, a position, and an orientation, and the second reference information includes one or more of a distance, a position, and an orientation. The more the number of data categories contained in the first reference information or the second reference information is, the more comprehensive the first topological relation and the second topological relation of the initial user-type graph is, and the more accurate the spatial structure relation of the initial user-type graph is reflected.
Optionally, the first topological relation of the initial user type graph includes a matrix M with a dimension of n \1093m 1 Wherein:
Figure 468225DEST_PATH_IMAGE003
wherein n represents the number of a plurality of sub-house type areas in the initial house type graph, and m represents the number of data types in the first reference information; a is xy Representing the y type data in the first reference information of the x-th sub-house type area in the initial house type diagram relative to the house type entrance in the initial house type diagram, wherein n and m are positive integers which are larger than 1, x is equal to 1, 2, 3, \8230, n-1, n, y is equal to 1, 2, 3, \8230, m-1, m; matrix A 1 、A 2 、…、A n-1 、A n Are respectively a matrix M 1 The row matrix is used for representing first reference information of an x-th sub-house type area in the initial house type graph relative to a house type entrance in the initial house type graph;
initial house type graphThe second topological relationship of (1) includes a matrix M with a dimension of p \1093q 2 Wherein:
Figure 96040DEST_PATH_IMAGE004
wherein p represents the number of a plurality of sub-house type area entries in the initial house type graph, and q represents the number of data types in the second reference information; b is a mixture of ij Representing j type data in the second reference information of the ith sub-house type area entrance relative to the house type entrance in the initial house type diagram, wherein p and q are positive integers, i is equal to 1, 2, 3, \8230, p-1, p, j is equal to 1, 2, 3, \8230, q-1, q; matrix B 1 、B 2 、…、B p-1 、B p Are respectively a matrix M 2 The row matrix is used for representing second reference information of the ith sub-subscriber zone entrance in the initial subscriber graph relative to the subscriber entrance in the initial subscriber graph.
Optionally, when the house type design device determines the first topological relation and the second topological relation of the initial house type graph, the position of the house type entrance of the initial house type graph may be determined, and the first reference information of each of the plurality of sub-house type areas in the initial house type graph relative to the house type entrance is determined based on the house type entrance; determining a first topological relation of the initial house type graph according to first reference information of the plurality of sub house type areas relative to the house type entrance respectively; determining second reference information of a plurality of sub-house type area entrances corresponding to a plurality of sub-house type areas in the initial house type graph respectively relative to the house type entrance by taking the house type entrance as a reference; and determining a second topological relation of the initial house type graph according to second reference information of the plurality of sub house type area entrances relative to the house type entrances respectively.
The house type design device may sequentially determine, based on the house type entry, first reference information of the plurality of sub-house type areas respectively corresponding to the house type entry and second reference information of the plurality of sub-house type area entries respectively corresponding to the house type entry according to a preset rule, where the preset rule may be clockwise/counterclockwise, or an order of increasing the areas of the plurality of sub-house type areas from large to small or from small to large.
Alternatively, for convenience of data processing, the house type design device may simplify the initial house type diagram, and simplify the house type entry, the plurality of sub-house type areas and the plurality of sub-house type area entries in the initial house type diagram to the corresponding central points, where the initial house type diagram becomes a scatter diagram composed of a plurality of points. It should be noted that, when the house type entrance, the plurality of sub-house type areas and the plurality of sub-house type area entrances are irregular patterns, the center point thereof is replaced by the center point thereof.
In this case, the first topological relation includes first reference information of center points of a plurality of sub-subscriber type areas in the initial subscriber type graph with respect to a center point of a subscriber type entry in the initial subscriber type graph, and the second topological relation includes second reference information of center points of a plurality of sub-subscriber type area entries in the initial subscriber type graph with respect to a center point of a subscriber type entry in the initial subscriber type graph.
Optionally, the directions in the first reference information and the second reference information include front, back, left, right, left front, left back, right front, or right back, or the directions include east, south, west, north, southeast, northeast, southwest, or northwest.
Please refer to fig. 5, fig. 5 is a schematic view illustrating a scenario of determining first reference information of a house type map according to an embodiment of the present application. Taking the initial house type diagram 403 in fig. 4 as an example, point a is the central point of the house type entry in the initial house type diagram, and points b-h are the central points of the sub-house type areas in the initial house type diagram, respectively. The house type design equipment takes a point a as a center, two mutually perpendicular reference lines are established, namely a south-north (back-front) direction reference line and an east-west (right-left) direction reference line, then a point b, a point c and a point d are all located on the northeast (front right) surface of the point a, and a point e, a point f, a point g and a point h are all located on the southeast (back right) surface of the point a. It should be noted that, for the convenience of calculation, the directions in the above method can be expressed as different values. The house type designing apparatus can store the corresponding relationship between the direction and the value in the first reference information, which is convenient for understanding, please refer to table 1, where table 1 is an optional corresponding relationship between the direction and the value in the first reference information:
TABLE 1 table of correspondence between directions and values in the first reference information
Direction Numerical value
North (front) side 1
Northeast (front right) side 1.5
Dong (Right) Fang 2
Southeast (rear right) side 2.5
South (back) side 3
Southwest (left back) side 3.5
Western (left) face 4
Northwest (left front) 4.5
Optionally, the distance in the first reference information or the second reference information includes a straight-line distance between two center points.
Optionally, the positions in the first reference information and the second reference information include a horizontal distance and a vertical distance between two central points; or the position in the first reference information and the second reference information comprises an acute angle between a straight line obtained by connecting two central points and a preset reference line.
It should be noted that, considering that there may exist a house type graph completely symmetrical to the initial house type graph in the house type library, the above method does not select a way of establishing a rectangular coordinate system or a polar coordinate system with the house type entrance center point of the initial house type graph as the origin, but a way of combining horizontal/vertical distances between two center points, or a way of connecting an acute angle between a straight line obtained by connecting two center points and a preset reference line, for describing the positions of the center points of the plurality of sub-house type regions and the entrance center points of the plurality of sub-house type regions of the initial house type graph relative to the house type entrance center point.
Step S203: and the house type design equipment matches a recommended house type graph similar to the initial house type graph from the house type library according to the first topological relation and the second topological relation of the initial house type graph.
The house type design device comprises a house type library, and the house type library is used for storing a plurality of house type graphs and corresponding first topological relations and second topological relations. The house type design equipment compares a first topological relation corresponding to each house type graph in a plurality of house type graphs of a house type library with a first topological relation of the initial house type graph respectively to obtain a first similarity of each house type graph and the initial house type graph; comparing the second topological relation corresponding to each house type graph with the second topological relation of the initial house type graph respectively to obtain a second similarity of each house type graph and the initial house type graph; then, determining the comprehensive similarity of each house type graph and the initial house type graph according to the first similarity and the second similarity, wherein all the house type graphs in the house type library respectively correspond to one comprehensive similarity; and finally, determining a recommended layout graph similar to the initial layout graph according to the comprehensive similarity.
Optionally, the first topological relationship of the first house type graph in the house type library includes a matrix M with a dimension k \1093m 3 Wherein:
Figure 454340DEST_PATH_IMAGE005
the first house type graph is any house type graph in the house type library.
Wherein k represents the number of a plurality of sub-house type areas in the first house type graph, and m represents the number of data types in the first reference information; c. C gy Representing the y type data in the first reference information of the g-th sub-house type area in the first house type graph relative to the house type entrance in the first house type graph, wherein k and m are positive integers which are more than 1, g is equal to 1, 2, 3, \8230, k-1, k, y is equal to 1, 2, 3, \8230, m-1 and m; matrix C 1 、C 2 、…、C k-1 、C k Respectively being said matrix M 3 The row matrix is used for representing first reference information of the g-th sub-house type area in the first house type graph relative to the house type entrance in the first house type graph;
the first topological relation of the first house type graph in the house type library comprises a matrix M with the dimensionality h \ 1093q 4 Wherein:
Figure 379439DEST_PATH_IMAGE006
wherein h represents the number of a plurality of sub-house type region entries in the first house type graph, and q represents the number of data types in the second reference information; d is a radical of sj The j-th type data in the second reference information of the s-th sub-house type area entrance relative to the house type entrance in the first house type graph is represented, h and q are positive integers, s is equal to 1, 2, 3, \8230, h-1, h, j is equal to 1, 2, 3, \8230, q-1 and q; matrix D 1 、D 2 、…、D h-1 、D h Are respectively a matrix M 4 The row matrix is used for representing second reference information of the entrance of the s-th sub-subscriber type area in the first subscriber type graph relative to the entrance of the subscriber type in the first subscriber type graph.
In the matching process, the house type design equipment can calculate the similarity of the initial house type graph and each house type graph in the house type library for the first topological relation and the similarity for the second topological relation by using a similarity algorithm between matrixes. The similarity calculation method of the matrix comprises cosine similarity, euclidean similarity, pearson similarity, hamming similarity and the like, wherein the cosine similarity calculation method is simple and convenient to calculate and wide in application range. The cosine similarity calculation method is to regard the row matrixes of two matrixes as row vectors and respectively calculate the similarity between the row vector of one matrix and the row vector of the other matrix. The similarity between two vectors is measured by the cosine value of the included angle between the vectors, and the more the included angle degree is close to 0, the more the cosine value is close to 1, the more the two vectors are similar; the cosine values of a plurality of vector included angles are integrated into a cosine matrix form to represent the similarity between the two matrixes, and the greater the sum value of all elements in the cosine matrix is, the higher the similarity between the two matrixes is.
Optionally, the family design device calculates a matrix M with a dimensionality of n \1093m 1 And a matrix M with dimension k \1093m 3 Obtaining a first cosine matrix M with the dimensionality of n \1093kaccording to the cosine similarity 5 And is used for representing the first similarity of the first floor plan and the initial floor plan.
Figure 164993DEST_PATH_IMAGE007
Wherein,
Figure 277174DEST_PATH_IMAGE008
represents M 3 Middle row matrix C g Transposed matrix of (1) | A x | denotes M 1 Middle row matrix A x Modulo, | C g | denotes M 3 Middle row matrix C g The die of (2); matrix array
Figure 143892DEST_PATH_IMAGE009
Element (1) of
Figure 143072DEST_PATH_IMAGE010
Indicating the similarity between the xth sub-subscriber area in the initial subscriber graph and the gth sub-subscriber area in the first subscriber graph corresponding to the first reference information.
Calculating a matrix M with the dimensionality p \1093qby the house type design equipment 2 And matrix M with dimension h \1093q 4 Obtaining a second cosine matrix M with the dimensionality p \1093haccording to the cosine similarity 6 And the second similarity degree is used for representing the second similarity degree of the first floor plan and the initial floor plan.
Figure 879953DEST_PATH_IMAGE011
Wherein,
Figure 495742DEST_PATH_IMAGE012
represents M 4 Middle row matrix D s Transposed matrix of (1) | B i I represents M 2 Middle row matrix B i Modulo, | D s I represents M 4 Middle row matrix D s The die of (2); matrix M 6 Element (1) of
Figure 461424DEST_PATH_IMAGE013
Indicating the similarity between the ith sub-subscriber zone entry in the initial subscriber graph and the s-th sub-subscriber zone entry in the first subscriber graph corresponding to the second reference information.
The comprehensive similarity of the first house type graph and the initial house type graph is a total weighted value obtained after weighted operation of the sum value of all elements in the first cosine matrix and the sum value of all elements in the second cosine matrix.
For example, the integrated similarity δ may be represented by the following formula:
Figure 829957DEST_PATH_IMAGE014
Figure 957313DEST_PATH_IMAGE015
wherein alpha is the sum of all elements in the first cosine matrix, beta is the sum of all elements in the second cosine matrix,
ω 1 is the weight of the first cosine matrixCoefficient of gravity, ω 2 The weight coefficients of the second cosine matrix.
In the embodiment of the present application, when there exists a house type graph in the house type library that is symmetric to a sub-house type area or an entrance of a sub-house type area of the initial house type graph, that is, there exists a house type graph that is not completely symmetric to the initial house type graph, although the comprehensive similarity of the special house type graph is high, it is far from the initial house type graph in terms of the spatial structure relationship between the graphic elements. Therefore, the house type design equipment compares the house type graphs with the approximate comprehensive similarity in the house type library again by utilizing the third similarity, can make up the defect of matching the house type by utilizing the comprehensive similarity only, and distinguishes the house type graph which is completely symmetrical to the initial house type graph and the house type graph which is partially symmetrical in the house type library, thereby further improving the matching accuracy.
For example, when the first reference information in the first topological relation of the initial house type graph includes horizontal distances and vertical distances between center points of a plurality of sub-house type areas in the initial house type graph and center points of house type entrances in the initial house type graph, and the second reference information in the second topological relation of the initial house type graph includes horizontal distances and vertical distances between center points of a plurality of sub-house type area entrances in the initial house type graph and center points of house type entrances in the initial house type graph, the house type design device determines a recommended house type graph similar to the initial house type graph according to the comprehensive similarity, two situations may occur:
the first condition is as follows: if the difference value between the comprehensive similarities of the second house type graph and the third house type graph is higher than the first preset threshold, the house type design device takes the house type graph with the comprehensive similarity arranged at the top N bits in the plurality of house type graphs of the house type library as the recommended house type graph, it should be noted that the second house type graph and the third house type graph are any two house type graphs in the plurality of house type graphs, and N is a positive integer.
Case two: if the difference value of the comprehensive similarity between the second house type diagram and the third house type diagram is lower than a first preset threshold, the house type design equipment compares the third topological relation of the initial house type diagram with the third topological relation of the second house type diagram and the third topological relation of the third house type diagram respectively to obtain the third similarity between the initial house type diagram and the second house type diagram and the third similarity of the third house type diagram respectively, and it should be noted that the third topological relation includes a polygon obtained by connecting the central points of all the sub-house type areas in the house type diagram; then, the house type graphs are sorted according to the comprehensive similarity to obtain a first sorting result; then, adjusting the house pattern graph of which the third similarity is smaller than a second preset threshold value in the second house pattern graph and the third house pattern graph to the last position in the first sequencing result to obtain a second sequencing result; and finally, taking the house type graph with the top N bits in the second sorting result as a recommended house type graph.
And performing similarity check on the preliminarily obtained first sequencing result, specifically comparing the second house type graph and the third house type graph with close comprehensive similarity in the first sequencing result by using a polygon similarity algorithm, and filtering out the house type graphs which are not similar to the initial house type graph in the second house type graph and the third house type graph so as to obtain a second sequencing result. Therefore, the second ranking result can more accurately reflect the situation that a plurality of house type graphs in the house type library are similar to the initial house type graph, and the matching accuracy is further improved.
Referring to fig. 6, fig. 6 is a scene schematic diagram for calculating comprehensive similarity of a user-type diagram according to an embodiment of the present application, which is used to further describe a second case.
In the initial floor plan 601, point t 1 Is the center point, point t, of the house type entry in the initial house type diagram 601 2 -point t 5 Is the center point of a plurality of sub-house type areas in the initial house type diagram 601; in the second floor plan 602, point k 1 Is the center point of the house type entry in the second house type diagram 602, point k 2 Point k 5 Is the center point, point k, of the sub-house type areas in the second house type graph 602 2 Point k 5 Are respectively the point t in the initial floor plan 601 2 -point t 5 A symmetry point with respect to a north-south reference line, so that the first topological relation of the second house type graph 602 is the same as the first topological relation of the initial house type graph 601, and the corresponding matrixes of the second house type graph 602 and the initial house type graph 601 are the same; in the third house type diagram 603, point s 1 Is the third houseCenter point of house type entrance in type diagram 603, point s 2 -point s 5 Is the center point, point s, of the sub-house type areas in the third house type diagram 603 2 And s 4 Are respectively the point t in the initial floor plan 601 2 And point t 4 Point of symmetry with respect to the north-south reference line, point s 3 Point s 5 Respectively with the point t in the initial floor plan 601 3 And point t 5 The positions are the same, so the first topological relation of the third floor plan 603 is different from the first topological relation of the initial floor plan 601, but the corresponding matrixes of the third floor plan 603 and the initial floor plan 601 are the same.
It should be noted that, in the embodiment of the present application, the case that the first topological relationship between the two house graphs is the same includes a case that the two house graphs are completely symmetric.
Similarly, the second topological relation of the second floor plan 602 is the same as the second topological relation of the initial floor plan 601, and the corresponding matrixes of the second floor plan 602 and the initial floor plan 601 are the same; the second topological relation of the third house type graph 603 is different from the second topological relation of the initial house type graph 601, but the corresponding matrixes of the third house type graph 603 and the initial house type graph 601 are the same.
In the first ordering result of the embodiment of the present application, the second and third house graphs 602 and 603 have the same and the highest comprehensive similarity with the initial house graph 601, respectively, and the comprehensive similarity difference is smaller than the first preset threshold, but the third house graph 603 is far from the initial house graph 601 in terms of the spatial structure relationship between the graphic elements. Therefore, the house type design apparatus needs to further distinguish the second house type graph 602 from the third house type graph 603, and eliminate the third house type graph 603 from the first sorting result, which can be specifically implemented as follows:
the house layout equipment will initiate the point t in the house layout 601 2 -point t 5 The polygon obtained by clockwise connection is respectively connected with the point k in the second floor plan 602 2 Point k 5 The polygon resulting from the clockwise connection and the point s in the third house view 603 2 -point s 5 Comparing the polygons obtained by clockwise connection, and calculating the similarity between the polygonsAnd obtaining a third similarity, and then adjusting the third floor plan 603 with the third similarity smaller than a second preset threshold value to the last bit in the first sequencing result to obtain a second sequencing result. The house type design device takes the house type graph with the top N bits in the second sorting result as a recommended house type graph. In this way, since the third house pattern 603 is ranked last, the third house pattern 603 is not preferentially selected by the house type designing apparatus as a recommended house pattern, and thus the third house pattern 603 is eliminated.
Alternatively, the similarity algorithm for polygons may include an angle method, an area method, a point-line judgment method, or an arc length method.
Step 204: the house type design equipment outputs a recommended house type graph.
The house type design equipment sends a recommended house type graph similar to the initial house type graph to the terminal equipment, and the terminal equipment displays the thumbnail of the recommended house type graph in a floating window of the operation interface for a designer to select. The designer can view the detail drawing of one recommended user-type drawing by clicking the thumbnail of the user-type drawing and can further edit the detail drawing. It should be noted that, when the initial custom graph is continuously changed due to the drawing of the designer, the output recommended custom graph is also changed.
Optionally, the house type design device may further obtain a screening instruction, where the screening instruction is used to specify one or more of the number, area, orientation, or type of the sub-house type region or the sub-house type region entrance; matching a specified floor plan which accords with the screening instruction from the recommended floor plan according to the screening instruction; the output specifies a custom graph.
After the designer obtains the recommended user type diagram, the designer can set the screening conditions through a screening bar displayed on an operation interface of the terminal equipment; the house type design equipment receives a screening instruction sent by the terminal equipment, then further screens the recommended house type graph according to the content of the screening instruction, and finally sends a specified house type graph matched with the screening instruction in the recommended house type graph to the terminal equipment; the terminal device displays the thumbnail of the designated house type graph in a floating window of an operation interface for a designer to select. The designer can also view the detail drawing of the user-type drawing by clicking one of the thumbnails of the specified user-type drawing and can further edit the detail drawing.
In this embodiment of the present application, the steps S201 to S204 may also be executed by other devices, for example, all the steps are executed by a terminal device, or may also be executed by multiple devices in cooperation, for example, a house type designing device and a terminal device each execute a part of the steps, and for convenience of understanding, the following description will be given by taking the execution subjects in the steps S201 to S204 as the terminal device as an example:
step S201: the terminal equipment acquires an initial user pattern.
In the method, the terminal device can identify the drawing behavior of the designer in the operation interface displayed by the terminal device, so as to generate the initial user-type diagram, and can also directly read the user-type diagrams in other building software formats and convert the user-type diagrams into the initial user-type diagrams corresponding to the own operating system format.
Step S202: the terminal equipment determines a first topological relation and a second topological relation of the initial user type graph.
Step S203: and the terminal equipment matches a recommended house type graph similar to the initial house type graph from the house type library according to the first topological relation and the second topological relation of the initial house type graph.
In the method, the terminal equipment comprises a house type library which is used for storing various house type graphs and corresponding first topological relations and second topological relations.
Step S204: and the terminal equipment outputs the recommended user pattern diagram.
In the method, the terminal equipment displays the recommended user-type diagram in an operation interface displayed by the terminal equipment so as to be selected and checked by designers.
According to the embodiment of the application, the house type design equipment can recommend a recommended house type graph similar to the initial house type graph to a designer in real time when the designer draws the initial house type graph, and the matching accuracy is improved by calculating the similarity of the topological relation between a plurality of house type graphs in a house type library of the house type design equipment and the initial house type graph, so that the design inspiration of the designer is stimulated, and the efficiency of drawing the house type graph by the designer is improved.
The method of the embodiments of the present application is described in detail above, and in order to better implement the above-described solution of the embodiments of the present application, the following provides a device of the embodiments of the present application.
It is to be understood that the apparatus provided in the embodiments of the present application, for example, a house-type designing apparatus, includes a hardware structure, a software module, or a combination of the hardware structure and the software structure for performing the functions in the foregoing method embodiments, and the like.
Those of skill in the art will readily appreciate that the various illustrative elements and steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. A person skilled in the art may implement the foregoing method embodiments in different usage scenarios by using different device implementations, and the different implementation manners of the device should not be considered as exceeding the scope of the embodiments of the present application.
The embodiment of the application can divide the functional modules of the device. For example, each functional module may be divided for each function, or two or more functions may be integrated into one functional module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. For example, taking the case of dividing the functional modules of the device in an integrated manner as an example, the present application exemplifies several possible processing devices.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a house-type designing apparatus provided in an embodiment of the present application, where the house-type designing apparatus 70 may be the house-type designing device 102 shown in fig. 1, or a device in the house-type designing device 102; the house-type designing apparatus 70 may include an obtaining unit 701, a determining unit 702, a matching unit 703 and an output unit 704, wherein the details of each unit are as follows:
the obtaining unit 701 is configured to obtain an initial house type diagram, where the initial house type diagram includes a house type entrance, a plurality of sub-house type areas, and a plurality of sub-house type area entrances;
the determining unit 702 is configured to determine a first topological relation and a second topological relation of the initial house type graph, where the first topological relation of the initial house type graph includes first reference information of a plurality of sub-house type areas in the initial house type graph respectively corresponding to house type entrances in the initial house type graph, the second topological relation of the initial house type graph includes second reference information of a plurality of sub-house type area entrances in the initial house type graph respectively corresponding to house type entrances in the initial house type graph, the first reference information includes one or more of a distance, a position, and a direction, and the second reference information includes one or more of a distance, a position, and a direction;
the matching unit 703 is configured to match a recommended house type graph similar to the initial house type graph from a house type library according to a first topological relation and a second topological relation of the initial house type graph, where the house type library includes a plurality of house type graphs, and each of the plurality of house type graphs has a first topological relation and a second topological relation corresponding thereto;
the output unit 704 is configured to output the recommended layout.
In a possible implementation manner, in determining the first topological relation and the second topological relation of the initial floor plan, the determining unit 702 is specifically configured to:
determining the position of a house type entrance in the initial house type graph, and determining first reference information of a plurality of sub house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
determining a first topological relation of the initial house type graph according to first reference information of the plurality of sub house type areas relative to the house type entrance respectively;
determining the position of a house type entrance in the initial house type graph, and determining second reference information of a plurality of sub-house type area entrances corresponding to a plurality of sub-house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
and determining a second topological relation of the initial house type graph according to second reference information of a plurality of sub house type area entrances corresponding to the plurality of sub house type areas relative to the house type entrance respectively.
In another possible implementation manner, the first reference information of the plurality of sub-house type areas in the initial house type diagram respectively corresponding to the house type entrance in the initial house type diagram includes:
first reference information of center points of a plurality of sub-house type areas in the initial house type graph relative to a center point of a house type entrance in the initial house type graph;
the second reference information of the plurality of sub-house type area entrances in the initial house type graph respectively corresponding to the house type entrances in the initial house type graph comprises:
second reference information of center points of a plurality of sub-house type area inlets in the initial house type graph relative to the center point of the house type inlet in the initial house type graph.
Optionally, the direction in the first/second reference information includes front, rear, left, right, left front, left rear, right front or right rear, or the direction includes east, south, west, north, southeast, northeast, southwest or northwest.
Optionally, the distance in the first/second reference information includes a straight-line distance between two center points.
Optionally, the position in the first/second reference information includes a horizontal distance and a vertical distance between two center points; or the position in the first/second reference information includes an acute angle formed by a straight line connecting two center points and a preset reference line.
In another possible implementation manner, in terms of matching a recommended house type graph similar to the initial house type graph from the house type library according to the first topological relation and the second topological relation of the initial house type graph, the matching unit 703 is specifically configured to:
comparing a first topological relation corresponding to each house type graph in a plurality of house type graphs of a house type library with a first topological relation of the initial house type graph respectively to obtain a first similarity of each house type graph and the initial house type graph;
comparing the second topological relation corresponding to each floor plan with the second topological relation of the initial floor plan respectively to obtain a second similarity of each floor plan and the initial floor plan;
determining the comprehensive similarity of each house type graph and the initial house type graph according to the first similarity and the second similarity of each house type graph and the initial house type graph;
and determining a recommended layout similar to the initial layout according to the comprehensive similarity.
In yet another possible implementation, the first topological relationship of the initial user-type graph includes a matrix M with a dimension n \1093m 1 Wherein:
Figure 312596DEST_PATH_IMAGE001
wherein n represents the number of a plurality of sub-house type areas in the initial house type graph, and m represents the number of data types in the first reference information; a is a xy Representing the y type data in the first reference information of the x-th sub-house type area in the initial house type graph relative to the house type entrance in the initial house type graph, wherein n and m are positive integers which are more than 1, and x is equal to 1, 2, 3, \ 8230;, n-1, n, and y is equal to 1, 2, 3, \\ 8230;, m-1, m; the matrix A 1 、A 2 、…、A n-1 、A n Respectively said matrix M 1 The row matrix is used for representing first reference information of an x-th sub-house type area in the initial house type graph relative to a house type entrance in the initial house type graph;
the second topological relation of the initial user type graph comprises a matrix M with the dimension p \1093q 2 Wherein:
Figure 534499DEST_PATH_IMAGE016
wherein p represents the number of a plurality of sub-house type area entries in the initial house type graph, and q represents the number of data types in the second reference information; b is described ij Representing jth type data in second reference information of an ith sub-house type area entrance in the initial house type graph relative to the house type entrance in the initial house type graph, wherein p and q are positive integers, i is equal to 1, 2, 3, \ 8230;, p-1, p, and j is equal to 1, 2, 3, \\ 8230;, q-1, q; the matrix B 1 、B 2 、…、B p-1 、B p Respectively said matrix M 2 The row matrix is used for representing second reference information of the ith sub-subscriber zone entrance in the initial subscriber graph relative to the subscriber entrance in the initial subscriber graph.
Optionally, in terms of comparing the first topological relation corresponding to each house type graph with the first topological relation of the initial house type graph to obtain the first similarity between each house type graph and the initial house type graph, the matching unit 703 is specifically configured to:
calculating cosine similarity of a matrix in a first topological relation of the initial house type graph and a matrix in a first topological relation of a first house type graph to obtain a first cosine matrix, wherein the first cosine matrix is used for representing the first similarity of each house type graph and the initial house type graph, and the first house type graph is any one of the house type graphs;
in terms of comparing the second topological relation corresponding to each house type diagram with the second topological relation of the initial house type diagram respectively to obtain the second similarity between each house type diagram and the initial house type diagram, the matching unit 703 is specifically configured to:
and calculating cosine similarity of a matrix in the second topological relation of the initial house type graph and a matrix in the second topological relation of the first house type graph to obtain a second cosine matrix, wherein the second cosine matrix is used for representing the second similarity of each house type graph and the initial house type graph.
Specifically, each element in the first cosine matrix represents a similarity between a certain sub-house type area in the initial house type diagram and a certain sub-house type area in any one house type diagram corresponding to the first reference information; each element in the second cosine matrix represents the similarity of a certain sub-house type area inlet in the initial house type graph and a certain sub-house type area inlet in any one house type graph corresponding to the second reference information; the comprehensive similarity of any one floor plan and the initial floor plan comprises a total weighted value obtained by weighted operation of the sum value of all elements in the first cosine matrix and the sum value of all elements in the second cosine matrix.
Still optionally, in terms of determining a recommended layout similar to the initial layout according to the comprehensive similarity, the matching unit 703 is specifically configured to:
if the difference value of the comprehensive similarity of the second house type diagram and the third house type diagram is higher than a first preset threshold value, the house type diagram with the comprehensive similarity arranged at the top N positions in the plurality of house type diagrams is taken as a recommended house type diagram, wherein the second house type diagram and the third house type diagram are any two house type diagrams in the plurality of house type diagrams, and N is a positive integer;
if the difference value of the comprehensive similarity of the second house type graph and the third house type graph is lower than a first preset threshold value, comparing the third topological relation of the initial house type graph with the third topological relation of the second house type graph and the third topological relation of the third house type graph respectively to obtain the third similarity of the initial house type graph with the second house type graph and the third similarity of the third house type graph respectively, wherein the third topological relation comprises a polygon obtained by connecting the central points of all the sub house type areas in the house type graph;
sequencing the plurality of house type graphs according to the comprehensive similarity to obtain a first sequencing result;
adjusting the house type graphs of which the third similarity is smaller than a second preset threshold value in the second house type graph and the third house type graph to the last position in the first sequencing result to obtain a second sequencing result;
and taking the house type graph with the top N bits in the second sorting result as a recommended house type graph.
Specifically, the third similarity between the second or third house type diagram and the initial house type diagram is the similarity between a polygon obtained by connecting the central points of all the sub-house type areas in the second or third house type diagram and a polygon obtained by connecting the central points of all the sub-house type areas in the initial house type diagram.
In yet another possible implementation manner, the house-type designing apparatus 70 further includes: second acquisition unit, second matching unit, second output unit, wherein:
the second obtaining unit is used for obtaining a screening instruction after the recommended user type graph is output, wherein the screening instruction is used for specifying one or more of the number, the area, the orientation or the type of the sub-user type area or the sub-user type area entrance;
the second matching unit is used for matching a specified house type graph conforming to the screening instruction from the recommended house type graph according to the screening instruction;
the second output unit is used for outputting the specified custom-type graph.
It should be noted that, in the embodiment of the present application, the specific implementation and the technical effect of each unit may also correspond to the corresponding descriptions of the embodiments shown in fig. 1 or fig. 2.
Referring to fig. 8, fig. 8 is a house designing apparatus 80 provided in an embodiment of the present application, where the house designing apparatus 80 includes a processor 801, a memory 802, and a communication interface 803, and the processor 801, the memory 802, and the communication interface 803 are connected to each other through a bus.
The processor 801 may be one or more Central Processing Units (CPUs), and in the case where the processor 801 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 802 includes, but is not limited to, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM), and the memory 802 is used for related computer programs and data.
The communication interface 803 is used to receive and transmit data. Optionally, the communication interface 803 receives an initial house type diagram sent by the terminal device, and sends the initial house type diagram to the processor 801; optionally, the communication interface 803 receives the recommended user pattern sent by the processor 801, and sends the recommended user pattern to the terminal device.
The processor 801 is configured to read the computer program code stored in the memory 802, and perform the following operations:
acquiring an initial house type graph, wherein the initial house type graph comprises a house type entrance, a plurality of sub house type areas and a plurality of sub house type area entrances;
determining a first topological relation and a second topological relation of the initial house type graph, wherein the first topological relation of the initial house type graph comprises first reference information of a plurality of sub house type areas in the initial house type graph relative to house type entrances in the initial house type graph respectively, the second topological relation of the initial house type graph comprises second reference information of the plurality of sub house type area entrances in the initial house type graph relative to the house type entrances in the initial house type graph respectively, the first reference information comprises one or more of distance, position and direction, and the second reference information comprises one or more of distance, position and direction;
matching a recommended house type graph similar to the initial house type graph from a house type library according to the first topological relation and the second topological relation of the initial house type graph, wherein the house type library comprises a plurality of house type graphs, and each house type graph in the plurality of house type graphs corresponds to the first topological relation and the second topological relation;
and outputting the recommended user type graph.
In one possible implementation, in determining the first topological relation and the second topological relation of the initial footprint, the processor 801 is specifically configured to:
determining the position of a house type entrance in the initial house type graph, and determining first reference information of a plurality of sub house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
determining a first topological relation of the initial house type graph according to first reference information of the plurality of sub house type areas relative to the house type entrance respectively;
determining the position of a house type entrance in the initial house type graph, and determining second reference information of a plurality of sub-house type area entrances corresponding to a plurality of sub-house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
and determining a second topological relation of the initial house type graph according to second reference information of a plurality of sub house type area entrances corresponding to the plurality of sub house type areas relative to the house type entrance respectively.
In another possible implementation manner, the first reference information of the plurality of sub-house type areas in the initial house type diagram respectively corresponding to the house type entrance in the initial house type diagram includes:
first reference information of center points of a plurality of sub-house type areas in the initial house type graph relative to a center point of a house type entrance in the initial house type graph;
the second reference information of the plurality of sub-house type area entrances in the initial house type graph respectively corresponding to the house type entrances in the initial house type graph comprises:
second reference information of center points of a plurality of sub-house type area inlets in the initial house type graph relative to the center point of the house type inlet in the initial house type graph.
Optionally, the direction in the first/second reference information includes front, back, left, right, left front, left back, right front or right back, or the direction includes east, south, west, north, southeast, northeast, southwest or northwest.
Optionally, the distance in the first/second reference information includes a straight-line distance between two center points.
Optionally, the position in the first/second reference information includes a horizontal distance and a vertical distance between two central points; or the position in the first/second reference information includes an acute angle formed by a straight line connecting two center points and a preset reference line.
In another possible implementation manner, in terms of matching a recommended house type graph similar to the initial house type graph from the house type library according to the first topological relation and the second topological relation of the initial house type graph, the processor 801 is specifically configured to:
comparing a first topological relation corresponding to each house type graph in a plurality of house type graphs of a house type library with a first topological relation of the initial house type graph respectively to obtain a first similarity of each house type graph and the initial house type graph;
comparing the second topological relation corresponding to each floor plan with the second topological relation of the initial floor plan respectively to obtain a second similarity of each floor plan and the initial floor plan;
determining the comprehensive similarity of each floor model graph and the initial floor model graph according to the first similarity and the second similarity of each floor model graph and the initial floor model graph;
and determining a recommended layout similar to the initial layout according to the comprehensive similarity.
In yet another possible implementation, the first topological relationship of the initial user-type graph includes a matrix M with a dimension n \1093m 1 Wherein:
Figure 39429DEST_PATH_IMAGE001
wherein n represents the number of a plurality of sub-house type areas in the initial house type graph, and m represents the number of data types in the first reference information; a is a xy Representing the y type data in the first reference information of the x-th sub-house type area in the initial house type graph relative to the house type entrance in the initial house type graph, wherein n and m are positive integers which are more than 1, and x is equal to 1, 2, 3, \ 8230;, n-1, n, and y is equal to 1, 2, 3, \\ 8230;, m-1, m; the matrix A 1 、A 2 、…、A n-1 、A n Respectively being said matrix M 1 The row matrix is used for representing first reference information of an x-th sub-house type area in the initial house type graph relative to a house type entrance in the initial house type graph;
the second topological relation of the initial user type graph comprises a matrix M with a dimension p \1093q 2 Wherein:
Figure 337687DEST_PATH_IMAGE004
wherein p represents the number of a plurality of sub-house type region entries in the initial house type graph, and q represents the number of data types in the second reference information; b is ij J type data in second reference information representing the ith entrance of the sub-house type area in the initial house type diagram relative to the entrance of the house type in the initial house type diagram, wherein p and q are positive integers, i is equal to 1, 2, 3, \8230, p-1, p, and j is equal to 1, 2, 3, \8230, q-1, q; the matrix B 1 、B 2 、…、B p-1 、B p Respectively being said matrix M 2 The row matrix is used for representing second reference information of the ith sub-subscriber zone entrance in the initial subscriber graph relative to the subscriber entrance in the initial subscriber graph.
Optionally, in terms of comparing the first topological relation corresponding to each house type diagram with the first topological relation of the initial house type diagram respectively to obtain the first similarity between each house type diagram and the initial house type diagram, the processor 801 is specifically configured to:
calculating cosine similarity between a matrix in the first topological relation of the initial house type graph and a matrix in the first topological relation of the first house type graph to obtain a first cosine matrix, wherein the first cosine matrix is used for representing the first similarity between each house type graph and the initial house type graph, and the first house type graph is any one of the house type graphs;
in terms of comparing the second topological relation corresponding to each house type diagram with the second topological relation of the initial house type diagram respectively to obtain the second similarity between each house type diagram and the initial house type diagram, the processor 801 is specifically configured to:
and calculating cosine similarity of a matrix in the second topological relation of the initial house type graph and a matrix in the second topological relation of the first house type graph to obtain a second cosine matrix, wherein the second cosine matrix is used for representing the second similarity of each house type graph and the initial house type graph.
Specifically, each element in the first cosine matrix represents a similarity between a certain sub-house type area in the initial house type diagram and a certain sub-house type area in any one house type diagram corresponding to the first reference information; each element in the second cosine matrix represents the similarity of a certain sub-house type area inlet in the initial house type graph and a certain sub-house type area inlet in any one house type graph corresponding to the second reference information; the comprehensive similarity between any one of the house pattern and the initial house pattern comprises a total weighted value obtained by weighting and calculating the sum value of all elements in the first cosine matrix and the sum value of all elements in the second cosine matrix.
Optionally, in regard to determining a recommended layout similar to the initial layout according to the comprehensive similarity, the processor 801 is specifically configured to:
if the difference value of the comprehensive similarity of the second house type diagram and the third house type diagram is higher than a first preset threshold value, the house type diagram with the comprehensive similarity arranged at the top N positions in the plurality of house type diagrams is taken as a recommended house type diagram, wherein the second house type diagram and the third house type diagram are any two house type diagrams in the plurality of house type diagrams, and N is a positive integer;
if the difference value of the comprehensive similarity of the second house type graph and the third house type graph is lower than a first preset threshold value, comparing the third topological relation of the initial house type graph with the third topological relation of the second house type graph and the third topological relation of the third house type graph respectively to obtain the third similarity of the initial house type graph with the second house type graph and the third similarity of the third house type graph respectively, wherein the third topological relation comprises a polygon obtained by connecting the central points of all the sub house type areas in the house type graph;
sequencing the plurality of house type graphs according to the comprehensive similarity to obtain a first sequencing result;
adjusting the house type graphs of which the third similarity is smaller than a second preset threshold value in the second house type graph and the third house type graph to the last place in the first sequencing result to obtain a second sequencing result;
and taking the house type graph with the top N bits in the second sorting result as a recommended house type graph.
Specifically, the third similarity between the second or third house type diagram and the initial house type diagram is the similarity between a polygon obtained by connecting the central points of all the sub-house type areas in the second or third house type diagram and a polygon obtained by connecting the central points of all the sub-house type areas in the initial house type diagram.
In yet another possible implementation manner, after the outputting the recommended user pattern, the processor 801 is further configured to:
acquiring a screening instruction, wherein the screening instruction is used for specifying one or more of the number, the area, the orientation or the type of the sub-house type area or the sub-house type area entrance;
according to the screening instruction, matching a specified house type graph which conforms to the screening instruction from the recommended house type graph;
and outputting the specified custom-type graph.
It should be noted that, the implementation of each operation may also correspond to the corresponding description of the embodiment shown in fig. 1 or fig. 2.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a network device, the method flow shown in fig. 2 is implemented.
In the embodiments of the present application, the reference to "a plurality" means two or more, and the character "/" generally indicates that the former and latter related objects are in an "or" relationship. And, unless stated otherwise, the first topological relation, the first reference information, the first similarity, the first cosine matrix, the first layout, the first preset threshold, and the "first" in the first sorting result are only used as name identifiers and are not used to define the order, timing, priority, or importance of the plurality of objects. The same applies to "second", "third" and "fourth", etc.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A house type designing method, characterized in that the method comprises:
acquiring an initial house type graph, wherein the initial house type graph comprises a house type entrance, a plurality of sub house type areas and a plurality of sub house type area entrances;
determining a first topological relation and a second topological relation of the initial house type graph, wherein the first topological relation of the initial house type graph comprises first reference information of a plurality of sub house type areas in the initial house type graph relative to house type entrances in the initial house type graph respectively, the second topological relation of the initial house type graph comprises second reference information of the plurality of sub house type area entrances in the initial house type graph relative to the house type entrances in the initial house type graph respectively, the first reference information comprises one or more of distance, position and direction, and the second reference information comprises one or more of distance, position and direction;
matching a recommended house type graph similar to the initial house type graph from a house type library according to the first topological relation and the second topological relation of the initial house type graph, wherein the house type library comprises a plurality of house type graphs, and each house type graph in the plurality of house type graphs corresponds to the first topological relation and the second topological relation;
and outputting the recommended user pattern.
2. The method of claim 1, wherein determining the first topological relationship and the second topological relationship of the initial prototype graph comprises:
determining the position of a house type entrance in the initial house type graph, and determining first reference information of a plurality of sub house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
determining a first topological relation of the initial house type graph according to first reference information of the plurality of sub house type areas relative to the house type entrance respectively;
determining the position of a house type entrance in the initial house type graph, and determining second reference information of a plurality of sub-house type area entrances corresponding to a plurality of sub-house type areas in the initial house type graph relative to the house type entrance by taking the house type entrance as a reference;
and determining a second topological relation of the initial house type graph according to second reference information of a plurality of sub house type area entrances corresponding to the plurality of sub house type areas relative to the house type entrance respectively.
3. The method according to claim 1 or 2,
the first reference information of the plurality of sub-house type areas in the initial house type graph respectively corresponding to the house type entrance in the initial house type graph comprises:
first reference information of center points of a plurality of sub-house type areas in the initial house type graph relative to a center point of a house type entrance in the initial house type graph;
the second reference information of the plurality of sub-house type area entrances in the initial house type graph respectively corresponding to the house type entrances in the initial house type graph comprises:
second reference information of center points of a plurality of sub-house type area inlets in the initial house type graph relative to the center point of the house type inlet in the initial house type graph.
4. The method according to claim 1 or 2, wherein the matching of the recommended haplotype graph similar to the initial haplotype graph from the haplotype base according to the first topological relation and the second topological relation of the initial haplotype graph comprises:
comparing a first topological relation corresponding to each house type graph in a plurality of house type graphs of a house type library with a first topological relation of the initial house type graph respectively to obtain a first similarity of each house type graph and the initial house type graph;
comparing the second topological relation corresponding to each house type graph with the second topological relation of the initial house type graph respectively to obtain a second similarity of each house type graph and the initial house type graph;
determining the comprehensive similarity of each house type graph and the initial house type graph according to the first similarity and the second similarity of each house type graph and the initial house type graph;
and determining a recommended layout similar to the initial layout according to the comprehensive similarity.
5. The method of claim 4, wherein determining the recommended genotype graph similar to the initial genotype graph based on the integrated similarity comprises:
if the difference value of the comprehensive similarity of the second house type diagram and the third house type diagram is higher than a first preset threshold value, the house type diagram with the comprehensive similarity arranged at the top N positions in the plurality of house type diagrams is taken as a recommended house type diagram, wherein the second house type diagram and the third house type diagram are any two house type diagrams in the plurality of house type diagrams, and N is a positive integer;
if the difference value of the comprehensive similarity of the second house type graph and the third house type graph is lower than a first preset threshold value, comparing the third topological relation of the initial house type graph with the third topological relation of the second house type graph and the third topological relation of the third house type graph respectively to obtain the third similarity of the initial house type graph with the second house type graph and the third similarity of the third house type graph respectively, wherein the third topological relation comprises a polygon obtained by connecting the central points of all sub house type areas in the house type graph;
sequencing the plurality of house type graphs according to the comprehensive similarity to obtain a first sequencing result;
adjusting the house type graphs of which the third similarity is smaller than a second preset threshold value in the second house type graph and the third house type graph to the last position in the first sequencing result to obtain a second sequencing result;
and taking the house type graph with the top N bits in the second sorting result as a recommended house type graph.
6. The method of claim 4, wherein the first topological relationship of the initial user-type graph comprises a matrix M with a dimension of n \3 1 Wherein:
Figure 396206DEST_PATH_IMAGE001
wherein n represents the number of a plurality of sub-house type areas in the initial house type graph, and m represents the number of data types in the first reference information; a is a xy Data of a y-th type in first reference information representing the x-th sub-house type area in the initial house type diagram relative to the house type entrance in the initial house type diagram, wherein n and m are positive integers which are more than 1, x is equal to 1, 2, 3, \8230, n-1, n, and y is equal to 1, 2, 3, \8230, m-1, m; the matrix A 1 、A 2 、…、A n-1 、A n Respectively being said matrix M 1 The row matrix is used for representing first reference information of an x-th sub-house type area in the initial house type graph relative to a house type entrance in the initial house type graph;
the second topological relation of the initial user type graph comprises a matrix M with the dimension p \1093q 2 Wherein:
Figure 620383DEST_PATH_IMAGE002
wherein p represents the number of a plurality of sub-house type region entries in the initial house type graph, and q represents the number of data types in the second reference information; b is ij Representing jth data in second reference information of an ith sub-house type area entrance in the initial house type graph relative to the house type entrance in the initial house type graph, wherein p and q are positive integers, i is equal to 1, 2, 3, \ 8230;, b,p-1, p, said j being equal to 1, 2, 3, \ 8230;, q-1, q; the matrix B 1 、B 2 、…、B p-1 、B p Respectively being said matrix M 2 The row matrix is used for representing second reference information of the ith sub-subscriber zone entrance in the initial subscriber graph relative to the subscriber entrance in the initial subscriber graph.
7. The method of claim 6,
comparing the first topological relation corresponding to each house type graph with the first topological relation of the initial house type graph respectively to obtain a first similarity between each house type graph and the initial house type graph, including:
calculating cosine similarity between a matrix in the first topological relation of the initial house type graph and a matrix in the first topological relation of the first house type graph to obtain a first cosine matrix, wherein the first cosine matrix is used for representing the first similarity between each house type graph and the initial house type graph, and the first house type graph is any one of the house type graphs;
comparing the second topological relation corresponding to each house type graph with the second topological relation of the initial house type graph respectively to obtain a second similarity between each house type graph and the initial house type graph, including:
and calculating cosine similarity of a matrix in the second topological relation of the initial house type graph and a matrix in the second topological relation of the first house type graph to obtain a second cosine matrix, wherein the second cosine matrix is used for representing the second similarity of each house type graph and the initial house type graph.
8. A house-type designing apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring an initial house type diagram, and the initial house type diagram comprises a house type entrance, a plurality of sub house type areas and a plurality of sub house type area entrances;
a determining unit, configured to determine a first topological relation and a second topological relation of the initial house type graph, where the first topological relation of the initial house type graph includes first reference information of multiple sub-house type areas in the initial house type graph, respectively, relative to a house type entrance in the initial house type graph, the second topological relation of the initial house type graph includes second reference information of multiple sub-house type area entrances in the initial house type graph, respectively, relative to a house type entrance in the initial house type graph, the first reference information includes one or more of a distance, a position, and a direction, and the second reference information includes one or more of a distance, a position, and a direction;
a matching unit, configured to match a recommended house type graph similar to the initial house type graph from a house type library according to a first topological relation and a second topological relation of the initial house type graph, where the house type library includes a plurality of house type graphs, and each of the plurality of house type graphs has a first topological relation and a second topological relation corresponding thereto;
and the output unit is used for outputting the recommended user pattern diagram.
9. A house-layout device comprising a processor, a memory, a communication interface, wherein the communication interface is adapted to perform receiving and/or transmitting operations under the control of the processor, the memory is adapted to store a computer program, and the processor is adapted to invoke the computer program to implement the method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when run on a processor, implements the method of any one of claims 1-7.
CN202211201335.0A 2022-09-29 2022-09-29 House type design method and related device Active CN115292793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211201335.0A CN115292793B (en) 2022-09-29 2022-09-29 House type design method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211201335.0A CN115292793B (en) 2022-09-29 2022-09-29 House type design method and related device

Publications (2)

Publication Number Publication Date
CN115292793A true CN115292793A (en) 2022-11-04
CN115292793B CN115292793B (en) 2023-04-07

Family

ID=83834830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211201335.0A Active CN115292793B (en) 2022-09-29 2022-09-29 House type design method and related device

Country Status (1)

Country Link
CN (1) CN115292793B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544605A (en) * 2022-11-25 2022-12-30 深圳小库科技有限公司 Method for generating building space, cloud platform and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330209A (en) * 2017-07-06 2017-11-07 常州赞云软件科技有限公司 A kind of moulding wall intelligent template implementation method based on Parametric designing
CN111339336A (en) * 2020-03-11 2020-06-26 贝壳技术有限公司 Analysis method and system for house type data
CN111382805A (en) * 2020-04-02 2020-07-07 贝壳技术有限公司 Method, electronic device, and medium for processing house type vector data of house
US20200242799A1 (en) * 2019-01-25 2020-07-30 Social Construct Company Systems and methods for automating installation of prefabricated parts using projected installation graphics
CN111753112A (en) * 2020-06-04 2020-10-09 贝壳技术有限公司 Information generation method and device and storage medium
CN111914318A (en) * 2020-06-05 2020-11-10 深圳小库科技有限公司 Method and device for automatically generating building elevation map
CN113987667A (en) * 2021-12-29 2022-01-28 深圳小库科技有限公司 Building layout grade determining method and device, electronic equipment and storage medium
CN114359506A (en) * 2021-12-23 2022-04-15 贝壳找房网(北京)信息技术有限公司 Method and device for comparing house types and analyzing house type comparison results
CN114911966A (en) * 2022-05-11 2022-08-16 北京有竹居网络技术有限公司 Method, apparatus, device and storage medium for house type data processing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330209A (en) * 2017-07-06 2017-11-07 常州赞云软件科技有限公司 A kind of moulding wall intelligent template implementation method based on Parametric designing
US20200242799A1 (en) * 2019-01-25 2020-07-30 Social Construct Company Systems and methods for automating installation of prefabricated parts using projected installation graphics
CN111339336A (en) * 2020-03-11 2020-06-26 贝壳技术有限公司 Analysis method and system for house type data
CN111382805A (en) * 2020-04-02 2020-07-07 贝壳技术有限公司 Method, electronic device, and medium for processing house type vector data of house
CN111753112A (en) * 2020-06-04 2020-10-09 贝壳技术有限公司 Information generation method and device and storage medium
CN111914318A (en) * 2020-06-05 2020-11-10 深圳小库科技有限公司 Method and device for automatically generating building elevation map
CN114359506A (en) * 2021-12-23 2022-04-15 贝壳找房网(北京)信息技术有限公司 Method and device for comparing house types and analyzing house type comparison results
CN113987667A (en) * 2021-12-29 2022-01-28 深圳小库科技有限公司 Building layout grade determining method and device, electronic equipment and storage medium
CN114911966A (en) * 2022-05-11 2022-08-16 北京有竹居网络技术有限公司 Method, apparatus, device and storage medium for house type data processing

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DANIEL: A DEEP ARCHITECTURE FOR AUTOMATIC ANALYSIS AND RETRIEVAL: "Divya Sharma等", 《网页在线公开:HTTPS://IEEEXPLORE.IEEE.ORG/STAMP/STAMP.JSP?TP=&ARNUMBER=8270007》 *
周明骏等: "家居设计系统中基于辅助射线的房间搜索算法", 《计算机工程与应用》 *
郑祺等: "文化生态理念下的城市小户型住宅设计研究", 《工艺美术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544605A (en) * 2022-11-25 2022-12-30 深圳小库科技有限公司 Method for generating building space, cloud platform and computer-readable storage medium

Also Published As

Publication number Publication date
CN115292793B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN112148932B (en) Visualization method, system, computer device and storage medium
CN111105473B (en) Two-dimensional house-type graph construction method and device and storage medium
CN112434188B (en) Data integration method, device and storage medium of heterogeneous database
CN115292793B (en) House type design method and related device
CN111145294A (en) Two-dimensional house type graph construction method and device and storage medium
US20160232420A1 (en) Method and apparatus for processing signal data
US20240028808A1 (en) Method and device for chip layout, computer equipment and medium
CN114792355B (en) Virtual image generation method and device, electronic equipment and storage medium
CN112985413A (en) Scenic spot path planning method and device based on improved A-x algorithm
CN112652036A (en) Road data processing method, device, equipment and storage medium
CN114239198B (en) Power grid subgraph division method and device based on parallel optimization
CN107507255B (en) Picture compression quality factor obtaining method, system, equipment and storage medium
CN114565916A (en) Target detection model training method, target detection method and electronic equipment
CN110717405B (en) Face feature point positioning method, device, medium and electronic equipment
CN114998433A (en) Pose calculation method and device, storage medium and electronic equipment
CN108596120A (en) A kind of object detection method and device based on deep learning
CN115457202B (en) Method, device and storage medium for updating three-dimensional model
CN116681857A (en) Space collision detection method and device and electronic equipment
WO2023093070A1 (en) Intelligent city network resource-oriented correlation analysis method and device
WO2020000768A1 (en) Real estate appraisal method and apparatus, computer device and computer readable storage medium
CN114254467B (en) Method for generating power grid ring network graph
CN115511701A (en) Method and device for converting geographic information
CN113704309B (en) Graph data processing method, device, computer equipment and storage medium
CN115859431A (en) Linkage method, device and equipment of three-dimensional building model and two-dimensional drawing
CN109391947A (en) A kind of network node dispositions method and device

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
GR01 Patent grant
GR01 Patent grant