House type vector diagram processing method and electronic equipment

By optimizing and adjusting the wall lines and vertices of the initial floor vector diagram of the target house and globally optimizing the problem that the floor vector diagram in the prior art is susceptible to noise interference, and a cleaner, clearer and more accurate floor vector diagram is achieved.

CN120070235AActive Publication Date: 2025-05-30REALSEE (BEIJING) TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510134138.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-06
Publication Date
2025-05-30
Estimated Expiration
2045-02-06

AI Technical Summary

Technical Problem

The prior art is prone to noise interference when extracting wall structures from point clouds in indoor scenes and calculating floor vector diagrams, resulting in fine and unnecessary details. Common processing methods such as removing collinear vertices and merging similar vertices, the processing results are not clean and tidy enough, which may cause distortion of floor plans.

Method used

A method for processing a floor vector diagram is provided, including receiving the initial floor vector diagram of the target house, optimizing and adjusting the wall lines and vertices based on the diagram, obtaining the second floor vector diagram, and then globally optimizing the second floor vector diagram according to the preset global optimization algorithm to obtain the third floor vector diagram. This method reduces noise interference by combining wall lines and vertices that meet preset conditions, and corrects possible distortions through global optimization to obtain a cleaner, cleaner and accurate floor plan vector diagram.

Benefits of technology

Through optimization and adjustment and global optimization, noise interference in the floor vector diagram is effectively reduced, unnecessary details are removed, the clarity and accuracy of the diagram are improved, and the structure of the floor diagram is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120070235A_ABST
    Figure CN120070235A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a processing method of a house type vector diagram and electronic equipment, on the basis of an initial house type vector diagram of a target house, wall lines and vertexes are optimized and adjusted, noise interference of some unnecessary wall lines, vertexes and the like is reduced, unnecessary details are removed, the obtained house type vector diagram does not appear to be fine any more, and the processing efficiency of the house type vector diagram is improved. And further performing global optimization on the house type vector diagram subjected to wall line and vertex optimization through a preset global optimization algorithm, thereby reducing distortion of the house type vector diagram caused by wall line and vertex optimization, more truly restoring the real position of the wall surface of the target house, realizing regular simplification and optimization of the structure of the house type vector diagram, and improving the user experience. And a house type vector diagram which is clean, tidy, clear and accurate in structure is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to three-dimensional reconstruction technology and point cloud processing technology, and in particular to a method for processing a vector floor plan and an electronic device. Background Art

[0002] Extracting the wall structure from the point cloud of an indoor scene and then calculating the vector floor plan of the house is a common method for automatically calculating the floor plan. This method is widely used in architectural design and construction, and can help designers and engineers more intuitively understand the building structure, improving design efficiency and accuracy. However, due to the influence of noise interference and the like, the directly obtained calculation results are often relatively fragmented and there are unwanted details, such as Figure 1 shown.

[0003] In the related art, for the noise interference in the vector floor plan, the common processing methods are generally limited to removing collinear vertices, merging similar vertices, etc. However, on the one hand, the processing results are often not clean and tidy enough, and on the other hand, it may cause distortion of the floor plan. Summary of the Invention

[0004] To solve the technical problems in the related art, embodiments of the present disclosure provide a method for processing a vector floor plan and an electronic device.

[0005] According to a first aspect of the embodiments of the present disclosure, embodiments of the present disclosure provide a method for processing a vector floor plan, the method comprising:

[0006] Receiving a first vector floor plan of a target house;

[0007] Based on the first vector floor plan of the target house, respectively optimizing and adjusting the wall lines and vertices in the first vector floor plan to obtain a second vector floor plan;

[0008] Performing global optimization on the second vector floor plan according to a preset global optimization algorithm to obtain a third vector floor plan of the target house;

[0009] Outputting the third vector floor plan of the target house.

[0010] As an optional embodiment of the present disclosure, the based on the first vector floor plan of the target house, respectively optimizing and adjusting the wall lines and vertices in the first vector floor plan to obtain a second vector floor plan, includes:

[0011] Traversing each wall line in the first vector floor plan to determine whether any first wall line and a second wall line adjacent thereto satisfy a first preset merging condition;

[0012] When it is determined that the first wall line and the second wall line meet the first preset merging condition, the first wall line and the second wall line are merged to obtain a merged wall line;

[0013] Traverse each vertex in the first house type vector diagram to determine whether any first vertex and its adjacent second vertex meet the second preset merging condition;

[0014] When it is determined that the first vertex and the second vertex meet the second preset merging condition, the first vertex and the second vertex are merged to obtain a merged vertex;

[0015] The second house type vector diagram is obtained based on all the merged wall lines and the merged vertices.

[0016] As an optional embodiment of the present disclosure, the traversing each wall line in the first house type vector diagram to determine whether any first wall line and its adjacent second wall line meet the first preset merging condition includes:

[0017] Traverse each wall line in the first house type vector diagram to determine whether any first wall line and its adjacent second wall line form an angle;

[0018] When an angle is formed, determine whether the angle between the first wall line and the second wall line meets the first angle threshold;

[0019] When it is determined that the angle meets the first angle threshold, determine whether the first wall line and the second wall line have a common endpoint;

[0020] When there is a common endpoint, determine that the first wall line and the second wall line meet the first preset merging condition.

[0021] As an optional embodiment of the present disclosure, the traversing each wall line in the first house type vector diagram to determine whether any first wall line and its adjacent second wall line meet the first preset merging condition further includes:

[0022] When the first wall line and the second wall line do not have a common endpoint, determine whether the distance between the two adjacent endpoints of the first wall line and the second wall line meets the first distance threshold;

[0023] When it is determined that the distance meets the first distance threshold, determine that the first wall line and the second wall line meet the first preset merging condition.

[0024] As an alternative embodiment of the present disclosure, when it is determined that the first wall line and the second wall line meet the first preset merging condition, merging the first wall line and the second wall line to obtain a merged wall line includes:

[0025] When it is determined that the first wall line and the second wall line meet the first preset merging condition, connecting the first endpoint of the first wall line and the second endpoint of the second wall line to obtain the merged wall line.

[0026] As an alternative embodiment of the present disclosure, traversing each vertex in the first floor plan vector diagram to determine whether any first vertex and its adjacent second vertex meet the second preset merging condition includes:

[0027] Traversing each vertex in the first floor plan vector diagram to determine whether the distance between the first vertex and the second vertex meets a second distance threshold;

[0028] When it is determined that the distance between the first vertex and the second vertex meets the second distance threshold, determining that the first vertex and the second vertex meet the second preset merging condition.

[0029] As an alternative embodiment of the present disclosure, traversing each vertex in the first floor plan vector diagram to determine whether any first vertex and its adjacent second vertex meet the second preset merging condition further includes:

[0030] After merging the first wall line and the second wall line to obtain a merged wall line when it is determined that the first wall line and the second wall line meet the first preset merging condition, obtaining the point cloud data information of the target house;

[0031] Based on the point cloud data information, determining the door frame endpoints of the target house in the first floor plan vector diagram;

[0032] Traversing each vertex in the first floor plan vector diagram to determine the door frame endpoints from all the vertices;

[0033] Determining whether the distance between the first vertex and the second vertex other than the door frame endpoints meets the second distance threshold;

[0034] When it is determined that the distance between the first vertex and the second vertex meets the second distance threshold, determining that the first vertex and the second vertex meet the second preset merging condition.

[0035] As an alternative embodiment of the present disclosure, determining the door frame endpoints of the target house in the first floor plan vector diagram based on the point cloud data information includes:

[0036] Determine the doorframe plane of the target house based on the point cloud data information;

[0037] Perform coordinate transformation on the doorframe plane of the target house to obtain a doorframe line segment;

[0038] Match the doorframe line segment to the target wall line of the first house type vector diagram to obtain the doorframe endpoints on the target wall line, where the target wall line is the wall line in the merged wall lines that is matched by the doorframe endpoints.

[0039] As an alternative embodiment of the present disclosure, the step of, in the case of determining that the first vertex and the second vertex satisfy the second preset merging condition, performing a merging process on the first vertex and the second vertex to obtain a merged vertex includes:

[0040] In the case of determining that the first vertex and the second vertex satisfy the second preset merging condition, merge the first vertex to the second vertex to obtain the merged vertex.

[0041] As an alternative embodiment of the present disclosure, the step of globally optimizing the second house type vector diagram according to a preset global optimization algorithm to obtain the third house type vector diagram of the target house includes:

[0042] Obtain the point cloud data information of the target house;

[0043] Perform coordinate transformation on the point cloud data information of the target house to obtain all the third wall lines of the target house;

[0044] Determine the target wall line that matches any one of the fourth wall lines in the second house type vector diagram from all the third wall lines;

[0045] Use a preset point cloud plane two-dimensional straight line equation to constrain the direction of the fourth wall line so that the direction of the fourth wall line is consistent with the direction of the target wall line that matches it;

[0046] Obtain the third house type vector diagram of the target house based on all the fourth wall lines after the direction is constrained.

[0047] As an alternative embodiment of the present disclosure, the step of globally optimizing the second house type vector diagram according to a preset global optimization algorithm to obtain the third house type vector diagram of the target house further includes:

[0048] Based on any one of the fourth wall lines in the second house type vector diagram, determine whether any one of the included angles between the fourth wall line and the first coordinate axis and the second coordinate axis in a preset two-dimensional coordinate system satisfies a second included angle threshold, where the first coordinate axis and the second coordinate axis are perpendicular to each other;

