Floor plan generation method, device, electronic device and storage medium
By using the three-dimensional point cloud model to correct the initial plane wireframe diagram and determine the height information between functions, a more accurate three-dimensional floor plan was generated, which solved the problem of inaccurate floor plan in the existing technology, and achieved automation and accuracy improvement of floor plan .
Patent Information
- Application Number
- CN202210946520.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2042-08-08
AI Technical Summary
In the prior art, house floor plans are usually drawn manually by manual measurements, resulting in inaccurateness.
By obtaining the three-dimensional point cloud model of the target house, correcting the initial plan wireframe, determining the height information between each function, and generating a three-dimensional floor plan based on the corrected plan wireframe and height information.
It improves the accuracy of floor plan, realizes the automatic generation of three-dimensional floor plan of the house, and solves the problem of inaccurate floor plan in the existing technology.
Smart Images

Figure CN115330939B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to computer technology, and in particular to a method, device, electronic device and storage medium for generating a floor plan. Background Art
[0002] Houses are one of the important places in people's daily life, and floor plans are one of the essential information for people to understand houses. Therefore, it is necessary to construct accurate house floor plans. Figure 10 In the prior art, floor plans are usually obtained by manual measurement and drawing, and the floor plans obtained in this way are often not accurate enough. Summary of the invention
[0003] The embodiments of the present disclosure provide a method, device, electronic device and storage medium for generating a floor plan, so as to solve the technical problem that the floor plans in the prior art are not accurate enough.
[0004] One aspect of an embodiment of the present disclosure provides a method for generating a floor plan, including:
[0005] Obtaining an initial plane wireframe diagram and a target three-dimensional point cloud model of the target house in the first coordinate system;
[0006] Based on the target three-dimensional point cloud model, the initial plane wireframe diagram is corrected to obtain a corrected plane wireframe diagram corresponding to the target house;
[0007] Based on the modified plane wireframe diagram and the target three-dimensional point cloud model, determining the height information corresponding to each functional room of the target house;
[0008] Based on the modified plane wireframe diagram and the height information corresponding to each of the functions, a three-dimensional floor plan corresponding to the target house is generated.
[0009] In one embodiment of the present disclosure, the height information includes a top height and a ground height; the generating of a three-dimensional floor plan corresponding to the target house based on the modified plane wireframe diagram and the height information corresponding to each of the functions includes:
[0010] For any of the functional rooms, based on the modified plan wireframe diagram, determine first wireframe information at the top height and second wireframe information at the ground height corresponding to the functional room;
[0011] The three-dimensional floor plan is determined based on the first wireframe information and the second wireframe information respectively corresponding to each of the functions.
[0012] In one embodiment of the present disclosure, determining the height information corresponding to each functional room of the target house based on the modified plane wireframe diagram and the target three-dimensional point cloud model includes:
[0013] Based on the modified plane wireframe diagram, extracting first point cloud data corresponding to each of the functions from the target three-dimensional point cloud model;
[0014] Based on the first point cloud data respectively corresponding to each of the functions, the top height and the ground height respectively corresponding to each of the functions are determined.
[0015] In one embodiment of the present disclosure, determining the top height and the ground height corresponding to each of the functions based on the first point cloud data corresponding to each of the functions respectively includes:
[0016] For any of the functional rooms, determining the number of points respectively included in a plurality of height ranges based on the first point cloud data corresponding to the functional room;
[0017] The top height and the ground height corresponding to the functions are determined based on the number of points respectively included in each of the height ranges.
[0018] In one embodiment of the present disclosure, the initial plane wireframe diagram is corrected based on the target three-dimensional point cloud model to obtain a corrected plane wireframe diagram corresponding to the target house, including:
[0019] The target three-dimensional point cloud model is vertically projected onto the plane where the initial planar wireframe diagram is located to obtain a projection result, wherein the projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located;
[0020] The initial plane wireframe diagram is corrected according to the projection result to obtain the corrected plane wireframe diagram.
[0021] In one embodiment of the present disclosure, the correcting process of the initial plane wireframe diagram according to the projection result to obtain the corrected plane wireframe diagram includes:
[0022] Based on the projection result, determining the distances from each of the projection points to each of the original wall lines in the initial plane wireframe diagram;
[0023] For any of the original wall lines, based on the distances from each of the projection points to the original wall line, determine a target projection point whose distance from the original wall line is less than a first distance threshold;
[0024] Determine a corrected wall line corresponding to the original wall line based on each of the target projection points;
[0025] Based on the endpoints of the original wall line, determining the endpoints of the corrected wall line;
[0026] The modified plane wireframe diagram is determined based on the modified wall lines corresponding to the original wall lines and the endpoints of the modified wall lines.
[0027] In one embodiment of the present disclosure, the step of obtaining an initial plane wireframe diagram and a target three-dimensional point cloud model of a target house in a first coordinate system includes:
[0028] Obtaining plane wireframe information and original three-dimensional point cloud data of the target house;
[0029] Based on the plane wireframe information, determining the initial plane wireframe diagram of the target house in the first coordinate system;
[0030] The original three-dimensional point cloud data is converted into the first coordinate system to obtain the target three-dimensional point cloud model of the target house in the first coordinate system.
[0031] Another aspect of the embodiments of the present disclosure provides a floor plan generating device, including:
[0032] A first acquisition module is used to acquire an initial plane wireframe diagram and a target three-dimensional point cloud model of a target house in a first coordinate system;
[0033] A first processing module is used to modify the initial plane wireframe diagram based on the target three-dimensional point cloud model to obtain a modified plane wireframe diagram corresponding to the target house;
[0034] A second processing module is used to determine the height information corresponding to each functional room of the target house based on the modified plane wireframe diagram and the target three-dimensional point cloud model;
[0035] The third processing module is used to generate a three-dimensional floor plan corresponding to the target house based on the modified plane wireframe diagram and the height information corresponding to each of the functions.
[0036] In one embodiment of the present disclosure, the height information includes top height and ground height; the third processing module includes:
[0037] A first processing unit is used to determine, for any of the functional rooms, first wireframe information at the top height and second wireframe information at the ground height corresponding to the functional room based on the modified plan wireframe diagram;
[0038] The second processing unit is used to determine the three-dimensional floor plan based on the first wireframe information and the second wireframe information respectively corresponding to each of the functions.
[0039] In one embodiment of the present disclosure, the second processing module includes:
[0040] A third processing unit is used to extract first point cloud data corresponding to each of the functions from the target three-dimensional point cloud model based on the modified plane wireframe diagram;
[0041] The fourth processing unit is used to determine the top height and the ground height corresponding to each of the functions based on the first point cloud data corresponding to each of the functions.
[0042] In one embodiment of the present disclosure, the fourth processing unit is specifically configured to:
[0043] For any of the functional rooms, based on the first point cloud data corresponding to the functional room, determine the number of points respectively included in multiple height ranges; based on the number of points respectively included in each height range, determine the top height and the ground height corresponding to the functional room.
[0044] In one embodiment of the present disclosure, the first processing module includes:
[0045] a fifth processing unit, configured to vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe diagram is located, to obtain a projection result, wherein the projection result includes coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located;
[0046] The sixth processing unit is used to perform correction processing on the initial plane wireframe diagram according to the projection result to obtain the corrected plane wireframe diagram.
[0047] In one embodiment of the present disclosure, the sixth processing unit is specifically configured to:
[0048] Based on the projection results, determine the distances from each of the projection points to each of the original wall lines in the initial plane wireframe diagram; for any of the original wall lines, determine a target projection point whose distance from the original wall line is less than a first distance threshold based on the distances from each of the projection points to the original wall line; determine a revised wall line corresponding to the original wall line based on each of the target projection points; determine an endpoint of the revised wall line based on the endpoints of the original wall line; determine the revised plane wireframe diagram based on the revised wall lines corresponding to each of the original wall lines and the endpoints of the revised wall lines.
[0049] In one embodiment of the present disclosure, the first acquisition module includes:
[0050] An acquisition unit, used for acquiring plane wireframe information and original three-dimensional point cloud data of the target house;
[0051] A determining unit, configured to determine the initial plane wireframe diagram of the target house in a first coordinate system based on the plane wireframe information;
[0052] A conversion unit is used to convert the original three-dimensional point cloud data into the first coordinate system to obtain the target three-dimensional point cloud model of the target house in the first coordinate system.
[0053] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method described in any of the above embodiments of the present disclosure is implemented.
[0054] According to another aspect of the embodiments of the present disclosure, an electronic device is provided, the electronic device comprising:
[0055] a memory for storing a computer program product;
[0056] The processor is used to execute the computer program product stored in the memory, and when the computer program product is executed, the method described in any of the above embodiments of the present disclosure is implemented.
[0057] The floor plan generation method, device, electronic device and storage medium provided by the present invention can correct the initial plane wireframe diagram of the house through the three-dimensional point cloud model of the house to obtain a more accurate corrected plane wireframe diagram, and can automatically determine the height information of each functional room based on the corrected plane wireframe diagram and the three-dimensional point cloud model, so that the three-dimensional floor plan of the house can be generated based on the corrected plane wireframe diagram and the height information of each functional room, thereby effectively improving the accuracy of the floor plan and solving technical problems such as the floor plan obtained by the prior art being not accurate enough.
[0058] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The accompanying drawings, which constitute 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.
[0060] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0061] Figure 1 This is an exemplary application scenario of the floor plan generation method provided by the present disclosure;
[0062] Figure 2 It is a flowchart of a method for generating a floor plan provided by an exemplary embodiment of the present disclosure;
[0063] Figure 3 is a flowchart of a method for generating a floor plan provided by another exemplary embodiment of the present disclosure;
[0064] Figure 4is a schematic diagram of a modified plan wireframe diagram of a target house provided by an exemplary embodiment of the present disclosure;
[0065] Figure 5 is a three-dimensional wireframe schematic diagram of a functional room of a target house provided by an exemplary embodiment of the present disclosure;
[0066] Figure 6 is a flowchart of step 2032 provided by an exemplary embodiment of the present disclosure;
[0067] Figure 7 It is a schematic diagram of the principle of determining height information between functions provided by an exemplary embodiment of the present disclosure;
[0068] Figure 8 is a schematic diagram of a projection result provided by an exemplary embodiment of the present disclosure;
[0069] Fig. 9 is a flowchart of step 2022 provided by an exemplary embodiment of the present disclosure;
[0070] Fig.10 It is a structural schematic diagram of a floor plan generating device provided by an exemplary embodiment of the present disclosure;
[0071] Fig.11 is a schematic structural diagram of a floor plan generating device provided by another exemplary embodiment of the present disclosure;
[0072] Fig.12 It is a structural schematic diagram of an application embodiment of the electronic device disclosed in the present invention. DETAILED DESCRIPTION
[0073] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0074] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0075] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0076] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0077] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0078] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0079] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0080] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0081] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0082] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0083] The disclosed embodiments can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0084] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0085] SUMMARY OF THE DISCLOSURE
[0086] In the process of realizing the present disclosure, the inventors found that the house floor plan is one of the essential information for people to understand the house. Therefore, it is necessary to construct an accurate house floor plan. Figure 10 In the prior art, floor plans are usually obtained by manual measurement and drawing, and the floor plans obtained in this way are often not accurate enough.
[0087] Exemplary Overview
[0088] Figure 1 This is an exemplary application scenario of the floor plan generation method provided in the present disclosure.
[0089] In the real estate field, in order to enable users to better understand the house layout, it is necessary to generate a corresponding three-dimensional floor plan for the house. By using a floor plan generation device to execute the floor plan generation method disclosed in the present invention, the initial plane floor plan (i.e., initial plane wireframe) of the house obtained in advance can be corrected based on a target three-dimensional point cloud model of the house (hereinafter referred to as the target house) to obtain a more accurate plane wireframe of the target house (i.e., a corrected plane wireframe), and then the height information corresponding to each function of the target house is determined based on the corrected plane wireframe and the target three-dimensional point cloud model. Based on the corrected plane wireframe and the height information corresponding to each function, a three-dimensional floor plan corresponding to the target house is generated, thereby realizing the automatic generation of the three-dimensional floor plan of the house, effectively improving the accuracy of the floor plan, and solving the technical problem that the three-dimensional floor plan obtained by the prior art is not accurate enough.
[0090] Exemplary Methods
[0091] Figure 2 FIG. 1 is a flow chart of a method for generating a floor plan provided by an exemplary embodiment of the present disclosure. The method comprises the following steps:
[0092] Step 201, obtaining an initial plane wireframe diagram and a target three-dimensional point cloud model of a target house in a first coordinate system.
[0093] Among them, the target house can be any house that needs to generate a three-dimensional floor plan, and the initial plane wireframe can be a polygonal wireframe of the target house obtained by any means, such as a manually drawn polygonal wireframe mapped to the first coordinate system as the initial plane wireframe of the target house in the world coordinate system. The target three-dimensional point cloud model can be a three-dimensional point cloud model obtained by mapping the original three-dimensional point cloud data collected based on scanning to the first coordinate system. The first coordinate system can be a world coordinate system, or it can be set to a relative coordinate system with a certain mapping relationship with the world coordinate system according to actual needs. It can be set according to actual needs, as long as the initial plane wireframe and the target three-dimensional point cloud model can be located in the same coordinate system. For example, a first coordinate system is established with the preset position of the target house as the origin, and the initial plane wireframe and the target three-dimensional point cloud model of the target house in this first coordinate system are obtained. There is no specific limitation.
[0094] Exemplarily, since the initial plane wireframe has no height information, the initial plane wireframe may be mapped to the XOY plane of the first coordinate system to facilitate subsequent processing, which may be specifically set according to actual needs.
[0095] Step 202: Based on the target three-dimensional point cloud model, the initial plane wireframe diagram is corrected to obtain a corrected plane wireframe diagram corresponding to the target house.
[0096] Among them, the correction of the initial plane wireframe diagram can be through vertically projecting the target three-dimensional point cloud model onto the plane where the initial plane wireframe diagram is located, based on the distance between each projection point and each wall line of the initial plane wireframe diagram, finding the projection point near each wall line, fitting the projection line, when the fitting result matches the corresponding wall line in the initial plane wireframe diagram, using the projection line as the corrected wall line corresponding to the wall line, and obtaining the corrected plane wireframe diagram based on this. Optionally, it is also possible to directly determine the distance between each point and each wall line in the initial plane wireframe diagram based on the X, Y coordinates of the points in the target three-dimensional point cloud model within the same height range as the initial plane wireframe diagram, and then determine the points near each wall line, fit the line segment, when the fitted line segment matches the corresponding wall line, use the line segment as the corrected wall line corresponding to the wall line, based on this, determine the corrected wall line corresponding to each wall line, and determine the corrected plane wireframe diagram based on the corrected wall line. The specific correction method can be set according to actual needs, and this embodiment is not limited.
[0097] Step 203, based on the modified plane wireframe diagram and the target three-dimensional point cloud model, determine the height information corresponding to each functional room of the target house.
[0098] Among them, the functional room refers to each space divided in the target house, such as a bedroom, a living room, a dining room, a bathroom, etc. The height information of the functional room may include the top height and the ground height of the functional room. The height information may be determined based on the rule that the number of points on the top and the ground of the functional room in the target three-dimensional point cloud model is greater than the number of points in the middle part. The height information may also be determined based on the rule that the point density in the middle area of the horizontal plane between the top and the ground of the functional room is greater than that between the top and the ground. The height information may also be determined in other possible ways, which may be set according to actual needs and is not limited in this embodiment.
[0099] Step 204, based on the modified plane wireframe diagram and the height information corresponding to each function, a three-dimensional floor plan corresponding to the target house is generated.
[0100] Among them, the three-dimensional floor plan corresponding to the target house is a floor plan representing the three-dimensional spatial structure of the target house. After obtaining the modified plane wireframe diagram and the height information corresponding to each functional room, the three-dimensional wireframes corresponding to each functional room can be determined by translating and stretching the modified plane wireframe diagram along the height direction. Based on the three-dimensional wireframes corresponding to each functional room, the three-dimensional floor plan corresponding to the target house can be determined.
[0101] Optionally, the obtained three-dimensional wireframes between the functions of the target house can be merged according to the adjacent relationship of the modified plane wireframe diagram to obtain the three-dimensional floor plan of the target house.
[0102] Optionally, the result of the fusion of the three-dimensional wireframes between the functions can be combined with other elements of the target house (such as doors, windows, etc.) to generate a three-dimensional floor plan of the target house. The specific setting can be based on actual needs. For determining the information of other elements, any feasible method can be adopted, and this disclosure does not limit it.
[0103] The method for generating a floor plan provided by the embodiment of the present disclosure corrects the initial plane wireframe diagram of the house through the three-dimensional point cloud model of the house to obtain a more accurate corrected plane wireframe diagram, and can automatically determine the height information between each function based on the corrected plane wireframe diagram and the three-dimensional point cloud model, so that the three-dimensional floor plan of the house can be generated based on the corrected plane wireframe diagram and the height information between each function, thereby effectively improving the accuracy of the floor plan and solving technical problems such as the floor plan obtained by the prior art being not accurate enough.
[0104] Figure 3 It is a flowchart of a method for generating a floor plan provided by another exemplary embodiment of the present disclosure.
[0105] In an optional example, the height information includes the top height and the ground height. Step 204 generates a three-dimensional floor plan corresponding to the target house based on the modified plane wireframe diagram and the height information corresponding to each function, including:
[0106] Step 2041, for any functional room, based on the modified plan wireframe diagram, determine the first wireframe information at the top height and the second wireframe information at the ground height corresponding to the functional room.
[0107] Among them, the top height may refer to the coordinate of the top of the functional room in the Z-axis direction in the first coordinate system, and the ground height may refer to the coordinate of the ground of the functional room in the Z-axis direction in the first coordinate system. The first wireframe information at least includes the wall line information and the wall line endpoint information of the functional room at the top height. The wall line information may be the straight line description information. For example, taking the top and the ground of the functional room parallel to the XOY axis as an example, the wall line information may be the parameters k and b describing the straight line y=kx+b, k represents the slope of the straight line, and b represents the intercept of the straight line. Since the wall line represented here is parallel to the XOY plane, the Z coordinate of the wall line is a fixed value. The specific wall line information may be determined according to the actual situation, and this embodiment does not limit it. The wall line endpoint information is the coordinates of the wall line endpoints, for example, the two endpoints are (x1, y1, z1) and (x2, y2, z2) respectively. Similarly, the second wireframe information includes the wall line information and the wall line endpoint information of the functional room at the ground height, and the specific description is not repeated.
[0108] Step 2042, determining a three-dimensional floor plan based on the first wireframe information and the second wireframe information corresponding to each function.
[0109] After determining the first wireframe information and the second wireframe information corresponding to each functional room, the wall line vertices in the first wireframe information of each functional room can be connected with the corresponding wall line vertices in the second wireframe information to form wall lines in the Z-axis direction, so as to obtain the three-dimensional wireframes corresponding to each functional room, and then the three-dimensional wireframes corresponding to each functional room can be fused to obtain the three-dimensional floor plan of the target house.
[0110] For example, Figure 4 It is a schematic diagram of a modified plan wireframe diagram of a target house provided by an exemplary embodiment of the present disclosure, and the modified plan wireframe diagram includes modified wall lines and wall line endpoints respectively corresponding to various functions. Figure 5 It is a three-dimensional wireframe schematic diagram of a functional room of a target house provided by an exemplary embodiment of the present disclosure. In this example, the plane wireframe of the functional room is a rectangle, and the obtained three-dimensional frame line of the functional room is a cube. In practical applications, since the three-dimensional wireframe of a functional room is obtained by translating and stretching the plane wireframe of the functional room in a direction perpendicular to the plane where the plane wireframe is located, the cross section of the three-dimensional wireframe of a functional room at any height is the same as the shape of its plane wireframe. The details are not repeated here.
[0111] In an optional example, step 203 determines the height information corresponding to each functional room of the target house based on the modified plane wireframe diagram and the target three-dimensional point cloud model, including:
[0112] Step 2031 , based on the modified plane wireframe diagram, extract the first point cloud data corresponding to each function from the target three-dimensional point cloud model.
[0113] Among them, the target three-dimensional point cloud model includes the point cloud data of each functional room in the target room in the first coordinate system, and the point cloud data of the functional room includes the coordinates of the points on the wall, top, and ground of the functional room collected. The revised plane wireframe includes the partition information of each functional room. For example, the revised plane wireframe is represented by a two-level data structure. The first level is the functional room identification, such as the functional room ID, and the second level is the wall line information and wall line endpoint information of the functional room. The specific representation method is not limited. Combined with the correspondence between the target three-dimensional point cloud model and the functional room of the revised plane wireframe, the point cloud data corresponding to each functional room can be extracted from the target three-dimensional point cloud model based on the X-coordinate and Y-coordinate of each functional room in the revised plane wireframe, which is called the first point cloud data.
[0114] Exemplarily, taking the case where the modified plane wireframe is located in the XOY plane, the ground of the target house represented by the target 3D point cloud model is parallel to the XOY plane, or is set in the XOY plane corresponding to the modified plane wireframe. Then, according to the area formed by the X coordinates and Y coordinates of the functional rooms in the modified plane wireframe, the area is translated along the Z axis to determine whether the X coordinates and Y coordinates of each point in the target 3D point cloud model belong to the range of the functional rooms, and the first point cloud data corresponding to the functional rooms can be extracted from the target 3D point cloud model. In actual applications, the modified plane wireframe may not be set to the XOY plane of the first coordinate system, but may be any plane. The specific processing principle is similar to the above content. Based on the principle that the ground of the target 3D point cloud model is parallel to the modified plane wireframe and the functional rooms of the target 3D point cloud model are consistent with the functional rooms of the modified plane wireframe, the first point cloud data corresponding to the functional rooms are extracted. The specific principle will not be repeated.
[0115] Step 2032: Based on the first point cloud data corresponding to each function, determine the top height and the ground height corresponding to each function.
[0116] Since the first point cloud data of each functional room includes the point data of the top, ground, and surrounding walls of the functional room, the points belonging to the top and ground can be determined based on the distribution characteristics of the points in the first point cloud data of the functional room, and based on this, the top height and the ground height can be determined. The top height can be the coordinate in the Z-axis direction corresponding to the top, and the ground height can refer to the Z-axis coordinate corresponding to the ground. The specific method of determining the top height and the ground height can be set according to actual needs.
[0117] Figure 6 It is a flowchart diagram of step 2032 provided by an exemplary embodiment of the present disclosure.
[0118] In an optional example, determining the top height and the ground height corresponding to each function based on the first point cloud data corresponding to each function in step 2032 includes:
[0119] Step 20321, for any functional room, based on the first point cloud data corresponding to the functional room, determine the number of points included in multiple height ranges respectively.
[0120] Among them, the number and specific ranges of height ranges can be set according to actual needs. For example, the height range can be 1 cm as a height range, and the number of height ranges is determined based on the distribution height of the points in the first point cloud data.
[0121] Step 20322, based on the number of points included in each height range, determine the corresponding top height and ground height between functions.
[0122] Since the top height range includes points on the entire top, and the ground height range includes points on the entire ground, other height ranges only include points on the wall. Based on the different number of points distributed at the top and bottom of the functional room and the middle height, it can be determined that there are two height ranges with significantly more points. Combined with the up-and-down relationship between the two ranges, it can be determined which height is the top and which height is the ground, thereby determining the top height and ground height of the functional room.
[0123] For example, Figure 7 This is a schematic diagram of the principle of determining height information between functions provided by an exemplary embodiment of the present disclosure. This example still takes the case where the ground point of the target three-dimensional point cloud model is parallel to the XOY plane of the first coordinate system as an example, divides the first point cloud data between functions into n height ranges along the Z-axis direction, calculates the number of points included in each height range, and determines the heights of the two ranges with the largest number of points as the top height and the ground height.
[0124] In an optional example, step 202 corrects the initial plane wireframe diagram based on the target three-dimensional point cloud model to obtain a corrected plane wireframe diagram corresponding to the target house, including:
[0125] Step 2021, vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe diagram is located to obtain a projection result, where the projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located.
[0126] Among them, since the initial plane wireframe diagram is parallel to the ground of the target three-dimensional point cloud model, the target three-dimensional point cloud model can be directly projected vertically onto the plane where the initial plane wireframe diagram is located, and the projection result of the target three-dimensional point cloud model can be obtained. The projection points included in the projection result are the points where each point in the target three-dimensional point cloud model is vertically projected to the plane where the initial plane wireframe diagram is located.
[0127] Exemplarily, when the initial plane wireframe is located in the XOY plane of the first coordinate system, the Z coordinate of each point in the target three-dimensional point cloud model can be set to 0, and the projection point corresponding to each point can be obtained.
[0128] For example, Figure 8 It is a schematic diagram of a projection result provided by an exemplary embodiment of the present disclosure.
[0129] Step 2022, correcting the initial plane wireframe diagram according to the projection result to obtain a corrected plane wireframe diagram.
[0130] Since the target 3D point cloud model includes the coordinates of the points on the walls, top and ground of the functional rooms of the target house, after being projected onto the plane where the initial plane wireframe diagram is located, the density of projection points on the wall part is relatively large. Therefore, based on the positional relationship between the projection points and the wall lines in the initial plane wireframe diagram, the projection points belonging to the wall can be determined, thereby fitting the projection wall lines, and the initial plane wireframe diagram can be corrected based on the projection wall lines to obtain the corrected plane wireframe diagram.
[0131] Fig. 9 It is a flowchart of step 2022 provided by an exemplary embodiment of the present disclosure.
[0132] In an optional example, step 2022 corrects the initial plane wireframe image according to the projection result to obtain the corrected plane wireframe image, including:
[0133] Step 20221, based on the projection result, determine the distance from each projection point to each original wall line in the initial plane wireframe diagram.
[0134] Since the projection result includes the coordinates of each projection point projected onto the plane where the initial plane wireframe diagram is located, and the initial plane wireframe diagram includes the wall line information and wall line endpoint information of each original wall line, the distance from each projection point to each original wall line in the initial plane wireframe diagram can be determined based on the calculation principle of the distance from a point to a straight line. The specific principle will not be repeated here.
[0135] Step 20222: for any original wall line, based on the distances from each projection point to the original wall line, determine a target projection point whose distance to the original wall line is less than a first distance threshold.
[0136] Based on the correspondence between the functions of the target 3D point cloud model and the initial plane wireframe, the projection points of the target 3D point cloud model on the plane where the initial plane wireframe is located have the characteristic of densely distributed wall line points, and are distributed near the corresponding wall lines in the initial plane wireframe. Therefore, based on the distance from the projection point to the original wall line, the correspondence between the projection point and the original wall line can be determined.
[0137] Step 20223, determining the corrected wall line corresponding to the original wall line based on each target projection point.
[0138] After determining the target projection point corresponding to an original wall line, the projection wall line corresponding to the original wall line can be fitted based on the target projection points corresponding to the original wall line, and the corrected wall line corresponding to the original wall line can be determined based on the comparison result between the projection wall line and the original wall line, wherein the comparison result includes two results, namely, matching and mismatching, which can be determined according to the preset comparison rules, and the comparison rules can be set according to actual needs, such as the angle between the projection wall line and the original wall line is less than the angle threshold, the distance from the endpoint of the original wall line to the projection wall line is less than the distance threshold, the overlap between the projection wall line and the original wall line is greater than the overlap threshold, etc., without specific limitation, to ensure the accuracy of the projection wall line. When the projection wall line and the original wall line meet the comparison rules, it can be determined that the projection wall line matches the original wall line, otherwise it is determined that the projection wall line does not match the original wall line. When the projection wall line matches the original wall line, the projection wall line is used as the corrected wall line corresponding to the original wall line, otherwise the original wall line is used as the corrected wall line.
[0139] Step 20224, based on the endpoints of the original wall line, determine the endpoints of the corrected wall line.
[0140] Specifically, the endpoints of the original wall line may be vertically projected onto the straight line of the modified wall line to determine the endpoints of the modified wall line, thereby obtaining the modified wall line segments.
[0141] Step 20225, determining a revised plane wireframe diagram based on the revised wall lines corresponding to the original wall lines and the endpoints of the revised wall lines.
[0142] Specifically, based on the corrected wall lines and the endpoints of the corrected wall lines corresponding to the original wall lines, the corrected wall line segments can be determined, and then the intersection points of the straight lines of adjacent corrected wall line segments can be found to obtain the final endpoints of each corrected wall line, so that each corrected wall line forms a complete polygon corresponding to the functional room, and the complete polygons corresponding to each functional room form a corrected plane wireframe corresponding to the target house.
[0143] The present invention corrects the initial plane wireframe diagram by projecting the target three-dimensional point cloud model on the plane where the initial plane wireframe diagram is located, thereby improving the accuracy of the plane floor plan, and then generating a three-dimensional floor plan based on the corrected plane wireframe diagram to ensure the accuracy of the generated three-dimensional floor plan.
[0144] In an optional example, the step 201 of obtaining an initial plane wireframe diagram and a target three-dimensional point cloud model in a first coordinate system of a target house includes:
[0145] Step 2011, obtaining the plane wireframe information and original three-dimensional point cloud data of the target house.
[0146] The plane wireframe information of the target house may include the length information of each wall of each functional room of the target house, the adjacent relationship between the walls and other related information, which can be set according to actual needs, as long as the polygonal structure of the target house floor plan can be determined. The original three-dimensional point cloud data can be the three-dimensional point cloud data of the target house obtained based on any feasible measuring device. The measuring device can be, for example, a laser-based scanning device, which is not specifically limited.
[0147] Step 2012: Determine an initial plane wireframe diagram of the target house in the first coordinate system based on the plane wireframe information.
[0148] In order to facilitate the correction of the initial plane wireframe diagram, the plane wireframe information and the original three-dimensional point cloud data of the target house are unified into the first coordinate system. The first coordinate system can be set according to actual needs, such as the world coordinate system, or other coordinate systems with relative coordinate origins, without specific limitations. After determining the first coordinate system, based on the plane wireframe information of the target house, the initial plane wireframe diagram of the target house in the first coordinate system is determined. The initial plane wireframe diagram may include the original wall line information and the original wall line endpoint information of each functional room of the target house in the first coordinate system. The original wall line information includes the straight line representation parameters of the original wall line in the first coordinate system, and the original wall line endpoint information includes the endpoint coordinates of the original wall line in the first coordinate system, so that the initial plane wireframe diagram composed of polygons of the target house in the first coordinate system can be obtained as the plane floor plan of the target house.
[0149] Step 2013, converting the original three-dimensional point cloud data into the first coordinate system to obtain a target three-dimensional point cloud model of the target house in the first coordinate system.
[0150] The conversion of the original three-dimensional point cloud data to the first coordinate system can be performed based on the mapping relationship between the coordinate system of the original three-dimensional point cloud data and the first coordinate system. The mapping relationship can be determined in combination with the initial plane wireframe diagram, such as taking any preset position in the target house as a reference, ensuring that the point corresponding to the preset position in the initial plane wireframe diagram and the point corresponding to the preset position in the target three-dimensional point cloud model are the same point in the first coordinate system, and ensuring that the horizontal directions between the functions in the initial plane wireframe diagram are consistent with the functions in the target three-dimensional point cloud model. The specific mapping principle will not be repeated.
[0151] The floor plan generation method disclosed in the present invention can combine the manually drawn initial floor plan and the scanned three-dimensional point cloud model to first obtain an accurate floor plan. Then, based on the three-dimensional point cloud model, the height information of each functional room of the house can be extracted, and the two-dimensional floor plan can be converted into a three-dimensional floor plan, thereby ensuring the accurate heights of the different functional rooms of the house, realizing the accurate and automatic generation of the three-dimensional floor plan, and effectively improving the accuracy of the three-dimensional floor plan.
[0152] Any of the floor plan generation methods provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any of the floor plan generation methods provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any of the floor plan generation methods mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.
[0153] Exemplary Devices
[0154] Fig.10 is a schematic diagram of the structure of a floor plan generating device provided by an exemplary embodiment of the present disclosure. The device of this embodiment can be used to implement the corresponding method embodiments of the present disclosure, such as Fig.10 The device shown includes: a first acquisition module 501 , a first processing module 502 , a second processing module 503 and a third processing module 504 .
[0155] The first acquisition module 501 is used to obtain an initial plane wireframe diagram and a target three-dimensional point cloud model in a first coordinate system of a target house; the first processing module 502 is used to correct the initial plane wireframe diagram based on the target three-dimensional point cloud model obtained by the first acquisition module 501, and obtain a corrected plane wireframe diagram corresponding to the target house; the second processing module 503 is used to determine the height information corresponding to each functional room of the target house based on the corrected plane wireframe diagram and the target three-dimensional point cloud model obtained by the first processing module 502; the third processing module 504 is used to generate a three-dimensional floor plan corresponding to the target house based on the corrected plane wireframe diagram and the height information corresponding to each functional room.
[0156] Fig.11 It is a structural schematic diagram of a floor plan generating device provided by another exemplary embodiment of the present disclosure.
[0157] In an optional example, the height information includes the top height and the ground height; the third processing module 504 includes: a first processing unit 5041 and a second processing unit 5042.
[0158] The first processing unit 5041 is used to determine, for any functional room, first wireframe information at the top height and second wireframe information at the ground height corresponding to the functional room based on the modified plan wireframe diagram; the second processing unit 5042 is used to determine the three-dimensional floor plan based on the first wireframe information and the second wireframe information respectively corresponding to each functional room.
[0159] In an optional example, the second processing module 503 includes: a third processing unit 5031 and a fourth processing unit 5032 .
[0160] The third processing unit 5031 is used to extract the first point cloud data corresponding to each function from the target three-dimensional point cloud model based on the modified plane wireframe diagram; the fourth processing unit 5032 is used to determine the top height and ground height corresponding to each function based on the first point cloud data corresponding to each function.
[0161] In an optional example, the fourth processing unit 5032 is specifically used to: for any functional room, determine the number of points respectively included in multiple height ranges based on the first point cloud data corresponding to the functional room; and determine the top height and ground height corresponding to the functional room based on the number of points respectively included in each height range.
[0162] In an optional example, the first processing module 502 includes: a fifth processing unit 5021 and a sixth processing unit 5022 .
[0163] The fifth processing unit 5021 is used to vertically project the target three-dimensional point cloud model onto the plane where the initial plane wireframe diagram is located to obtain a projection result, which includes the coordinates of each projection point projected onto the plane where the initial plane wireframe diagram is located; the sixth processing unit 5022 is used to correct the initial plane wireframe diagram according to the projection result to obtain a corrected plane wireframe diagram.
[0164] In an optional example, the sixth processing unit 5022 is specifically used to: determine the distances from each projection point to each original wall line in the initial plane wireframe diagram based on the projection results; for any original wall line, determine a target projection point whose distance from the original wall line is less than a first distance threshold based on the distances from each projection point to the original wall line; determine a corrected wall line corresponding to the original wall line based on each target projection point; determine the endpoints of the corrected wall line based on the endpoints of the original wall line; determine a corrected plane wireframe diagram based on the corrected wall lines corresponding to each original wall line and the endpoints of the corrected wall lines.
[0165] In an optional example, the first acquisition module 501 includes: an acquisition unit 5011 , a determination unit 5012 and a conversion unit 5013 .
[0166] The acquisition unit 5011 is used to acquire the plane wireframe information and original three-dimensional point cloud data of the target house; the determination unit 5012 is used to determine the initial plane wireframe diagram of the target house in the first coordinate system based on the plane wireframe information; the conversion unit 5013 is used to convert the original three-dimensional point cloud data to the first coordinate system to obtain the target three-dimensional point cloud model of the target house in the first coordinate system.
[0167] In addition, an embodiment of the present disclosure further provides an electronic device, including:
[0168] A memory is used to store 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, the floor plan generation method described in any of the above embodiments of the present disclosure is implemented.
[0169] Fig.12 FIG. 1 is a schematic diagram of a structure of an application embodiment of the electronic device disclosed in the present invention. Fig.12 As shown, the electronic device includes one or more processors and memory.
[0170] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0171] The memory may store one or more computer program products, and the memory may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program products may be stored on the computer-readable storage medium, and the processor may run the computer program product to implement the above-described floor plan generation method of each embodiment of the present disclosure and / or other desired functions.
[0172] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0173] In addition, the input device may also include, for example, a keyboard, a mouse, and the like.
[0174] The output device can output various information to the outside, including the determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0175] Of course, to simplify, Fig.12 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, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.
[0176] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the floor plan generation method according to various embodiments of the present disclosure described in the above part of this specification.
[0177] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0178] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the floor plan generation method according to various embodiments of the present disclosure described in the above part of this specification.
[0179] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media 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.
[0180] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0181] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.
[0182] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred 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 be referred to the partial description of the method embodiment.
[0183] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, 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 therewith.
[0184] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically 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, which includes 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.
[0185] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0186] 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 rather to the widest scope consistent with the principles and novel features disclosed herein.
[0187] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for generating a floor plan, characterized in that: include: Obtaining an initial plane wireframe diagram and a target three-dimensional point cloud model of the target house in the first coordinate system; Based on the target three-dimensional point cloud model, the initial plane wireframe diagram is corrected to obtain a corrected plane wireframe diagram corresponding to the target house; Based on the modified plane wireframe diagram and the target three-dimensional point cloud model, determining the height information corresponding to each functional room of the target house; Generate a three-dimensional floor plan corresponding to the target house based on the modified plane wireframe diagram and the height information corresponding to each of the functions; The step of determining the height information corresponding to each functional room of the target house based on the modified plane wireframe diagram and the target three-dimensional point cloud model includes: Based on the modified plane wireframe diagram, extracting first point cloud data corresponding to each of the functions from the target three-dimensional point cloud model; For any of the functional rooms, determining the number of points respectively included in a plurality of height ranges based on the first point cloud data corresponding to the functional room; Determine the top height and ground height corresponding to the function room based on the number of points respectively included in each of the height ranges; The method of correcting the initial plane wireframe diagram based on the target three-dimensional point cloud model to obtain a corrected plane wireframe diagram corresponding to the target house includes: The target three-dimensional point cloud model is vertically projected onto the plane where the initial planar wireframe diagram is located to obtain a projection result, wherein the projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located; Based on the projection result, determining the distances from each of the projection points to each of the original wall lines in the initial plane wireframe diagram; For any of the original wall lines, based on the distances from each of the projection points to the original wall line, determine a target projection point whose distance from the original wall line is less than a first distance threshold; Determine a corrected wall line corresponding to the original wall line based on each of the target projection points; Based on the endpoints of the original wall line, determining the endpoints of the corrected wall line; Determine the modified plane wireframe diagram based on the modified wall lines corresponding to the original wall lines and the endpoints of the modified wall lines; The determining the corrected wall line corresponding to the original wall line based on each of the target projection points includes: Fitting a projection wall line corresponding to the original wall line based on each of the target projection points; Based on the comparison result between the projected wall line and the original wall line, the corrected wall line corresponding to the original wall line is determined.
2. The method according to claim 1, characterized in that The height information includes the top height and the ground height; the generating of the three-dimensional floor plan corresponding to the target house based on the modified plane wireframe diagram and the height information corresponding to each of the functions includes: For any of the functional rooms, based on the modified plan wireframe diagram, determine first wireframe information at the top height and second wireframe information at the ground height corresponding to the functional room; The three-dimensional floor plan is determined based on the first wireframe information and the second wireframe information respectively corresponding to each of the functions.
3. The method according to any one of claims 1-2, characterized in that: The step of obtaining an initial plane wireframe diagram and a target three-dimensional point cloud model of a target house in a first coordinate system includes: Obtaining plane wireframe information and original three-dimensional point cloud data of the target house; Based on the plane wireframe information, determining the initial plane wireframe diagram of the target house in the first coordinate system; The original three-dimensional point cloud data is converted into the first coordinate system to obtain the target three-dimensional point cloud model of the target house in the first coordinate system.
4. A floor plan generating device, characterized in that: include: A first acquisition module is used to acquire an initial plane wireframe diagram and a target three-dimensional point cloud model of a target house in a first coordinate system; A first processing module is used to modify the initial plane wireframe diagram based on the target three-dimensional point cloud model to obtain a modified plane wireframe diagram corresponding to the target house; A second processing module is used to determine the height information corresponding to each functional room of the target house based on the modified plane wireframe diagram and the target three-dimensional point cloud model; A third processing module, configured to generate a three-dimensional floor plan corresponding to the target house based on the modified plane wireframe diagram and the height information corresponding to each of the functions; The second processing module comprises: A third processing unit is used to extract first point cloud data corresponding to each of the functions from the target three-dimensional point cloud model based on the modified plane wireframe diagram; The fourth processing unit is used to determine, for any of the functional rooms, the number of points respectively included in a plurality of height ranges based on the first point cloud data corresponding to the functional room; and determine the top height and ground height corresponding to the functional room based on the number of points respectively included in each of the height ranges; The first processing module comprises: a fifth processing unit, configured to vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe diagram is located, to obtain a projection result, wherein the projection result includes coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located; The sixth processing unit is used to: determine the distances from each of the projection points to each of the original wall lines in the initial plane wireframe based on the projection results; for any of the original wall lines, determine a target projection point whose distance from the original wall line is less than a first distance threshold based on the distances from each of the projection points to the original wall line; determine a revised wall line corresponding to the original wall line based on each of the target projection points; determine an endpoint of the revised wall line based on an endpoint of the original wall line; determine the revised plane wireframe based on the revised wall lines corresponding to each of the original wall lines and the endpoints of the revised wall lines; The sixth processing unit is specifically used to: fit the projection wall line corresponding to the original wall line based on each of the target projection points; and determine the corrected wall line corresponding to the original wall line based on a comparison result between the projection wall line and the original wall line.
5. 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 3 above.
6. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method and device for generating room structure model based on two-dimensional image
CN112116714A
House layout drawing generation method and device, computing equipment and storage medium
CN112200916A