[0049] When it is determined that the included angle between the fourth wall line and the first coordinate axis or the second coordinate axis satisfies the second included angle threshold, adjust the coordinate direction of the fourth wall line to obtain a corresponding fifth wall line, so that the coordinate direction of the fifth wall line is consistent with the coordinate direction of the first coordinate axis or the second coordinate axis;

[0050] Judge whether the included angle between the fifth wall line and the adjacent sixth wall line satisfies the third included angle threshold;

[0051] When it is determined that the included angle between the fifth wall line and the adjacent sixth wall line satisfies the third included angle threshold, adjust the coordinate direction of the sixth wall line to obtain a seventh wall line, so that the seventh wall line is perpendicular to the fifth wall line;

[0052] Based on all the fifth wall lines and the seventh wall lines, obtain the third house type vector diagram of the target house.

[0053] As an optional embodiment of the present disclosure, the globally optimizing the second house type vector diagram according to a preset global optimization algorithm to obtain the third house type vector diagram of the target house further includes:

[0054] Based on any fourth wall line in the second house type vector diagram, judge whether the included angle between the fourth wall line and the eighth wall line satisfies the fourth included angle threshold, and the eighth wall line is an adjacent wall line of the fourth wall line;

[0055] When the included angle between the fourth wall line and the eighth wall line satisfies the fourth included angle threshold, add a first penalty term to the included angle between the fourth wall line and the eighth wall line through a preset regularization algorithm;

[0056] When adjusting the coordinate direction of the sixth wall line to obtain a seventh wall line so that the seventh wall line is perpendicular to the fifth wall line, judge whether the coordinate distance moved by any endpoint of the sixth wall line satisfies the third distance threshold when adjusting the coordinate direction of the sixth wall line;

[0057] When the third distance threshold is satisfied, add a second penalty term to the coordinate distance moved by this endpoint of the sixth wall line through the preset regularization algorithm;

[0058] Based on the first penalty term, the second penalty term and the other wall lines in the second house type vector diagram except the added penalty terms, obtain the third house type vector diagram.

[0059] According to the second aspect of the embodiments of the present disclosure, embodiments of the present disclosure provide a processing device for a house type vector diagram, and the device includes:

[0060] A vector diagram receiving module, configured to receive a first house type vector diagram of a target house;

[0061] An optimization and adjustment module, configured to optimize and adjust the wall lines and vertices in the first floor plan vector map of the target house respectively based on the first floor plan vector map, so as to obtain a second floor plan vector map;

[0062] A global optimization module, configured to globally optimize the second floor plan vector map according to a preset global optimization algorithm to obtain a third floor plan vector map of the target house;

[0063] An output module, configured to output the third floor plan vector map of the target house.

[0064] As an optional embodiment of the present disclosure, the optimization and adjustment module includes:

[0065] A wall line traversal unit, configured to traverse each wall line in the first floor plan vector map to determine whether any first wall line and its adjacent second wall line meet a first preset merging condition;

[0066] A wall line merging unit, configured to merge the first wall line and the second wall line when it is determined that the first wall line and the second wall line meet the first preset merging condition, so as to obtain a merged wall line;

[0067] A vertex traversal unit, configured to traverse each vertex in the first floor plan vector map to determine whether any first vertex and its adjacent second vertex meet a second preset merging condition;

[0068] A vertex merging unit, configured to merge the first vertex and the second vertex when it is determined that the first vertex and the second vertex meet the second preset merging condition, so as to obtain a merged vertex;

[0069] A vector map determination unit, configured to obtain the second floor plan vector map based on all the merged wall lines and the merged vertices.

[0070] As an optional embodiment of the present disclosure, the wall line traversal unit includes:

[0071] A first judgment subunit, configured to traverse each wall line in the first floor plan vector map and judge whether any first wall line and its adjacent second wall line form an angle;

[0072] A second judgment subunit, configured to judge whether the angle between the first wall line and the second wall line meets a first angle threshold when an angle is formed;

[0073] A third judgment subunit, configured to judge whether the first wall line and the second wall line have a common end point when it is determined that the angle meets the first angle threshold;

[0074] A first determination subunit, configured to determine that the first wall line and the second wall line meet a first preset merging condition when they have a common end point.

[0075] As an optional embodiment of the present disclosure, the wall line traversing unit further includes:

[0076] A fourth judgment subunit, configured to judge whether the distance between two adjacent end points of the first wall line and the second wall line meets a first distance threshold when the first wall line and the second wall line do not have a common end point;

[0077] A second determination subunit, configured to determine that the first wall line and the second wall line meet the first preset merging condition when it is determined that the distance meets the first distance threshold.

[0078] As an optional embodiment of the present disclosure, the wall line merging unit includes:

[0079] A wall line end point connection subunit, configured to connect a first end point of the first wall line and a second end point of the second wall line to obtain the merged wall line when it is determined that the first wall line and the second wall line meet the first preset merging condition.

[0080] As an optional embodiment of the present disclosure, the vertex traversing unit includes:

[0081] A fifth judgment subunit, configured to traverse each vertex in the first house type vector diagram and judge whether the distance between the first vertex and the second vertex meets a second distance threshold;

[0082] A third determination subunit, configured to determine that the first vertex and the second vertex meet a second preset merging condition when it is determined that the distance between the first vertex and the second vertex meets the second distance threshold.

[0083] As an optional embodiment of the present disclosure, the vertex traversing unit further includes:

[0084] A point cloud acquisition subunit, configured to acquire point cloud data information of the target house after merging the first wall line and the second wall line to obtain a merged wall line when it is determined that the first wall line and the second wall line meet the first preset merging condition;

[0085] A first door frame end point determination subunit, configured to determine door frame end points of the door frame of the target house in the first house type vector diagram based on the point cloud data information;

[0086] The second doorframe endpoint determination subunit is configured to traverse each vertex in the first house type vector diagram and determine doorframe endpoints from all the vertices;

[0087] The sixth determination subunit is configured to determine whether the distance between a first vertex and a second vertex other than the doorframe endpoints satisfies a second distance threshold;

[0088] The fourth determination subunit is configured to determine that the first vertex and the second vertex satisfy a second preset merging condition when it is determined that the distance between the first vertex and the second vertex satisfies the second distance threshold.

[0089] As an optional embodiment of the present disclosure, the first doorframe endpoint determination subunit is further configured to:

[0090] Determine the doorframe plane of the target house based on the point cloud data information;

[0091] Perform coordinate transformation on the doorframe plane of the target house to obtain a doorframe line segment;

[0092] Match the doorframe line segment to the target wall line in the first house type vector diagram to obtain the doorframe endpoints on the target wall line, where the target wall line is the wall line in the merged wall lines that is matched by the doorframe endpoints.

[0093] As an optional embodiment of the present disclosure, the vertex merging unit includes:

[0094] The vertex merging subunit is configured to merge the first vertex to the second vertex to obtain the merged vertex when it is determined that the first vertex and the second vertex satisfy the second preset merging condition.

[0095] As an optional embodiment of the present disclosure, the global optimization module includes:

[0096] The data acquisition unit is configured to acquire the point cloud data information of the target house;

[0097] The coordinate transformation unit is configured to perform coordinate transformation on the point cloud data information of the target house to obtain all the third wall lines of the target house;

[0098] The wall line matching unit is configured to determine a target wall line that matches any fourth wall line in the second house type vector diagram from all the third wall lines;

[0099] The wall line direction constraint unit is configured to constrain the direction of the fourth wall line by using a preset point cloud plane two-dimensional straight line equation so that the direction of the fourth wall line is consistent with the direction of the target wall line that matches it;

[0100] The first vector diagram determination unit is configured to obtain the third house type vector diagram of the target house based on all the fourth wall lines after the direction is constrained.

[0101] As an optional embodiment of the present disclosure, the global optimization module further includes:

[0102] The first included angle condition judgment unit is configured to, based on any one of the fourth wall lines in the second house type vector diagram, judge whether any one of the included angles between the fourth wall line and the first coordinate axis and the second coordinate axis in a preset two-dimensional coordinate system satisfies a second included angle threshold, where the first coordinate axis and the second coordinate axis are perpendicular to each other;

[0103] The first wall line direction adjustment unit is configured to, when it is determined that the included angle between the fourth wall line and the first coordinate axis or the second coordinate axis satisfies the second included angle threshold, adjust the coordinate direction of the fourth wall line to obtain a corresponding fifth wall line, so that the coordinate direction of the fifth wall line is consistent with the coordinate direction of the first coordinate axis or the second coordinate axis;

[0104] The second included angle condition judgment unit is configured to judge whether the included angle between the fifth wall line and the adjacent sixth wall line satisfies a third included angle threshold;

[0105] The second wall line direction adjustment unit is configured to, when it is determined that the included angle between the fifth wall line and the adjacent sixth wall line satisfies the third included angle threshold, adjust the coordinate direction of the sixth wall line to obtain a seventh wall line, so that the seventh wall line is perpendicular to the fifth wall line;

[0106] The second vector diagram determination unit is configured to obtain the third house type vector diagram of the target house based on all the fifth wall lines and the seventh wall lines.

[0107] As an optional embodiment of the present disclosure, the global optimization module further includes:

[0108] The third included angle condition judgment unit is configured to, based on any one of the fourth wall lines in the second house type vector diagram, judge whether the included angle between the fourth wall line and the eighth wall line satisfies a fourth included angle threshold, where the eighth wall line is an adjacent wall line of the fourth wall line;

[0109] The first penalty unit is configured to, when the included angle between the fourth wall line and the eighth wall line satisfies the fourth included angle threshold, add a first penalty term to the included angle between the fourth wall line and the eighth wall line through a preset regularization algorithm;

[0110] A distance condition judgment unit is configured to, when obtaining a seventh wall line by adjusting the coordinate direction of the sixth wall line such that the seventh wall line is perpendicular to the fifth wall line, judge whether the coordinate distance moved by any endpoint of the sixth wall line satisfies a third distance threshold when adjusting the coordinate direction of the sixth wall line;

[0111] A second penalty unit is configured to, when the third distance threshold is satisfied, add a second penalty term to the coordinate distance moved by this endpoint of the sixth wall line through the preset regular algorithm;

[0112] A third vector diagram determination unit is configured to obtain the third house type vector diagram based on the first penalty term, the second penalty term, and other wall lines in the second house type vector diagram except for the added penalty term.

[0113] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:

[0114] A memory for storing a computer program product;

[0115] A processor for executing the computer program product stored in the memory, and when the computer program product is executed, implementing the method described in the first aspect above.

[0116] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implementing the method described in the first aspect above.

[0117] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, including computer program instructions, and when the computer program instructions are executed by a processor, implementing the method described in the first aspect above.

[0118] Through the technical solution of the embodiments of the present disclosure, based on the initial house type vector diagram of the target house, through the optimized adjustment of wall lines and vertices, some unnecessary wall lines, vertices, etc. are reduced to noise interference, unnecessary details are removed, so that the obtained house type vector diagram no longer appears fragmented. Then, through the preset global optimization algorithm, the house type vector diagram after the optimization of wall lines and vertices is further globally optimized, reducing the distortion of the house type vector diagram caused by the optimization of wall lines and vertices, more truly restoring the real position of the walls of the target house, realizing the regularization, simplification and optimization of the structure of the house type vector diagram, and obtaining a clean, tidy, clearly structured and accurate house type vector diagram.

[0119] The technical solution of the present disclosure will be further described in detail below with reference to the drawings and embodiments. Description of the Drawings

[0120] The accompanying drawings, which form a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0121] Referring to the accompanying drawings, the present disclosure can be more clearly understood from the following detailed description, wherein:

[0122] Figure 1 It is a floor plan vector diagram infected by noise in the related art.

[0123] Figure 2 It is one of the flowcharts of a method for processing a floor plan vector diagram according to an embodiment of the method of the present disclosure.

[0124] Figure 3 It is the second flowchart of a method for processing a floor plan vector diagram according to an embodiment of the method of the present disclosure.

[0125] Figure 4 It is the third flowchart of a method for processing a floor plan vector diagram according to an embodiment of the method of the present disclosure.

[0126] Figure 5 It is one of the example diagrams of wall line merging according to an embodiment of the method of the present disclosure.

[0127] Figure 6 It is the second example diagram of wall line merging according to an embodiment of the method of the present disclosure.

[0128] Figure 7 It is the third example diagram of wall line merging according to an embodiment of the method of the present disclosure.

[0129] Figure 8 It is the fourth flowchart of a method for processing a floor plan vector diagram according to an embodiment of the method of the present disclosure.

[0130] Figure 9 It is an example diagram of vertex merging according to an embodiment of the method of the present disclosure.

[0131] Figure 10 It is the fifth flowchart of a method for processing a floor plan vector diagram according to an embodiment of the method of the present disclosure.

[0132] Figure 11 It is a schematic diagram of the door frame endpoints according to an embodiment of the method of the present disclosure.

[0133] Figure 12 It is the sixth flowchart of a method for processing a floor plan vector diagram according to an embodiment of the method of the present disclosure.

[0134] Figure 13 It is an example diagram of global optimization based on point cloud data information according to an embodiment of the method of the present disclosure.

[0135] Figure 14An example diagram of the final floor plan example obtained in an embodiment of the method of the present disclosure.

[0136] Figure 15 One of the structural block diagrams of a processing device for a floor plan vector diagram in an embodiment of the device of the present disclosure.

[0137] Figure 16 Another structural block diagram of a processing device for a floor plan vector diagram in an embodiment of the device of the present disclosure.

[0138] Figure 17 The structural block diagram of an electronic device in an embodiment of the method of the present disclosure. Detailed implementation manners

[0139] To solve the technical problems in the related art, embodiments of the present disclosure provide a method for processing a floor plan vector diagram and an electronic device. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and embodiments.

[0140] Figure 2 One of the flowcharts of a method for processing a floor plan vector diagram in an embodiment of the method of the present disclosure. As Figure 2 shown, a method for processing a floor plan vector diagram in an embodiment of the present disclosure may include the following steps:

[0141] Step 201, receive a first floor plan vector diagram of a target house.

[0142] A floor plan vector diagram is a floor plan of a house drawn using vector graphics technology, mainly used to display the structure, layout, and spatial distribution of the house, and can clearly show every detail of the house to help users better understand the structure and layout of the house. In the embodiments of the present disclosure, the first floor plan vector diagram may be obtained based on the point cloud data information of the target house or drawn manually. In the present disclosure, the first floor plan vector diagram input by the user can be received through an input device.

[0143] Step 202, optimize and adjust the wall lines and vertices in the first floor plan vector diagram based on the first floor plan vector diagram of the target house to obtain a second floor plan vector diagram.

[0144] As the initial floor plan to be processed, the first floor plan vector diagram may have problems such as graphic distortion and relatively fragmented detail division. For example, the wall lines are not horizontal and vertical, there are some unnecessary line segments or angles between the wall lines, and the distance between the vertices is relatively close, resulting in noise wall lines, etc.

[0145] In this step, for problems such as graphic distortion and overly fragmented detail division, the main component structures (wall lines and vertices) of the apartment vector map are optimized and adjusted. For example, the wall lines and vertices that meet the conditions are merged, deleted, etc., and the apartment vector map obtained after processing is defined as the second apartment vector map.

[0146] Step 203: Perform global optimization on the second apartment vector map according to a preset global optimization algorithm to obtain the third apartment vector map of the target house.

[0147] In the previous step, only the main component structures of the apartment vector map such as wall lines and vertices were optimized and adjusted. Since the processing was only carried out through, for example, merging conditions, etc., in order to, for example, merge wall lines and vertices, the positions of the wall lines or vertices may be forcibly changed, which may also lead to distortion problems in the obtained second apartment vector map. Based on this, in the embodiments of the present disclosure, a preset global optimization algorithm is used to further perform global optimization on the second apartment vector map, that is, to further optimize and process the wall lines, vertices, etc. in the second apartment vector map. For example, prior knowledge (such as the room Manhattan hypothesis), constraints based on point cloud planes, etc. are used for secondary optimization processing to obtain the third apartment vector map, so that the wall lines, vertices, etc. in the third apartment vector map are more in line with the actual situation and can more clearly and accurately display the structure, layout, and spatial distribution of the house.

[0148] Step 204: Output the third apartment vector map of the target house.

[0149] In the embodiments of the present disclosure, the third apartment vector map can be output through an output device or a display device. The output device can output the third apartment vector map in, for example, word, PDF, picture format, etc. for users to view, display, or share. The display device can be, for example, a monitor, etc., to display the third apartment vector map on the monitor for users to view.

[0150] In Figure 2 Based on the shown embodiments, the embodiments of the present disclosure also provide another feasible embodiment. Figure 3 This is the second flowchart of a processing method for an apartment vector map according to an embodiment of the method of the present disclosure. As Figure 3 shown, the processing method for an apartment vector map according to the embodiments of the present disclosure may include the following steps:

[0151] Step 201: Receive the first apartment vector map of the target house.

[0152] Specifically, refer to Figure 2 the relevant description of step 201 shown. For the sake of brevity, it will not be repeated here.

[0153] In step 2021, traverse each wall line in the first floor plan vector diagram to determine whether any first wall line and the second wall line adjacent to it meet the first preset merging condition.

[0154] Wall lines are one of the main structural components of a floor plan vector diagram. If the wall lines are irregular and there is a lot of noise interference, it is very difficult to truly restore the real position of the wall surface of the target house, and the structure of the obtained floor plan vector diagram may be inaccurate. In the embodiments of the present disclosure, noise interference of various wall lines can be processed to obtain more regular wall lines that can truly restore the wall surface.

[0155] Among them, the first preset merging condition is a threshold or range of the distance and angle between the first wall line and the second wall line preset based on prior knowledge. Based on this threshold or range, it is determined whether to merge the first wall line and the second wall line, so as to accurately remove the noise interference in the wall line and make the obtained wall line more regular.

[0156] Specifically, an optional embodiment is provided in the embodiments of the present disclosure to implement step 2021. Figure 4 It is the third flowchart of a processing method of a floor plan vector diagram according to an embodiment of the method of the present disclosure. Technical solutions of different embodiments are provided to implement the processing of irregular wall lines. As Figure 4 shown, step 2021 can also be implemented through the following steps:

[0157] Step 2021a, traverse each wall line in the first floor plan vector diagram to determine whether any first wall line and the second wall line adjacent to it form an angle.

[0158] The first floor plan vector diagram includes multiple wall lines, and each wall line may have adjacent wall lines. In this step, traverse each wall line in the first floor plan vector diagram, and then determine whether an angle is formed between this wall line and its adjacent wall line. Among them, the traversal order can be counterclockwise or clockwise, and the present disclosure does not limit this. According to the traversal direction, the wall line traversed first is defined as the first wall line, and the adjacent wall line is defined as the second wall line.

[0159] Among them, the angle formed between the first wall line and the second wall line can be a direct angle formed by the intersection of the first wall line and the second wall line through a common endpoint, or an indirect angle formed by the non-intersection of the first wall line and the second wall line but the two wall lines are not parallel.

[0160] Step 2021b, in the case of forming an angle, determine whether the angle between the first wall line and the second wall line meets the first angle threshold.

[0161] In the embodiments of the present disclosure, a first included angle threshold is used to determine whether the first wall line and the second wall line are collinear wall lines, that is, to determine whether the two wall lines are parallel wall lines or nearly parallel wall lines. As an embodiment, the first included angle threshold is, for example, a vector included angle. If the vector included angle is very small, for example, in the range of 0 degrees to 5 degrees, it can be determined that the first wall line and the second wall line are parallel or nearly parallel and meet the first included angle threshold. As another embodiment, the first included angle threshold is, for example, a geometric included angle. If the geometric included angle is close to 180°, for example, in the range of 180±5 degrees, it is determined that the first wall line and the second wall line are parallel or nearly parallel and meet the first included angle threshold.

[0162] Step 2021c, when it is determined that the included angle meets the first included angle threshold, determine whether the first wall line and the second wall line have a common end point.

[0163] Whether it is a vector included angle or a geometric included angle, as long as the included angle between the first wall line and the second wall line is within the corresponding set threshold range, the two wall lines can be determined as nearly parallel wall lines, that is, collinear wall lines. Then, further determine whether there is still a common end point between the two wall lines, for example, whether the two wall lines intersect through a common end point.

[0164] When there is a common end point, execute step 2021d; when there is no common end point, execute step 2021e.

[0165] Step 2021d, determine that the first wall line and the second wall line meet the first preset merging condition.

[0166] When there is a common end point and the included angle is within the first included angle threshold range, it can be determined that the first wall line and the second wall line meet the first preset merging condition, that is, the two wall lines can be subjected to wall line merging processing.

[0167] Step 2021e, determine whether the distance between the two adjacent end points of the first wall line and the second wall line meets the first distance threshold.

[0168] Due to noise interference, the distance between two adjacent wall lines is very close and also meets the included angle condition of collinear wall lines, but they may not have a common end point. For example, the adjacent end points of the first wall line and the second wall line are connected by a very short line segment (for example, 0-50 mm), or there is a small "protrusion" structure between the adjacent end points of the first wall line and the second wall line, resulting in the two wall lines not being directly connected.

[0169] For this, in the embodiments of the present disclosure, it is further determined whether the distance between the two adjacent end points of the first wall line and the second wall line meets the first distance threshold to determine whether it meets the first preset merging condition. Among them, the first distance threshold is, for example, between 0-50 mm (that is, 0 mm < distance ≤ 50 mm)

[0170] Step 2021f, when it is determined that the distance meets the first distance threshold, it is determined that the first wall line and the second wall line meet the first preset merging condition.

[0171] When it is determined that the distance between two adjacent endpoints of the first wall line and the second wall line is, for example, between 0 - 50 mm (i.e., 0 mm < distance ≤ 50 mm), it can be determined that the first wall line and the second wall line also meet the first preset merging condition, and wall line merging processing can be performed.

[0172] Step 2022, when it is determined that the first wall line and the second wall line meet the first preset merging condition, the first wall line and the second wall line are merged to obtain a merged wall line.

[0173] After it is determined through the relevant embodiments of the foregoing step 2021 that the first wall line and the second wall line meet the first preset merging condition, the first endpoint of the first wall line and the second endpoint of the second wall line can be connected, and finally the merged wall line of the first wall line and the second wall line is obtained.

[0174] As an embodiment, based on the embodiments provided in steps 2021a, 2021b, 2021c, and step 2021d, in the direction of wall line traversal, since there is a common endpoint (the end point of the first wall line and the starting point of the second wall line) between the first wall line and the second wall line, the first endpoint of the first wall line is determined as the starting point of the first wall line, and the second endpoint of the second wall line is determined as the end point of the second wall line. That is, the starting point of the first wall line is used as the starting point of the merged wall line, and the end point of the second wall line is used as the end point of the merged wall line. Then, the starting point and the end point of the merged wall line are connected to achieve the merging of the first wall line and the second wall line. After the merged wall line is obtained, the original first wall line and the second wall line can be deleted to avoid noise interference caused by the original first wall line and the second wall line, making the wall lines in the house type vector map more regular.

[0175] As another embodiment, based on the embodiments provided in steps 2021a, 2021b, 2021c, 2021e, and step 2021f, in the direction of traversing the wall lines, the first endpoint of the first wall line is determined as the end point of the first wall line, and the second endpoint of the second wall line is the starting point of the second wall line. If the vector angle between the first wall line and the second wall line is 0 degrees or the geometric angle is 180 degrees, the end point of the first wall line and the starting point of the second wall line can be directly connected to merge the first wall line and the second wall line. In this way, the length of the connecting line segment can be reduced, the overhead of computer processing resources can be reduced, and the processing speed can be increased. It can be understood that if the vector angle between the first wall line and the second wall line is only close to 0 degrees (e.g., 0±5 degrees) or the geometric angle is close to 180 degrees (e.g., 180±5 degrees), the first wall line and the second wall line are not completely parallel but only close to parallel. To make the merged wall line more regular, in the embodiments of the present disclosure, the starting point of the first wall line and the end point of the second wall line are still connected to merge the two wall lines.

[0176] The following provides an exemplary introduction to the merging of two wall lines in different situations with reference to the accompanying drawings.

[0177] Figure 5 This is one of the exemplary diagrams of wall line merging in an embodiment of the method of the present disclosure. As Figure 5 shown, for example, when traversing each wall line in the clockwise direction, when traversing the wall line AB as shown in Figure 5 , the adjacent wall line is the wall line BC. The angle α formed between the wall line AB and the wall line BC satisfies the first angle threshold. For example, the geometric angle α is close to 180 degrees, and the wall line AB and the wall line BC have a common endpoint B, meeting the first preset merging condition. The wall line AB and the wall line BC can be merged. For example, the A endpoint of the wall line AB and the C endpoint of the wall line BC are connected to merge the wall line AB and the wall line BC, obtaining the merged wall line AC.

[0178] Figure 6 This is another exemplary diagram of wall line merging in an embodiment of the method of the present disclosure. As Figure 6 shown, for example, still traversing each wall line in the clockwise direction, when traversing to Figure 6When it comes to the wall line AB in it, the adjacent wall line is wall line CD. The geometric angle formed between wall line AB and wall line CD is close to 180 degrees, that is, the two wall lines are close to parallel. However, there is no common endpoint between wall line AB and wall line CD. Instead, they are connected by a short line segment BC. Further, it is determined whether the distance between wall line AB and wall line CD meets the first distance threshold. For example, if it is less than 50 mm (such as the length of BC is less than 50 mm), then wall line AB and wall line CD meet the first preset merging condition, and wall line AB and wall line CD can be merged. For example, the endpoint A of wall line AB and the endpoint D of wall line CD are connected to achieve the merging of wall line AB and wall line CD, and the merged wall line AD is obtained.

[0179] Figure 7 This is the third example diagram of wall line merging in an embodiment of the method of the present disclosure. As Figure 7 shown, still traverse each wall line in the clockwise direction. Then, when traversing to the wall line AB as in Figure 7 it, the adjacent wall line is wall line CD, and the geometric angle between wall line AB and wall line CD is close to 180 degrees (i.e., close to parallel). However, there is no common endpoint between wall line AB and wall line CD. Instead, they are connected by a "protrusion" such as BEFC or BEC. In the embodiment of the present disclosure, if the distance between wall line AB and wall line CD is short (i.e., the "protrusion" such as BEFC or BEC is small), then the "protrusion" such as BEFC or BEC is determined as interference noise. Thus, by judging whether the distance between wall line AB and wall line CD meets the first distance threshold to determine whether it meets the first preset merging condition. If the first distance threshold is met, for example, within 50 mm, it can be determined that wall line AB and wall line CD meet the first preset merging condition and belong to collinear wall lines, and the two wall lines can be merged. If the geometric angle between wall line AB and wall line CD is 180 degrees (i.e., the two wall lines are parallel), then the merging of wall line AB and wall line CD can be achieved by connecting endpoint B and endpoint C. If the geometric angle between wall line AB and wall line CD is close to 180 degrees, then to ensure the regularity of the wall line (such as keeping horizontal or vertical), the merging of wall line AB and wall line CD can be achieved by connecting endpoint A and endpoint D, and the merged wall line AD is obtained.

[0180] Those skilled in the art can understand that in addition to wall lines in the house type vector diagram, there are also vertices formed by connecting the endpoints of the wall lines. If the vertices are too close, it will also cause the house type vector diagram to have too many details and be irregular. After completing the wall line merging process, the embodiment of the present disclosure further performs vertex merging processing. Refer to the relevant descriptions of the embodiments of step 2023 and step 2024 below.

[0181] In step 2023, traverse each vertex in the vector diagram of the first house type, and determine whether any first vertex and its adjacent second vertex meet the second preset merging condition.

[0182] In step 2024, when it is determined that the first vertex and the second vertex meet the second preset merging condition, merge the first vertex and the second vertex to obtain a merged vertex.

[0183] Through step 2023 and step 2024, that is, traverse each vertex in the vector diagram of the first house type in turn, and judge whether the vertex and its adjacent vertex meet the second preset merging condition. For example, whether the distance between two vertices is close enough (for example, 20 mm). If so, vertex merging can be performed.

[0184] Specifically, Figure 8 This is the fourth flowchart of the processing method of a vector diagram of a house type in an embodiment of the method of the present disclosure. As Figure 8 shown, steps 2023 and 2024 in the processing method of a vector diagram of a house type provided by the embodiment of the present disclosure can be specifically implemented as the following steps:

[0185] In step 2023a, traverse each vertex in the vector diagram of the first house type, and judge whether the distance between the first vertex and the second vertex meets the second distance threshold.

[0186] In step 2023b, when it is determined that the distance between the first vertex and the second vertex meets the second distance threshold, determine that the first vertex and the second vertex meet the second preset merging condition.

[0187] In the embodiment of the present disclosure, the second distance threshold may be, for example, (0, 20 mm], that is, 0 < distance ≤ 20 mm. If the distance between two adjacent vertices is within this threshold range, the distance is relatively close and the merging condition is met.

[0188] In step 2024a, when it is determined that the first vertex and the second vertex meet the second preset merging condition, merge the first vertex to the second vertex to obtain a merged vertex.

[0189] In the embodiment of the present disclosure, two vertices that meet the contract condition can be merged according to the traversal direction. Refer to Figure 9 the figure shown. For example. Figure 9 This is an example diagram of vertex merging in an embodiment of the method of the present disclosure. As Figure 9 shown, taking the clockwise traversal of vertices as an example, then Figure 9The order of traversing the middle vertices is A → B → C → D. When vertex A is traversed first, its adjacent vertex in the clockwise direction is B. Assuming the distance between them is greater than 20 mm, which does not meet the second distance threshold, then continue to traverse to vertex B. Its adjacent vertex in the clockwise direction is C. The distance between vertex B and vertex C is within the range of (0, 20 mm], so it meets the second distance threshold and conforms to the second preset merging condition, and merging can be performed. Vertex B can be merged into vertex C. After merging, the merged vertex is C, that is, vertex A is also directly connected to the merged vertex C. Then traverse vertex C. Its adjacent vertex in the clockwise direction is D. The distance between vertex C and vertex D is within the range of (0, 20 mm], so it meets the second distance threshold and conforms to the second preset merging condition, and merging can be performed. Then continue to merge vertex C into D to obtain the merged vertex D, and complete the vertex merging. After the merging, vertices B, C, and D are merged into one vertex D, and A is directly connected to the merged vertex D, making the vertices on the house type vector diagram fewer, reducing the details of vertices with closer distances, and making the house type vector diagram more regular and clear.

[0190] Since the house type vector diagram can express the space and structure of the house, in the embodiments of the present disclosure, when performing vertex merging, the door frame endpoints in the house type vector diagram are also considered. The distance between the door frame endpoints in the house type vector diagram may be within the range of the second distance threshold. Then, during vertex merging, the door frame endpoints may also be processed for vertex merging. In this way, the vertex optimization process causes errors in the house type vector diagram, making the finally obtained house type vector diagram unable to accurately reflect the structure of the house. To solve this problem, the embodiments of the present disclosure also provide the following as Figure 10 shown in the embodiments.

[0191] Figure 10 This is the fifth flowchart of a processing method for a house type vector diagram according to an embodiment of the method of the present disclosure. As Figure 10 shown, the embodiments of the present disclosure provide another alternative embodiment. Steps 2023 and 2024 in a processing method for a house type vector diagram can be specifically implemented as the following steps:

[0192] Step 2023c, when it is determined that the first wall line and the second wall line meet the first preset merging condition, perform a merging process on the first wall line and the second wall line. After obtaining the merged wall line, obtain the point cloud data information of the target house.

[0193] Step 2023d, based on the point cloud data information, determine the door frame endpoints of the target house in the first house type vector diagram.

[0194] In the embodiments of the present disclosure, the doorframe plane of the target house can be determined based on the point cloud data information, the coordinate transformation of the doorframe plane of the target house is performed to obtain a doorframe line segment, and the doorframe line segment is matched to the target wall line of the first floor plan vector map to obtain the doorframe endpoints on the target wall line, where the target wall line is the wall line among the merged wall lines that is matched by the doorframe endpoints.

[0195] Among them, the doorframe plane can be determined based on the plane classification of the point cloud data information (such as plane segmentation related algorithms). After obtaining the doorframe plane, since the point cloud data information is three-dimensional data information, it is necessary to further perform the conversion from three-dimensional data coordinates to two-dimensional data coordinates. For example, select a suitable projection plane and projection direction (such as the top-down direction), project the point cloud of the doorframe plane onto the projection plane according to the projection direction to obtain the two-dimensional line segment corresponding to the doorframe plane, and match the two-dimensional line segment to the corresponding wall line (such as the wall line with the closest distance to the two-dimensional line segment, and the distance size is, for example, (0, 150 mm], that is, 0 < distance ≤ 150 mm), then the corresponding endpoints of the doorframe can be obtained. As shown in Figure 11 As shown, doorframe A is matched to two endpoints 103 and 104, and doorframe B is matched to two endpoints 101 and 102. Marks can be made on the matched points to avoid being merged when merging adjacent vertices later.

[0196] Step 2023e, traverse each vertex in the first floor plan vector map, and determine the doorframe endpoints from all the vertices.

[0197] In the embodiments of the present disclosure, after determining the doorframe endpoints, the doorframe endpoints can be marked. When traversing the vertices, the doorframe endpoints can be marked and excluded, and the distance judgment of adjacent vertices is not performed, so as to avoid the merging process of the doorframe endpoints.

[0198] Step 2023f, determine whether the distance between the first vertex and the second vertex except the doorframe endpoints meets the second distance threshold.

[0199] Step 2023g, in the case where it is determined that the distance between the first vertex and the second vertex meets the second distance threshold, determine that the first vertex and the second vertex meet the second preset merging condition.

[0200] Step 2024b, in the case where it is determined that the first vertex and the second vertex meet the second preset merging condition, merge the first vertex to the second vertex to obtain a merged vertex.

[0201] Steps 2023f, 2023g, and 2024b can refer to Figure 8 the implementation manners of the embodiments shown. For the sake of brevity, they will not be elaborated here.

[0202] Step 2025: Obtain the second house type vector map based on all the merged wall lines and merged vertices.

[0203] After completing the wall line merging and vertex merging through the foregoing embodiments, finally, the merged wall lines and merged vertices are left, and the second house type vector map is formed by these merged wall lines and merged vertices. Compared with the first house type vector map, the wall lines of the second house type vector map are more regular, the vertices are no longer fragmented, and the space division is more regular and clear.

[0204] Step 203: Perform global optimization on the second house type vector map according to a preset global optimization algorithm to obtain the third house type vector map of the target house.

[0205] In the embodiments of the present disclosure, after the preliminary optimization processing in the foregoing steps, the obtained house type vector map (the second house type vector map) is considered to be correct topologically. In this step, secondary optimization needs to be further performed to solve problems such as distortion that may be caused in the initial optimization. As an alternative embodiment, the constraints of the secondary optimization include but are not limited to the room Manhattan hypothesis (for example, restricting that the wall lines are as horizontal and vertical as possible, and restricting that adjacent wall lines are as perpendicular as possible), the point cloud plane constraint (constraining the direction of the wall lines with the two-dimensional straight line equation of the point cloud plane to make it consistent with the direction of the two-dimensional projection of the point cloud plane), the regularization term (penalizing the small angles between adjacent wall lines and restricting the maximum distance of vertex movement), etc., one or more of them. As another alternative embodiment, it is also possible to perform various optimization scoring through the above constraint methods, and finally obtain a global optimal score value, and the house type vector map corresponding to this score value is the final house type vector map.

[0206] Figure 12 This is the sixth flowchart of a processing method of a house type vector map according to an embodiment of the method of the present disclosure. As Figure 12 shown, step 203 in the processing method of a house type vector map in the embodiments of the present disclosure can be implemented as the following steps:

[0207] Step 203a: Obtain the point cloud data information of the target house.

[0208] Step 203b: Perform coordinate transformation on the point cloud data information of the target house to obtain all the third wall lines of the target house.

[0209] That is, the point cloud data information is three-dimensional data information, and it is transformed from the three-dimensional data coordinates to the two-dimensional data coordinates. For example, a suitable projection plane and projection direction (such as the top view direction) are selected, and the point cloud data information of the target house is projected onto the projection plane according to the projection direction to obtain all the projected wall lines of the target house, that is, the third wall lines.

[0210] Step 203c: Determine the target wall line that matches any fourth wall line in the second house type vector map from all the third wall lines.

[0211] As an alternative embodiment, the matching of the third wall line and the fourth wall line can be performed according to the included angle (or geometric angle) of the normal vectors of the third wall line and the fourth wall line, the wall line length, and the distance between the two wall lines. Exemplarily, the included angle between the third wall line and the fourth wall line is, for example, in the range of 0 to 5°, the difference in the lengths of the two wall lines is less than 1 mm, the distance is less than 5 mm, etc. If one or more matching conditions are met, it is determined that the third wall line is the target wall line matched to the fourth wall line.

[0212] Step 203d: Use the two-dimensional straight line equation of the preset point cloud plane to constrain the direction of the fourth wall line so that the direction of the fourth wall line is consistent with the direction of the target wall line matched to it.

[0213] In this step, use the two-dimensional straight line equation of the point cloud plane (such as the slope-intercept form straight line equation: y = kx + b, where k is the slope and b is the y-axis intercept) to constrain the direction of the fourth wall line so that the direction of the fourth wall line is consistent with the direction of the target wall line matched to it. That is, the relationship between the third wall line as the target wall line and the fourth wall line as the constrained object can be clarified through the two-dimensional straight line equation of the point cloud plane, thereby ensuring that the direction of the fourth wall line is consistent with the direction of the target wall line matched to it.

[0214] Step 203e: Obtain the third floor plan vector diagram of the target house based on all the fourth wall lines after the direction is constrained.

[0215] Through this embodiment, use the real position reflected by the point cloud data information to correct the position of the merged wall line. For example, the merged wall line may be inclined, so that the merged wall line can be constrained to its real position, enabling the obtained floor plan vector diagram to truly reflect the spatial structure of the target house and avoiding distortion problems caused by the inclination of the merged wall line.

[0216] As Figure 13 shown, the vectors marked with numbers in the figure are the vector wall lines (fourth wall lines) in the second vector diagram, and the vectors marked with letters are the projected wall lines (third wall lines) obtained by projecting the point cloud data information. Exemplarily, for example, the third wall line c is the target wall line matched to the fourth wall line 23 - 123. Then, use the two-dimensional straight line equation of the point cloud plane to constrain the direction of the fourth wall line 23 - 123 to be consistent with the direction of the third wall line c, so that the direction of the fourth wall line 23 - 123 is adjusted to its real position.

[0217] Step 203f: Based on any one of the fourth wall lines in the second floor plan vector diagram, determine whether any one of the included angles between the fourth wall line and the first coordinate axis and the second coordinate axis in the preset two-dimensional coordinate system satisfies the second included angle threshold, where the first coordinate axis and the second coordinate axis are perpendicular to each other.

[0218] Step 203g, when it is determined that the angle between the fourth wall line and the first coordinate axis or the second coordinate axis satisfies the second angle threshold, adjust the coordinate direction of the fourth wall line to obtain the corresponding fifth wall line, so that the coordinate direction of the fifth wall line is consistent with the coordinate direction of the first coordinate axis or the second coordinate axis.

[0219] Step 203h, determine whether the angle between the fifth wall line and the adjacent sixth wall line satisfies the third angle threshold.

[0220] Step 203i, when it is determined that the angle between the fifth wall line and the adjacent sixth wall line satisfies the third angle threshold, adjust the coordinate direction of the sixth wall line to obtain the seventh wall line, so that the seventh wall line is perpendicular to the fifth wall line.

[0221] Step 203j, obtain the third floor plan vector diagram of the target house based on all the fifth wall lines and the seventh wall lines.

[0222] Steps 203f to 203j are embodiments based on the Manhattan assumption of the room. As an implementable embodiment, based on prior knowledge, it is restricted that the wall lines are as horizontal and vertical as possible, such as the x-axis and the y-axis. It is judged that the angle between the wall line and the x-axis or the y-axis is within 5°. As long as the condition is met, it is adjusted to be consistent with the x-axis or the y-axis direction. As another implementable embodiment, it is restricted that the adjacent wall lines are as perpendicular as possible. Using the angle between the two wall lines, for example, the wall line angle is between 85° and 95°, then the two adjacent wall lines are adjusted to be perpendicular. In this way, the wall lines in the second floor plan vector diagram are adjusted to be horizontal and vertical, and at the same time, the two adjacent wall lines are adjusted to be perpendicular to each other, so that the wall lines in the finally obtained third floor plan vector diagram are more regular and the spatial structure is more in line with the actual situation, thus accurately reflecting the floor plan structure of the target house.

[0223] Step 203k, based on any fourth wall line in the second floor plan vector diagram, determine whether the angle between the fourth wall line and the eighth wall line satisfies the fourth angle threshold, and the eighth wall line is the adjacent wall line of the fourth wall line.

[0224] Step 203l, when the angle between the fourth wall line and the eighth wall line satisfies the fourth angle threshold, add a first penalty term to the angle between the fourth wall line and the eighth wall line through a preset regularization algorithm.

[0225] Step 203m, when adjusting the coordinate direction of the sixth wall line to obtain the seventh wall line so that the seventh wall line is perpendicular to the fifth wall line, when adjusting the coordinate direction of the sixth wall line, determine whether the coordinate distance moved by any endpoint of the sixth wall line satisfies the third distance threshold;

[0226] Step 203n, when the third distance threshold is satisfied, add a second penalty term to the coordinate distance moved by the endpoint of the sixth wall line through a preset regularization algorithm;

[0227] Step 203o: Obtain a third housing unit vector diagram based on the first penalty term, the second penalty term, and other wall lines in the second housing unit vector diagram except for the added penalty term.

[0228] In the embodiments of the present disclosure, steps 203k to 203o are embodiments of secondary optimization based on regularization terms. In this embodiment, based on prior knowledge, the angle between adjacent wall lines cannot be too small. For example, in the case of being less than or equal to 30 degrees, and when merging wall lines or optimizing the position of wall lines, the maximum distance that the endpoints of the wall lines are moved will not exceed 5 cm. If it exceeds this distance, vertex merging may cause distortion. Based on this, as an alternative embodiment, penalize the small angle between adjacent wall lines. In a normal housing unit vector diagram, if the angle between two adjacent wall lines is less than or equal to 30°, give it a penalty to avoid the situation where the angle between two walls is less than or equal to 30°, and do not process the wall lines; as another alternative embodiment, limit the maximum distance of vertex movement (5 cm). When merging wall lines or optimizing and adjusting the position of wall lines, in order to satisfy that the wall lines must be perpendicular, the endpoints of the wall lines are moved a long distance, such as 1 - 2 m. Therefore, use the regularization term to limit the occurrence of this situation. By restricting the angle between adjacent wall lines and the distance of vertex movement of wall lines, avoid the distortion of the housing unit vector diagram caused by over-optimization, and ensure that the housing unit vector diagram can more realistically reflect the housing unit structure of the house.

[0229] Step 204: Output the third housing unit vector diagram of the target house.

[0230] After the foregoing optimization and adjustment, a third housing unit vector diagram is obtained, as Figure 14 shown. Compared with the housing unit vector diagram Figure 1 shown, the housing unit vector diagram optimized and adjusted by the embodiments of the present disclosure no longer shows some unnecessary details and is cleaner and clearer.

[0231] Through the technical solution of the embodiments of the present disclosure, based on the initial housing unit vector diagram of the target house, optimize and adjust the wall lines and vertices, reduce some unnecessary wall lines, vertices, etc. to noise interference, remove unnecessary details, make the obtained housing unit vector diagram no longer appear fragmented, and then further globally optimize the housing unit vector diagram after optimizing the wall lines and vertices through a preset global optimization algorithm, reduce the distortion of the housing unit vector diagram caused by the optimization of wall lines and vertices, more realistically restore the true position of the wall surface of the target house, and achieve the regularization, simplification, and optimization of the structure of the housing unit vector diagram, and obtain a clean, tidy, clearly structured, and accurate housing unit vector diagram.

[0232] Correspondingly, the embodiments of the present disclosure also provide a corresponding apparatus embodiment for the foregoing method embodiment. The apparatus embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0233] Figure 15 One of the structural block diagrams of a processing device for a household vector map according to an embodiment of the disclosed device. As Figure 15 shown, a processing device for a household vector map according to an embodiment of the present disclosure may include a vector map receiving module 1501, an optimization and adjustment module 1502, a global optimization module 1503, and an output module 1504, where:

[0234] The vector map receiving module 1501 is configured to receive a first household vector map of a target house;

[0235] The optimization and adjustment module 1502 is configured to perform optimization and adjustment on the wall lines and vertices in the first household vector map based on the first household vector map of the target house to obtain a second household vector map;

[0236] The global optimization module 1503 is configured to perform global optimization on the second household vector map according to a preset global optimization algorithm to obtain a third household vector map of the target house;

[0237] The output module 1504 is configured to output the third household vector map of the target house.

[0238] Through the technical solution of the embodiment of the present disclosure, based on the initial household vector map of the target house, by optimizing and adjusting the wall lines and vertices, some unnecessary wall lines, vertices, etc. are reduced to noise interference, and unnecessary details are removed, so that the obtained household vector map no longer appears fragmented. Then, through a preset global optimization algorithm, the household vector map after optimizing the wall lines and vertices is further globally optimized to reduce the distortion of the household vector map caused by the optimization of the wall lines and vertices, and more truly restore the real position of the wall surface of the target house, realizing the regularization, simplification, and optimization of the structure of the household vector map, and obtaining a clean, tidy, structurally clear, and accurate household vector map.

[0239] In Figure 15 Based on the provided embodiment, an embodiment as Figure 16 shown is also provided. Figure 16 Another structural block diagram of a processing device for a household vector map according to an embodiment of the disclosed device. As Figure 16 shown, the optimization and adjustment module 1502 of a processing device for a household vector map according to an embodiment of the present disclosure may include a wall line traversal unit 1502a, a wall line merging unit 1502b, a vertex traversal unit 1502c, a vertex merging unit 1502d, and a vector map determination unit 1502e, where:

[0240] The wall line traversal unit 1502a is configured to traverse each wall line in the first household vector map to determine whether any first wall line and a second wall line adjacent to it satisfy a first preset merging condition;

[0241] A wall line merging unit 1502b, configured to merge the first wall line and the second wall line to obtain a merged wall line when it is determined that the first wall line and the second wall line meet the first preset merging condition;

[0242] A vertex traversing unit 1502c, configured to traverse each vertex in the first floor plan vector diagram to determine whether any first vertex and a second vertex adjacent to it meet the second preset merging condition;

[0243] A vertex merging unit 1502d, configured to merge the first vertex and the second vertex to obtain a merged vertex when it is determined that the first vertex and the second vertex meet the second preset merging condition;

[0244] A vector diagram determining unit 1502e, configured to obtain the second floor plan vector diagram based on all the merged wall lines and the merged vertices.

[0245] As an alternative embodiment, the wall line traversing unit 1502a includes:

[0246] A first judgment subunit, configured to traverse each wall line in the first floor plan vector diagram and judge whether any first wall line and a second wall line adjacent to it form an angle;

[0247] A second judgment subunit, configured to judge whether the angle between the first wall line and the second wall line meets a first angle threshold when an angle is formed;

[0248] A third judgment subunit, configured to judge whether the first wall line and the second wall line have a common endpoint when it is determined that the angle meets the first angle threshold;

[0249] A first determination subunit, configured to determine that the first wall line and the second wall line meet the first preset merging condition when there is a common endpoint.

[0250] As an alternative embodiment, the wall line traversing unit 1502a further includes:

[0251] A fourth judgment subunit, configured to judge whether the distance between two adjacent endpoints of the first wall line and the second wall line meets a first distance threshold when the first wall line and the second wall line do not have a common endpoint;

[0252] A second determination subunit, configured to determine that the first wall line and the second wall line meet the first preset merging condition when it is determined that the distance meets the first distance threshold.

[0253] As an alternative embodiment, the wall line merging unit 1502b includes:

[0254] A wall line endpoint connection subunit, configured to connect a first endpoint of the first wall line and a second endpoint of the second wall line to obtain the merged wall line when it is determined that the first wall line and the second wall line meet the first preset merging condition.

[0255] As an alternative embodiment, the vertex traversing unit 1502c includes:

[0256] A fifth determination subunit, configured to traverse each vertex in the first house type vector diagram and determine whether the distance between the first vertex and the second vertex meets a second distance threshold;

[0257] A third determination subunit, configured to determine that the first vertex and the second vertex meet a second preset merging condition when it is determined that the distance between the first vertex and the second vertex meets the second distance threshold.

[0258] As an alternative embodiment, the vertex traversing unit 1502c further includes:

[0259] A point cloud acquisition subunit, configured to acquire point cloud data information of the target house after merging the first wall line and the second wall line to obtain a merged wall line when it is determined that the first wall line and the second wall line meet the first preset merging condition;

[0260] A first doorframe endpoint determination subunit, configured to determine doorframe endpoints of the doorframe of the target house in the first house type vector diagram based on the point cloud data information;

[0261] A second doorframe endpoint determination subunit, configured to traverse each vertex in the first house type vector diagram and determine doorframe endpoints from all the vertices;

[0262] A sixth determination subunit, configured to determine whether the distance between a first vertex and a second vertex other than the doorframe endpoints meets the second distance threshold;

[0263] A fourth determination subunit, configured to determine that the first vertex and the second vertex meet the second preset merging condition when it is determined that the distance between the first vertex and the second vertex meets the second distance threshold.

[0264] As an alternative embodiment, further, the first doorframe endpoint determination subunit is further configured to:

[0265] Determine a doorframe plane of the target house based on the point cloud data information;

[0266] Perform coordinate transformation on the doorframe plane of the target house to obtain a doorframe line segment;

[0267] Match the doorframe line segment to the target wall line of the first floor plan vector diagram to obtain the doorframe endpoints on the target wall line, where the target wall line is the wall line in the merged wall lines that is matched by the doorframe endpoints.

[0268] As an alternative embodiment, the vertex merging unit 1502d includes:

[0269] A vertex merging subunit, configured to merge the first vertex to the second vertex to obtain the merged vertex when it is determined that the first vertex and the second vertex meet the second preset merging condition.

[0270] As another embodiment, the global optimization module 1503 of a floor plan vector diagram processing device according to an embodiment of the present disclosure may include:

[0271] A data acquisition unit 1503a, configured to acquire the point cloud data information of the target house;

[0272] A coordinate transformation unit 1503b, configured to perform coordinate transformation on the point cloud data information of the target house to obtain all the third wall lines of the target house;

[0273] A wall line matching unit 1503c, configured to determine a target wall line that matches any fourth wall line in the second floor plan vector diagram from all the third wall lines;

[0274] A wall line direction constraint unit 1503d, configured to use a preset point cloud plane two-dimensional straight line equation to constrain the direction of the fourth wall line so that the direction of the fourth wall line is consistent with the direction of the target wall line that matches it;

[0275] A first vector diagram determination unit 1503e, configured to obtain the third floor plan vector diagram of the target house based on all the fourth wall lines after the direction is constrained.

[0276] Furthermore, it may further include:

[0277] A first included angle condition judgment unit 1503f, configured to, based on any fourth wall line in the second floor plan vector diagram, judge whether any included angle between the fourth wall line and the first coordinate axis and the second coordinate axis in a preset two-dimensional coordinate system meets a second included angle threshold, where the first coordinate axis and the second coordinate axis are perpendicular to each other;

[0278] The first wall line direction adjustment unit 1503g is configured to, when it is determined that the included angle between the fourth wall line and the first coordinate axis or the second coordinate axis satisfies the second included angle threshold, adjust the coordinate direction of the fourth wall line to obtain a corresponding fifth wall line, so that the coordinate direction of the fifth wall line is consistent with the coordinate direction of the first coordinate axis or the second coordinate axis;

[0279] The second included angle condition judgment unit 1503h is configured to judge whether the included angle between the fifth wall line and the adjacent sixth wall line satisfies the third included angle threshold;

[0280] The second wall line direction adjustment unit 1503i is configured to, when it is determined that the included angle between the fifth wall line and the adjacent sixth wall line satisfies the third included angle threshold, adjust the coordinate direction of the sixth wall line to obtain a seventh wall line, so that the seventh wall line is perpendicular to the fifth wall line;

[0281] The second vector diagram determination unit 1503j is configured to obtain a third house type vector diagram of the target house based on all the fifth wall lines and the seventh wall lines.

[0282] Furthermore, it may further include:

[0283] The third included angle condition judgment unit 1503k is configured to, based on any fourth wall line in the second house type vector diagram, judge whether the included angle between the fourth wall line and the eighth wall line satisfies the fourth included angle threshold, where the eighth wall line is an adjacent wall line of the fourth wall line;

[0284] The first penalty unit 1503l is configured to, when the included angle between the fourth wall line and the eighth wall line satisfies the fourth included angle threshold, add a first penalty term to the included angle between the fourth wall line and the eighth wall line through a preset regularization algorithm;

[0285] The distance condition judgment unit 1503m is configured to, when adjusting the coordinate direction of the sixth wall line to obtain a seventh wall line such that the seventh wall line is perpendicular to the fifth wall line, judge whether the coordinate distance of any end point of the sixth wall line moving satisfies the third distance threshold when adjusting the coordinate direction of the sixth wall line;

[0286] The second penalty unit 1503n is configured to, when the third distance threshold is satisfied, add a second penalty term to the coordinate distance of the movement of this end point of the sixth wall line through the preset regularization algorithm;

[0287] The third vector diagram determination unit 1503p is configured to obtain the third house type vector diagram based on the first penalty term, the second penalty term, and the other wall lines in the second house type vector diagram except for the added penalty terms.

[0288] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiments can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working processes of the units and modules in the above system can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.

[0289] Next, refer to Figure 17 to describe an electronic device according to an embodiment of the present disclosure. The electronic device can be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device can communicate with the first device and the second device to receive the input signals collected from them.

[0290] Figure 17 The block diagram of an electronic device according to an embodiment of the present disclosure is illustrated.

[0291] As Figure 17 shown, the electronic device includes one or more processors and a memory.

[0292] The processor can be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and can control other components in the electronic device to perform desired functions.

[0293] The memory can store one or more computer program products. The memory can include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory can include, for example, random access memory (RAM) and / or cache memory, etc. The non-volatile memory can include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program products can be stored on the computer-readable storage medium, and the processor can run the computer program products to implement the processing method of the floor plan vector diagram of each embodiment of the present disclosure described above and / or other desired functions.

[0294] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).

[0295] In addition, the input device may further include, for example, a keyboard, a mouse, and so on.

[0296] The output device can output various information to the outside, including the determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, and so on.

[0297] Of course, for simplicity, Figure 17 only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, and so on are omitted. In addition, according to specific application scenarios, the electronic device may further include any other appropriate components.

[0298] In addition to the above methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, and when the computer program instructions are run by a processor, the processor is caused to execute the steps in the processing method of the house type vector diagram according to various embodiments of the present disclosure described in the above part of this specification.

[0299] The computer program product can be written in any combination of one or more programming languages for programming code to perform the operations of the embodiments of the present disclosure. The programming languages include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as the "C" language or similar programming languages. The program code can be executed completely on the user computing device, partially on the user device, executed as an independent software package, partially on the user computing device and partially on a remote computing device, or completely on a remote computing device or server.

[0300] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are run by a processor, the processor is caused to execute the steps in the processing method of the house type vector diagram according to various embodiments of the present disclosure described in the above part of this specification.

[0301] The computer-readable storage medium may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0302] The basic principles of the present disclosure have been described in conjunction with specific embodiments. However, it should be noted that the advantages, benefits, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, benefits, effects, etc. are essential for each embodiment of the present disclosure. In addition, the above-mentioned specific details are only for illustrative and easy-to-understand purposes, rather than limitations, and the above details do not limit the present disclosure to necessarily adopt the above specific details for implementation.

[0303] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment.

[0304] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present disclosure are only illustrative examples and do not intend to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open-ended words, meaning "including but not limited to", and can be used interchangeably with each other. The word "or" and "and" used herein refer to the word "and / or", and can be used interchangeably with each other, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to", and can be used interchangeably with each other.

[0305] The methods and apparatuses of the present disclosure may be implemented in many ways. For example, the methods and apparatuses of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of the steps for the method is for illustration only. The steps of the method of the present disclosure are not limited to the specific order described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, and these programs include machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.

[0306] It should also be noted that in the apparatuses, devices, and methods of the present disclosure, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present disclosure.

[0307] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0308] The above description has been presented for purposes of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the form disclosed herein. Although several example aspects and embodiments have been discussed above, those skilled in the art will recognize some of their variations, modifications, alterations, additions, and subcombinations.

Claims

1. A method for processing a floor plan vector diagram, characterized in that: The method comprises: Receive the first floor plan vector diagram of the target house; Based on the first apartment type vector diagram of the target house, optimizing and adjusting the wall lines and vertices in the first apartment type vector diagram respectively, obtaining a second apartment type vector diagram; Performing global optimization on the second apartment type vector diagram according to a preset global optimization algorithm to obtain a third apartment type vector diagram of the target house; Output the third floor plan vector diagram of the target house.

2. The method according to claim 1, characterized in that The step of optimizing and adjusting the wall lines and vertices in the first floor plan vector diagram based on the first floor plan vector diagram of the target house to obtain a second floor plan vector diagram includes: Traversing each wall line in the first apartment type vector diagram, determining whether any first wall line and a second wall line adjacent to the first wall line meet a first preset merging condition; When it is determined that the first wall line and the second wall line meet the first preset merging condition, merging the first wall line and the second wall line to obtain a merged wall line; Traversing each vertex in the first apartment plan vector diagram, determining whether any first vertex and a second vertex adjacent to the first vertex satisfy a second preset merging condition; When it is determined that the first vertex and the second vertex satisfy the second preset merging condition, merging the first vertex and the second vertex to obtain a merged vertex; The second apartment type vector diagram is obtained based on all the merged wall lines and the merged vertices.

3. The method according to claim 2, characterized in that The traversing each wall line in the first apartment plan vector diagram to determine whether any first wall line and a second wall line adjacent to the first wall line meet a first preset merging condition includes: Traversing each wall line in the first apartment type vector diagram, and determining whether any of the first wall lines forms an angle with a second wall line adjacent thereto; In the case where an angle is formed, determining whether the angle between the first wall line and the second wall line satisfies a first angle threshold; In the case where it is determined that the angle satisfies a first angle threshold, determining whether the first wall line and the second wall line have a common endpoint; In the case of having a common endpoint, it is determined that the first wall line and the second wall line meet a first preset merging condition.

4. The method according to claim 3, characterized in that The traversing each wall line in the first apartment plan vector diagram to determine whether any first wall line and a second wall line adjacent to the first wall line meet a first preset merging condition further includes: In the case that the first wall line and the second wall line do not have a common endpoint, determining whether a distance between two adjacent endpoints of the first wall line and the second wall line meets a first distance threshold; When it is determined that the distance satisfies a first distance threshold, it is determined that the first wall line and the second wall line satisfy a first preset merging condition.

5. The method according to any one of claims 2 to 4, characterized in that: When it is determined that the first wall line and the second wall line meet the first preset merging condition, merging the first wall line and the second wall line to obtain a merged wall line includes: When it is determined that the first wall line and the second wall line satisfy the first preset merging condition, a first endpoint of the first wall line and a second endpoint of the second wall line are connected to obtain the merged wall line.

6. The method according to claim 2, characterized in that The traversing each vertex in the first apartment plan vector diagram to determine whether any first vertex and a second vertex adjacent to it meet a second preset merging condition includes: Traversing each vertex in the first apartment plan vector diagram, and determining whether the distance between the first vertex and the second vertex meets a second distance threshold; In the case where it is determined that the distance between the first vertex and the second vertex satisfies a second distance threshold, it is determined that the first vertex and the second vertex satisfy a second preset merging condition.

7. The method according to claim 2, characterized in that The traversing each vertex in the first apartment plan vector diagram to determine whether any first vertex and a second vertex adjacent to it meet a second preset merging condition also includes: In the case where it is determined that the first wall line and the second wall line meet the first preset merging condition, merging the first wall line and the second wall line to obtain a merged wall line, and then acquiring point cloud data information of the target house; Determine the door frame endpoints of the door frame of the target house in the first apartment vector diagram based on the point cloud data information; Traversing each vertex in the first apartment plan vector diagram, and determining the door frame endpoints from all vertices; Determine whether the distance between the first vertex excluding the door frame endpoint and the second vertex meets a second distance threshold; In the case where it is determined that the distance between the first vertex and the second vertex satisfies a second distance threshold, it is determined that the first vertex and the second vertex satisfy a second preset merging condition.

8. The method according to claim 7, characterized in that The step of determining the door frame endpoints of the door frame of the target house in the first apartment vector diagram based on the point cloud data information includes: Determine the door frame plane of the target house based on the point cloud data information; Performing coordinate transformation on the door frame plane of the target house to obtain a door frame line segment; The door frame line segment is matched to the target wall line of the first apartment vector diagram to obtain the door frame endpoint on the target wall line, wherein the target wall line is the wall line matched by the door frame endpoint in the merged wall line.

9. The method according to any one of claims 6 to 8, characterized in that: When it is determined that the first vertex and the second vertex satisfy the second preset merging condition, merging the first vertex and the second vertex to obtain a merged vertex includes: When it is determined that the first vertex and the second vertex satisfy the second preset merging condition, the first vertex is merged into the second vertex to obtain the merged vertex.

10. The method according to claim 1 or 2, characterized in that: The globally optimizing the second apartment type vector diagram according to a preset global optimization algorithm to obtain a third apartment type vector diagram of the target house includes: Acquire point cloud data information of the target house; Performing coordinate transformation on the point cloud data information of the target house to obtain all third wall lines of the target house; Determine a target wall line that matches any fourth wall line in the second apartment type vector diagram from all the third wall lines; The direction of the fourth wall line is constrained by using a preset point cloud plane two-dimensional straight line equation, so that the direction of the fourth wall line is consistent with the direction of the target wall line matched therewith; A third apartment vector diagram of the target house is obtained based on all the fourth wall lines in the constrained direction.

11. The method according to claim 1 or 10, characterized in that: The method of globally optimizing the second apartment type vector diagram according to a preset global optimization algorithm to obtain a third apartment type vector diagram of the target house further includes: Based on any fourth wall line in the second apartment plan vector diagram, determining whether any angle between the fourth wall line and a first coordinate axis and a second coordinate axis in a preset two-dimensional coordinate system meets a second angle threshold, the first coordinate axis and the second coordinate axis being perpendicular to each other; When it is determined that the angle between the fourth wall line and the first coordinate axis or the second coordinate axis satisfies the second angle threshold, adjusting the coordinate direction of the fourth wall line to obtain a corresponding fifth wall line, so that the coordinate direction of the fifth wall line is consistent with the coordinate direction of the first coordinate axis or the second coordinate axis; Determining whether an angle between the fifth wall line and a sixth wall line adjacent thereto satisfies a third angle threshold; When it is determined that the angle between the fifth wall line and the sixth wall line adjacent thereto satisfies the third angle threshold, adjusting the coordinate direction of the sixth wall line to obtain a seventh wall line, so that the seventh wall line is perpendicular to the fifth wall line; A third apartment vector diagram of the target house is obtained based on all the fifth wall lines and the seventh wall lines.

12. The method according to claim 11, characterized in that The method of globally optimizing the second apartment type vector diagram according to a preset global optimization algorithm to obtain a third apartment type vector diagram of the target house further includes: Based on any fourth wall line in the second apartment type vector diagram, determining whether an angle between the fourth wall line and an eighth wall line satisfies a fourth angle threshold, the eighth wall line being an adjacent wall line to the fourth wall line; When the angle between the fourth wall line and the eighth wall line meets the fourth angle threshold, a first penalty term is added to the angle between the fourth wall line and the eighth wall line by using a preset regularization algorithm; In the case where the coordinate direction of the sixth wall line is adjusted to obtain the seventh wall line so that the seventh wall line is perpendicular to the fifth wall line, when the coordinate direction of the sixth wall line is adjusted, determining whether a coordinate distance moved by any endpoint of the sixth wall line satisfies a third distance threshold; When the third distance threshold is met, a second penalty term is added to the coordinate distance of the movement of the endpoint of the sixth wall line by using the preset regularization algorithm; The third apartment type vector diagram is obtained based on the first penalty item, the second penalty item, and other wall lines in the second apartment type vector diagram except the added penalty item.

13. An electronic device, characterized in that: include: a memory for storing a computer program product; A processor is used to execute the computer program product stored in the memory, and when the computer program product is executed, it implements the method described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • House layout chart processing method, system and device and computer readable storage medium

    CN113240768A

  • Floor plan generation method and device

    CN113345044A

  • House plan generation method and device, electronic equipment and storage medium

    CN115330939A

  • Method, device and equipment for constructing wall contour based on point cloud data vectorization

    CN118485772A

  • House type vector generation method and device and storage medium

    CN119229026A