WO2024031973A1 - Floor plan generation method and apparatus, and electronic device and storage medium - Google Patents

Floor plan generation method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2024031973A1
WO2024031973A1 PCT/CN2023/079375 CN2023079375W WO2024031973A1 WO 2024031973 A1 WO2024031973 A1 WO 2024031973A1 CN 2023079375 W CN2023079375 W CN 2023079375W WO 2024031973 A1 WO2024031973 A1 WO 2024031973A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireframe
target
point cloud
plane
house
Prior art date
Application number
PCT/CN2023/079375
Other languages
French (fr)
Chinese (zh)
Inventor
李伟
胡洋
Original Assignee
如你所视(北京)科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 如你所视(北京)科技有限公司 filed Critical 如你所视(北京)科技有限公司
Publication of WO2024031973A1 publication Critical patent/WO2024031973A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Definitions

  • the present disclosure relates to computer technology, and in particular to a method, device, electronic device and storage medium for generating a house plan.
  • Houses are one of the important places in people's daily lives, and floor plans are one of the essential information for people to understand the houses. Therefore, it is very important to construct accurate house floor plans.
  • the house plan is usually drawn manually through manual measurement, and the house plan obtained based on this is often not accurate enough.
  • Embodiments of the present disclosure provide a method, device, electronic device, and storage medium for generating a house plan to solve technical problems such as insufficient accuracy of house plans in the prior art.
  • One aspect of an embodiment of the present disclosure provides a method for generating a house plan, including:
  • a three-dimensional floor plan corresponding to the target house is generated.
  • Another aspect of the embodiment of the present disclosure provides a device for generating a house plan, including:
  • the first acquisition module is used to acquire the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house;
  • the first processing module is used to modify the initial planar wireframe based on the target three-dimensional point cloud model to obtain a corrected planar wireframe corresponding to the target house;
  • the second processing module is used to determine the height information corresponding to each function of the target house based on the modified plane wireframe and the target three-dimensional point cloud model;
  • the third processing module is configured to generate a three-dimensional floor plan corresponding to the target house based on the modified plan wireframe and the height information corresponding to each of the functions.
  • Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium on which computer program instructions are stored.
  • the computer program instructions are executed by a processor, the method described in any of the above embodiments of the disclosure is implemented.
  • Another aspect of the embodiments of the present disclosure provides an electronic device, where the electronic device includes:
  • a processor configured to execute a computer program product stored in the memory, and when the computer program product is executed, implement the method described in any of the above embodiments of the present disclosure.
  • the household plan generation method, device, electronic equipment and storage medium correct the initial plan wireframe of the house through the three-dimensional point cloud model of the house to obtain a more accurate corrected plan wireframe, and can based on the correction
  • the plane wireframe and the three-dimensional point cloud model automatically determine the height information between each function, so that the three-dimensional house plan of the house can be generated based on the corrected plane wireframe and the height information between each function, effectively improving the accuracy of the house plan and solving the existing problem.
  • There are technical problems such as the floor plans obtained through technology are not accurate enough.
  • Figure 1 is an exemplary application scenario of the house plan generation method provided by the present disclosure
  • Figure 2 is a schematic flowchart of a method for generating a house plan provided by an exemplary embodiment of the present disclosure
  • Figure 3 is a schematic flowchart of a method for generating a house plan provided by another exemplary embodiment of the present disclosure
  • Figure 4 is a schematic diagram of a modified plan wireframe diagram of a target house provided by an exemplary embodiment of the present disclosure
  • Figure 5 is a three-dimensional wireframe schematic diagram of a functional room of the target house provided by an exemplary embodiment of the present disclosure
  • Figure 6 is a schematic flowchart of step 2032 provided by an exemplary embodiment of the present disclosure.
  • Figure 7 is a schematic diagram of the principle of determining inter-function height information provided by an exemplary embodiment of the present disclosure
  • Figure 8 is a schematic diagram of projection results provided by an exemplary embodiment of the present disclosure.
  • Figure 9 is a schematic flowchart of step 2022 provided by an exemplary embodiment of the present disclosure.
  • Figure 10 is a schematic structural diagram of a house plan generation device provided by an exemplary embodiment of the present disclosure.
  • Figure 11 is a schematic structural diagram of a house plan generation device provided by another exemplary embodiment of the present disclosure.
  • Figure 12 is a schematic structural diagram of an application embodiment of the electronic device of the present disclosure.
  • plural may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
  • Embodiments of the present disclosure may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which may operate with numerous other general or special purpose computing system environments or configurations.
  • Examples of well-known terminal devices, computing systems, environments and/or configurations suitable for use with terminal devices, computer systems, servers and other electronic devices include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients Computers, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, small computer systems, mainframe computer systems and distributed cloud computing technology environments including any of the above systems, etc.
  • Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system executable instructions (such as program modules) being executed by the computer system.
  • program modules may include routines, programs, object programs, components, logic, data structures, etc., that perform specific tasks or implement specific abstract data types.
  • the computer system/server may be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices linked through a communications network.
  • program modules may be located on local or remote computing system storage media including storage devices.
  • the inventor found that the house floor plan is one of the indispensable information for people to understand the house. Therefore, it is very important to construct an accurate house floor plan.
  • house floor plans are usually obtained by manual drawing based on manual measurements, and the house floor plans obtained based on this are often not accurate enough.
  • Figure 1 is an exemplary application scenario of the house plan generation method provided by the present disclosure.
  • the user plan generation device is used to execute the house plan generation method of the present disclosure, which can be based on the pre-obtained house (hereinafter referred to as the target house).
  • the target house pre-obtained house
  • the target three-dimensional point cloud model corrects the pre-obtained initial floor plan of the house (i.e., initial plan wireframe) to obtain a more accurate plan wireframe of the target house (i.e., corrected plan wireframe), and then based on the corrected plan line
  • the block diagram and the target 3D point cloud model determine the height information corresponding to each function of the target house.
  • a three-dimensional house plan corresponding to the target house is generated, and the three-dimensional house plan of the house is realized.
  • the automatic generation of the house plan effectively improves the accuracy of the house plan and solves technical problems such as the insufficient accuracy of the three-dimensional house plan obtained by the existing technology.
  • Figure 2 is a schematic flowchart of a method for generating a house plan provided by an exemplary embodiment of the present disclosure. The method includes the following steps:
  • Step 201 Obtain the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house.
  • the target house can be any house that needs to generate a three-dimensional floor plan
  • the initial plan wireframe can be a polygonal wireframe of the target house obtained by any method.
  • the manually drawn polygonal wireframe is mapped to the first coordinate system as the target house.
  • Initial plane wireframe in world coordinate system.
  • the target three-dimensional point cloud model may be a three-dimensional point cloud model obtained based on mapping the original three-dimensional point cloud data collected by scanning to the first coordinate system.
  • the first coordinate system can be the world coordinate system, or it can be set as a relative coordinate system that has a certain mapping relationship with the world coordinate system according to actual needs.
  • the first coordinate system can be set according to actual needs, as long as the initial plane wireframe diagram can be aligned with the target three-dimensional point cloud model. Just be 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 an initial planar wireframe diagram and a target three-dimensional point cloud model of the target house in this first coordinate system are obtained. There is no specific limit.
  • the initial plane wireframe since the initial plane wireframe does not have height information, the initial plane wireframe can be mapped to the XOY plane of the first coordinate system to facilitate subsequent processing.
  • the details can be set according to actual needs.
  • step 201 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the first acquisition module run by the processor.
  • Step 202 Modify the initial plane wireframe based on the target three-dimensional point cloud model to obtain a corrected plane wireframe corresponding to the target house.
  • the correction to the initial plane wireframe can be by vertically projecting the target three-dimensional point cloud model onto the plane where the initial plane wireframe is located, and based on the distance between each projection point and each wall line of the initial plane wireframe, find the vicinity of each wall line The projection point is used to fit the projection line.
  • the projection line is used as the corrected wall line corresponding to the wall line, and a modified plane wireframe is obtained based on this.
  • the distance between each point and each wall line in the initial plane wireframe diagram can also be determined directly based on the X and 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 distance between each point and the wall line in the initial plane wireframe diagram.
  • Points near the wall line are fitted to a line segment.
  • the line segment matches the corresponding wall line, the line segment is used as the corrected wall line corresponding to the wall line. Based on this, the corrected wall line corresponding to each wall line is determined. Based on the corrected wall line, determine the corrected plane wireframe.
  • the specific correction method can be set according to actual needs, and is not limited in this embodiment.
  • step 202 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the first processing module run by the processor.
  • Step 203 Based on the modified plane wireframe and the target three-dimensional point cloud model, determine the height information corresponding to each function of the target house.
  • the height information between functions can include the height of the top of the function room and the height of the ground.
  • the height information can be determined based on the rule that the number of points on the top and the ground of the function room is greater than the number of points in the middle part of the target three-dimensional point cloud model.
  • the height information can also be determined based on The height between the top of the function room and the ground is determined by the rule that the point density in the middle area of the horizontal plane is greater than the part between the top and the ground.
  • the height information can also be determined in other possible ways, and can be set according to actual needs. This embodiment does not limit it.
  • step 203 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by a second processing module run by the processor.
  • Step 204 Generate a three-dimensional floor plan corresponding to the target house based on the revised plan wireframe and the height information corresponding to each function.
  • the three-dimensional house plan corresponding to the target house is a house plan that represents the three-dimensional spatial structure of the target house.
  • the corrected plan wireframe can be translated and stretched in the height direction. Determine the three-dimensional wireframes corresponding to each function. Based on the three-dimensional wireframes corresponding to each function, determine the three-dimensional house plan corresponding to the target house.
  • the obtained three-dimensional wireframes between the functions of the target house can be fused according to the adjacent relationship of the modified planar wireframe to obtain a three-dimensional floor plan of the target house.
  • the results of the three-dimensional wireframe fusion between various functions can also 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 details can be set according to actual needs.
  • any implementable method can be used, and this disclosure does not limit it.
  • step 204 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by a third processing module run by the processor.
  • the household plan generation method corrects the initial planar wireframe of the house through the three-dimensional point cloud model of the house to obtain a more accurate corrected planar wireframe, and can automatically based on the corrected planar wireframe and the three-dimensional point cloud model Determine the height information between each function, so that a three-dimensional floor plan of the house can be generated based on the revised plan wireframe and the height information between each function, effectively improving the accuracy of the floor plan and solving the problem of inaccurate floor plans obtained by existing technologies. question.
  • Figure 3 is a schematic flowchart of a method for generating a house plan provided by another exemplary embodiment of the present disclosure.
  • 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 plan wireframe and the height information corresponding to each function, including:
  • Step 2041 For any functional room, based on the modified plane 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.
  • the top height may refer to the coordinates of the top of the function room in the Z-axis direction under the first coordinate system
  • the ground height may refer to So it refers to the coordinate of the Z-axis direction of the ground between functions in the first coordinate system.
  • the first wireframe information at least includes wall line information and wall line endpoint information at the top height of the functional room.
  • the wall line information can be straight line description information. For example, taking the top and floor of the functional room parallel to the XOY axis, the wall
  • 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 can be determined according to the actual situation, and is not limited in this embodiment.
  • the wall line endpoint information is the wall line endpoint coordinates.
  • the two endpoints are (x1, y1, z1) and (x2, y2, z2).
  • the second wireframe information includes the wall line between the function at the height of the ground. Information and wall line endpoint information, the details will not be repeated.
  • step 2041 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the first processing unit of the third processing module run by the processor.
  • Step 2042 Determine a three-dimensional house plan based on the first wireframe information and the second wireframe information corresponding to each function.
  • the wall line vertices in the first wireframe information between each function can be connected to the corresponding wall line vertices in the second wireframe information to form
  • the wall line in the Z-axis direction can be used to obtain the three-dimensional wire frames corresponding to each function, and then the three-dimensional wire frames corresponding to each function can be fused to obtain the three-dimensional floor plan of the target house.
  • FIG. 4 is a schematic diagram of a revised plan wireframe diagram of a target house provided by an exemplary embodiment of the present disclosure.
  • the revised plan wireframe diagram includes corrected wall lines and wall line endpoints corresponding to each function.
  • 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.
  • the plane wireframe between the functions is a rectangle
  • the obtained three-dimensional wireframe between the functions is a cube.
  • step 2042 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the second processing unit of the third processing module run by the processor.
  • step 203 determines the height information corresponding to each function of the target house based on the modified plane wireframe and the target three-dimensional point cloud model, including:
  • Step 2031 Based on the modified plane wireframe, the first point cloud data corresponding to each function is extracted from the target three-dimensional point cloud model.
  • 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.
  • the point cloud data of the functional room includes the collected coordinates of the points on the wall, top, and ground of the functional room.
  • the modified plan wireframe includes the partition information between each function.
  • the modified plan wireframe is represented by a two-level data structure. The first level is the identification between functions, such as the function ID, and the second level is the wall line information between functions. Wall line endpoint information, the specific representation method is not limited.
  • the point clouds corresponding to each function can be extracted from the target 3D point cloud model based on the X coordinates and Y coordinates of the functions of the modified plane wireframe diagram.
  • the data is called the first point cloud data.
  • the ground of the target house represented by the target three-dimensional point cloud model is parallel to the XOY plane, or is set in the XOY plane corresponding to the modified plane wireframe diagram, then according to the modified plane wireframe diagram
  • the modified plane wireframe diagram By translating the area formed by the X coordinate and Y coordinate between each function along the Z axis, it can be determined whether the X coordinate and Y coordinate of each point in the target 3D point cloud model belongs to the range between each function. Based on this, the target 3D point cloud can be obtained
  • the first point cloud data corresponding to each function is extracted from the model.
  • the corrected plane wireframe does not need to be set to the XOY plane of the first coordinate system.
  • It can be any plane.
  • the specific processing principle is similar to the above, based on the parallelism between the target three-dimensional point cloud model ground and the corrected plane wireframe. Based on the principle of consistency between the functions of the target 3D point cloud model and the functions of the modified plane wireframe, the first point cloud data corresponding to each function is extracted. The specific principles will not be described again.
  • step 2031 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the third processing unit of the second processing module run by the processor.
  • Step 2032 Based on the first point cloud data corresponding to each function, determine the top height and ground height corresponding to each function.
  • the first point cloud data of each functional room can include point data of the top, floor, and surrounding walls of the functional room, it can be determined based on the distribution characteristics of the points belonging to the top of the first point cloud data of the functional room. and ground points. Based on this, the top height and ground height can be determined.
  • the top height may refer to the Z-axis coordinate corresponding to the top
  • the ground height may refer to the Z-axis coordinate corresponding to the ground.
  • the specific method of determining the top height and ground height can be set according to actual needs.
  • step 2032 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the fourth processing unit of the second processing module run by the processor.
  • Figure 6 is a schematic flowchart of step 2032 provided by an exemplary embodiment of the present disclosure.
  • step 2032 determines the top height and ground height corresponding to each function based on the first point cloud data corresponding to each function, including:
  • Step 20321 For any function room, determine the number of points included in multiple height ranges based on the first point cloud data corresponding to the function room.
  • the number and specific range of height ranges can be set according to actual needs.
  • the height range can be every 1 centimeter as a height range, and the number of height ranges is determined based on the distribution height of the midpoint of the first point cloud data.
  • step 20321 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the fourth processing unit of the second processing module run by the processor.
  • Step 20322 Based on the number of points included in each height range, determine the corresponding top height and ground height between functions.
  • the top height range includes points across the top
  • the ground height range includes points across the entire ground.
  • Other height ranges only include points on the wall. Based on the different number of point distributions at the top, bottom and middle height of the functional room, it can be determined that there are significantly more points in the two height ranges. Combined with the upper and lower relationship between the heights of 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.
  • FIG. 7 is a schematic diagram of the inter-function height information determination principle provided by an exemplary embodiment of the present disclosure.
  • This example still takes the ground point of the target three-dimensional point cloud model as parallel to the XOY plane of the first coordinate system.
  • the first point cloud data between functions is divided into n height ranges along the Z-axis direction, and the included values within each height range are calculated.
  • the number of points determine the two range heights with the largest number of points, as the top height and the ground height.
  • step 20322 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the fourth processing unit of the second processing module run by the processor.
  • step 202 corrects the initial plan wireframe based on the target three-dimensional point cloud model to obtain a corrected plan wireframe corresponding to the target house, including:
  • Step 2021 Vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe is located, and obtain a projection result.
  • the projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe is located.
  • the target 3D point cloud model can be vertically projected directly onto the plane where the initial plane wireframe map is located, and the projection result of the target 3D point cloud model can be obtained.
  • the projection points included in the projection results are the points where each point in the target three-dimensional point cloud model is vertically projected to the plane of the initial planar wireframe.
  • 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.
  • FIG. 8 is a schematic diagram of projection results provided by an exemplary embodiment of the present disclosure.
  • step 2021 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the fifth processing unit of the first processing module run by the processor.
  • Step 2022 Modify the initial planar wireframe according to the projection results to obtain a modified planar wireframe.
  • the target three-dimensional point cloud model includes the coordinates of points on the walls, tops and floors of each function room of the target house, after being projected onto the plane where the initial planar wireframe is located, the projection point density of the wall part is relatively large, so it can Based on the positional relationship between the projection point and each wall line in the initial plane wireframe diagram, the projection point belonging to the wall is determined, thereby fitting the projected wall line.
  • the initial plane wireframe is corrected based on the projected wall lines to obtain the modified plane wireframe.
  • step 2022 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the sixth processing unit of the first processing module run by the processor.
  • Figure 9 is a schematic flowchart of step 2022 provided by an exemplary embodiment of the present disclosure.
  • step 2022 corrects the initial planar wireframe according to the projection result to obtain a modified planar wireframe, including:
  • Step 20221 Based on the projection results, determine the distances between each projection point and each original wall line in the initial plane wireframe diagram.
  • the initial plane wireframe diagram includes wall line information and wall line endpoint information of each original wall line. Therefore, based on the distance from the point to the straight line
  • the calculation principle can determine the distance from each projection point to each original wall line in the initial plane wireframe diagram. The specific principle will not be described again.
  • step 20221 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
  • Step 20222 For any original wall line, based on the distance of each projection point to the original wall line, determine the target projection point whose distance from the original wall line is less than the first distance threshold.
  • the projection points of the target 3D point cloud model on the plane where the initial plane wireframe diagram is located have the characteristics of dense distribution of wall line points, and will be distributed on the initial plane line.
  • the corresponding wall line in the block diagram is nearby. Therefore, the corresponding relationship between the projection point and the original wall line can be determined based on the distance from the projection point to the original wall line.
  • step 20222 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
  • Step 20223 Determine the corrected wall line corresponding to the original wall line based on each target projection point.
  • the projected wall line corresponding to the original wall line can be fitted based on each target projection point corresponding to the original wall line, based on the comparison between the projected wall line and the original wall line As a result, the corrected wall line corresponding to the original wall line is determined.
  • the comparison results include matching and non-matching results, which can be determined according to the preset comparison rules.
  • the comparison rules can be set according to actual needs, such as the projected wall line and the original wall line.
  • the angle between the wall lines is less than the angle threshold, the distance from the endpoint of the original wall line to the projected wall line is less than the distance threshold, the overlap between the projected wall line and the original wall line is greater than the coincidence threshold, etc., there are no specific restrictions, so Ensure the accuracy of projected wall lines.
  • the projected wall line and the original wall line meet the comparison rules, it can be determined that the projected wall line matches the original wall line, otherwise it is determined that the projected wall line and the original wall line do not match.
  • the projected wall line matches the original wall line, the projected 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.
  • step 20223 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
  • Step 20224 Based on the end points of the original wall line, determine the end points of the modified wall line.
  • the endpoint of the original wall line can be vertically projected onto the straight line of the corrected wall line to determine the endpoint of the corrected wall line, thereby obtaining the corrected wall line segment.
  • step 20224 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
  • Step 20225 Determine the corrected plane wireframe based on the corrected wall lines corresponding to each original wall line and the end points of the corrected wall lines.
  • the corrected wall line segments can be determined based on the end points of the corrected wall line and the corrected wall line corresponding to the original wall line, and then the intersection points of the straight lines of the adjacent corrected wall line segments can be obtained to obtain each corrected wall line segment.
  • the final endpoint of the wall line makes each corrected wall line form a complete polygon corresponding to the functions, and the complete polygons corresponding to each function form a corrected plan wireframe corresponding to the target house.
  • step 20225 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
  • This disclosure uses the projection of the target three-dimensional point cloud model on the plane where the initial plan wireframe is located to correct the initial plan wireframe, which can improve the accuracy of the plan house plan, and then generate a three-dimensional house plan based on the corrected plan wireframe, ensuring that the generated Accuracy of three-dimensional floor plans.
  • step 201 obtains the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house, including:
  • Step 2011 Obtain planar wireframe information and original three-dimensional point cloud data of the target house.
  • the planar wireframe information of the target house can include the length information of each wall in each function room of the target house, the adjacent relationship between the walls and other related information.
  • the details can be set according to actual needs, as long as the target can be determined.
  • the polygonal structure of the house floor plan is enough.
  • the original three-dimensional point cloud data may be the three-dimensional point cloud data of the target house obtained based on any implementable measuring device.
  • the measuring device may be, for example, a laser-based scanning device, and is not specifically limited.
  • step 2011 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the acquisition unit of the first acquisition module run by the processor.
  • Step 2012 Based on the plane wireframe information, determine the initial plane wireframe of the target house in the first coordinate system.
  • the plane wireframe information of the target house and the original three-dimensional point cloud data are unified into the first coordinate system.
  • the first coordinate system can be set according to actual needs, for example, it can be the world coordinate system, It can also be other coordinate systems that set the relative coordinate origin, and there is no specific limit.
  • an initial plan wireframe diagram of the target house in the first coordinate system is determined based on the plan wireframe information of the target house.
  • the initial plan wireframe diagram may include the layout of each function of the target house in the first coordinate system.
  • the original wall line information and the original wall line endpoint information under the original wall line information include 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 , thereby obtaining the initial planar wireframe diagram composed of polygons of the target house in the first coordinate system, which is used as the plan floor plan of the target house.
  • step 2012 may be executed by the processor calling a corresponding instruction stored in the memory, or may be executed by the determination unit of the first acquisition module run by the processor.
  • Step 2013 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.
  • the conversion of the original three-dimensional point cloud data to the first coordinate system can be 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 planar wireframe diagram, for example, based on the coordinate system of the target house. Any preset position is used as a reference to ensure 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 it is guaranteed that the initial plane wireframe diagram
  • the horizontal direction of each function is consistent with that of each function of the target 3D point cloud model. The specific mapping principle will not be described again.
  • step 2013 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the conversion unit of the first acquisition module run by the processor.
  • the disclosed house plan generation method can combine the manually drawn initial floor plan and the scanned three-dimensional point cloud model to first obtain a more accurate floor plan, and then extract the layout of each function of the house based on the three-dimensional point cloud model. Height information converts the two-dimensional floor plan into a three-dimensional house plan, ensuring the accurate heights between different functions of the house, realizing the accurate and automatic generation of the three-dimensional house plan, and effectively improving the accuracy of the three-dimensional house plan.
  • any of the house plan generation methods provided by the embodiments of the present disclosure can be executed by any appropriate device with data processing capabilities, including but not limited to: terminal devices and servers.
  • any of the house plan generation methods provided in the embodiments of the present disclosure can be executed by the processor.
  • the processor executes any of the house plan generation methods mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in the memory. No further details will be given below.
  • the aforementioned program can be stored in a computer-readable storage medium.
  • the program When the program is executed, It includes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
  • Figure 10 is a schematic structural diagram of a house plan generating device provided by an exemplary embodiment of the present disclosure. The installation of this embodiment The device can be used to implement corresponding method embodiments of the present disclosure.
  • the device shown in Figure 10 includes: a first acquisition module 501, a first processing module 502, a second processing module 503 and a third processing module 504.
  • the first acquisition module 501 is used to acquire the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house; the first processing module 502 is used to acquire the target three-dimensional point cloud model based on the first acquisition module 501 , correct the initial plan wireframe to obtain a corrected plan wireframe corresponding to the target house; the second processing module 503 is used to determine the target house based on the corrected plan wireframe obtained by the first processing module 502 and the target three-dimensional point cloud model. Height information corresponding to each function; the third processing module 504 is used to generate a three-dimensional house plan corresponding to the target house based on the modified plan wireframe and height information corresponding to each function.
  • Figure 11 is a schematic structural diagram of a house plan generating device provided by another exemplary embodiment of the present disclosure.
  • the height information includes top height and ground height;
  • the third processing module 504 includes: a first processing unit 5041 and a second processing unit 5042.
  • the first processing unit 5041 is configured to determine the first wireframe information at the top height and the second wireframe information at the ground height corresponding to the functional room based on the modified planar wireframe diagram for any functional room; the second processing unit 5042, Used to determine the three-dimensional house plan based on the first wireframe information and the second wireframe information corresponding to each function.
  • the second processing module 503 includes: a third processing unit 5031 and a fourth processing unit 5032.
  • 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; the fourth processing unit 5032 is used to extract the first point cloud data corresponding to each function based on the corresponding The first point cloud data determines the top height and ground height corresponding to each function.
  • the fourth processing unit 5032 is specifically configured to: for any function room, determine the number of points included in multiple height ranges based on the first point cloud data corresponding to the function room; based on each height range The number of points included respectively determines the corresponding top height and ground height between functions.
  • the first processing module 502 includes: a fifth processing unit 5021 and a sixth processing unit 5022.
  • the fifth processing unit 5021 is used to vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe diagram is located, and obtain a projection result.
  • the projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located; sixth
  • the processing unit 5022 is configured to perform correction processing on the initial planar wireframe diagram according to the projection results to obtain a modified planar wireframe diagram.
  • the sixth processing unit 5022 is specifically configured to: based on the projection results, determine the distance between each projection point and each original wall line in the initial plan wireframe diagram; for any original wall line, based on each projection point The distance to the original wall line is determined to determine the target projection point whose distance from the original wall line is less than the first distance threshold; based on each target projection point, the corrected wall line corresponding to the original wall line is determined; based on the endpoint of the original wall line, the corrected wall line is determined The endpoints of the wall lines; determine the corrected plane wireframe based on the corrected wall lines corresponding to each original wall line and the endpoints of the corrected wall lines.
  • the first acquisition module 501 includes: an acquisition unit 5011, a determination unit 5012, and a conversion unit 5013.
  • the acquisition unit 5011 is used to obtain the plane wireframe information and the original three-dimensional point cloud data of the target house; the determination unit 5012 is used to determine the initial plane wireframe of the target house in the first coordinate system based on the plane wireframe information; the conversion unit 5013, 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.
  • embodiments of the present disclosure also provide an electronic device, including:
  • 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 method for generating a house plan according to any of the above embodiments of the present disclosure is implemented. .
  • FIG 12 is a schematic structural diagram of an application embodiment of the electronic device of the present disclosure. As shown in Figure 12, an electronic device includes one or more processors and memory.
  • the processor may be a central processing unit (CPU) or other device with data processing capabilities and/or instruction execution capabilities.
  • CPU central processing unit
  • 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, random access memory (RAM) and/or cache memory (cache).
  • the non-volatile memory may include, for example, read-only memory (ROM), hard disk, 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 products to implement the above-described floor plan generation method and/or Other desired features.
  • 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).
  • the input device may also include, for example, a keyboard, a mouse, and the like.
  • the output device can output various information to the outside, including determined distance information, direction information, etc.
  • the output devices may include, for example, displays, speakers, printers, and communication networks and remote output devices to which they are connected, among others.
  • the electronic device may include any other suitable components depending on the specific application.
  • embodiments of the present disclosure may also be a computer program product, which includes computer program instructions that, when executed by a processor, cause the processor to perform the steps described in the above part of this specification. Steps in methods for generating house plans according to various embodiments of the present disclosure.
  • the computer program product may be written with program code for performing operations of embodiments of the present disclosure in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc. , also includes conventional procedural programming languages, such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
  • embodiments of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon.
  • the computer program instructions when executed by a processor, cause the processor to perform the steps described in the above part of this specification according to the present invention.
  • the steps in the house plan generation method of various embodiments are disclosed.
  • the computer-readable storage medium may be any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may include, for example, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the aforementioned program can be stored in a computer-readable storage medium.
  • the program When the program is executed, It includes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
  • the methods and apparatus of the present disclosure may be implemented in many ways.
  • the methods and devices of the present disclosure may be implemented through software, hardware, firmware, or any combination of software, hardware, and firmware.
  • the above order for the steps of the methods is for illustration only, and the steps of the methods of the present disclosure are not limited to the order specifically described above unless otherwise specifically stated.
  • the present disclosure may also be implemented as programs recorded in recording media, and these programs include machine-readable instructions for implementing methods according to the present disclosure.
  • the present disclosure also covers recording media storing programs for executing methods according to the present disclosure.
  • each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations should be considered equivalent versions of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Geometry (AREA)
  • Image Generation (AREA)
  • Processing Or Creating Images (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed in the embodiments of the present disclosure are a floor plan generation method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring an initial plane wireframe diagram and a target three-dimensional point cloud model under a first coordinate system of a target house; on the basis of the target three-dimensional point cloud model, correcting the initial plane wireframe diagram to obtain a corrected plane wireframe diagram corresponding to the target house; on the basis of the corrected plane wireframe diagram and the target three-dimensional point cloud model, determining height information respectively corresponding to each functional room of the target house; and on the basis of the corrected plane wireframe diagram and the height information respectively corresponding to each functional room, generating a three-dimensional floor plan corresponding to the target house. Therefore, the accuracy of a floor plan is effectively improved, and the technical problems in the prior art of an obtained floor plan not being accurate enough, etc., are solved.

Description

户型图生成方法、装置、电子设备和存储介质House plan generation method, device, electronic equipment and storage medium
本公开要求在2022年08月08日提交中国专利局、申请号为CN202210946520.6、发明名称为“户型图生成方法、装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure requires the priority of the Chinese patent application submitted to the China Patent Office on August 8, 2022, with the application number CN202210946520.6 and the invention name "House plan generation method, device, electronic equipment and storage medium", and its entire contents incorporated by reference into this disclosure.
技术领域Technical field
本公开涉及计算机技术,尤其是一种户型图生成方法、装置、电子设备和存储介质。The present disclosure relates to computer technology, and in particular to a method, device, electronic device and storage medium for generating a house plan.
背景技术Background technique
房屋是人们日常生活的重要场所之一,户型图是人们了解房屋必不可少的信息之一,因此,构建准确的房屋户型图十分重要。相关技术中,通常是由人工测量手动绘制得到户型图,基于此获得的户型图往往不够准确。Houses are one of the important places in people's daily lives, and floor plans are one of the essential information for people to understand the houses. Therefore, it is very important to construct accurate house floor plans. In the related art, the house plan is usually drawn manually through manual measurement, and the house plan obtained based on this is often not accurate enough.
发明内容Contents of the invention
本公开实施例提供一种户型图生成方法、装置、电子设备和存储介质,以解决现有技术户型图不够准确等技术问题。Embodiments of the present disclosure provide a method, device, electronic device, and storage medium for generating a house plan to solve technical problems such as insufficient accuracy of house plans in the prior art.
本公开实施例的一个方面,提供一种户型图生成方法,包括:One aspect of an embodiment of the present disclosure provides a method for generating a house plan, including:
获取目标房屋的第一坐标系下的初始平面线框图和目标三维点云模型;Obtain the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house;
基于所述目标三维点云模型,对所述初始平面线框图进行修正,获得所述目标房屋对应的修正平面线框图;Based on the target three-dimensional point cloud model, modify the initial plane wireframe to obtain a modified plane wireframe corresponding to the target house;
基于所述修正平面线框图和所述目标三维点云模型,确定所述目标房屋的各功能间分别对应的高度信息;Based on the modified plane wireframe and the target three-dimensional point cloud model, determine the height information corresponding to each function of the target house;
基于所述修正平面线框图、及各所述功能间分别对应的所述高度信息,生成所述目标房屋对应的三维户型图。Based on the modified plan wireframe and the height information corresponding to each of the functions, a three-dimensional floor plan corresponding to the target house is generated.
本公开实施例的另一个方面,提供一种户型图生成装置,包括:Another aspect of the embodiment of the present disclosure provides a device for generating a house plan, including:
第一获取模块,用于获取目标房屋的第一坐标系下的初始平面线框图和目标三维点云模型;The first acquisition module is used to acquire the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house;
第一处理模块,用于基于所述目标三维点云模型,对所述初始平面线框图进行修正,获得所述目标房屋对应的修正平面线框图;The first processing module is used to modify the initial planar wireframe based on the target three-dimensional point cloud model to obtain a corrected planar wireframe corresponding to the target house;
第二处理模块,用于基于所述修正平面线框图和所述目标三维点云模型,确定所述目标房屋的各功能间分别对应的高度信息;The second processing module is used to determine the height information corresponding to each function of the target house based on the modified plane wireframe and the target three-dimensional point cloud model;
第三处理模块,用于基于所述修正平面线框图、及各所述功能间分别对应的所述高度信息,生成所述目标房屋对应的三维户型图。The third processing module is configured to generate a three-dimensional floor plan corresponding to the target house based on the modified plan wireframe and the height information corresponding to each of the functions.
本公开实施例的再一方面,提供一种计算机可读存储介质,其上存储有计算机程序指令,该计算机程序指令被处理器执行时,实现本公开上述任一实施例所述的方法。Another aspect of the embodiments of the present disclosure provides a computer-readable storage medium 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 disclosure is implemented.
本公开实施例的又一方面,提供一种电子设备,所述电子设备包括:Another aspect of the embodiments of the present disclosure provides an electronic device, where the electronic device includes:
存储器,用于存储计算机程序产品;Memory for storing computer program products;
处理器,用于执行所述存储器中存储的计算机程序产品,且所述计算机程序产品被执行时,实现本公开上述任一实施例所述的方法。A processor, configured to execute a computer program product stored in the memory, and when the computer program product is executed, implement the method described in any of the above embodiments of the present disclosure.
本公开提供的户型图生成方法、装置、电子设备和存储介质,通过房屋的三维点云模型对房屋的初始平面线框图进行修正,获得更加准确的修正平面线框图,并可以基于修正 平面线框图和三维点云模型自动确定各功能间的高度信息,从而可以基于修正平面线框图及各功能间的高度信息,生成房屋的三维户型图,有效提高户型图的准确性,解决现有技术获得的户型图不够准确等技术问题。The household plan generation method, device, electronic equipment and storage medium provided by this disclosure correct the initial plan wireframe of the house through the three-dimensional point cloud model of the house to obtain a more accurate corrected plan wireframe, and can based on the correction The plane wireframe and the three-dimensional point cloud model automatically determine the height information between each function, so that the three-dimensional house plan of the house can be generated based on the corrected plane wireframe and the height information between each function, effectively improving the accuracy of the house plan and solving the existing problem. There are technical problems such as the floor plans obtained through technology are not accurate enough.
下面通过附图和实施例,对本公开的技术方案做进一步的详细描述。The technical solution of the present disclosure will be described in further detail below through the accompanying drawings and examples.
附图说明Description of drawings
构成说明书的一部分的附图描述了本公开的实施例,并且连同描述一起用于解释本公开的原理。The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the disclosure and, together with the description, serve to explain principles of the disclosure.
参照附图,根据下面的详细描述,可以更加清楚地理解本公开。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图:The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting any creative effort:
图1是本公开提供的户型图生成方法的一个示例性的应用场景;Figure 1 is an exemplary application scenario of the house plan generation method provided by the present disclosure;
图2是本公开一个示例性实施例提供的户型图生成方法的流程示意图;Figure 2 is a schematic flowchart of a method for generating a house plan provided by an exemplary embodiment of the present disclosure;
图3是本公开另一个示例性实施例提供的户型图生成方法的流程示意图;Figure 3 is a schematic flowchart of a method for generating a house plan provided by another exemplary embodiment of the present disclosure;
图4是本公开一示例性实施例提供的目标房屋的修正平面线框图的示意图;Figure 4 is a schematic diagram of a modified plan wireframe diagram of a target house provided by an exemplary embodiment of the present disclosure;
图5是本公开一示例性实施例提供的目标房屋的一个功能间的三维线框示意图;Figure 5 is a three-dimensional wireframe schematic diagram of a functional room of the target house provided by an exemplary embodiment of the present disclosure;
图6是本公开一个示例性实施例提供的步骤2032的流程示意图;Figure 6 is a schematic flowchart of step 2032 provided by an exemplary embodiment of the present disclosure;
图7是本公开一示例性实施例提供的功能间高度信息确定原理示意图;Figure 7 is a schematic diagram of the principle of determining inter-function height information provided by an exemplary embodiment of the present disclosure;
图8是本公开一示例性实施例提供的投影结果示意图;Figure 8 is a schematic diagram of projection results provided by an exemplary embodiment of the present disclosure;
图9是本公开一个示例性实施例提供的步骤2022的流程示意图;Figure 9 is a schematic flowchart of step 2022 provided by an exemplary embodiment of the present disclosure;
图10是本公开一示例性实施例提供的户型图生成装置的结构示意图;Figure 10 is a schematic structural diagram of a house plan generation device provided by an exemplary embodiment of the present disclosure;
图11是本公开另一示例性实施例提供的户型图生成装置的结构示意图;Figure 11 is a schematic structural diagram of a house plan generation device provided by another exemplary embodiment of the present disclosure;
图12是本公开电子设备一个应用实施例的结构示意图。Figure 12 is a schematic structural diagram of an application embodiment of the electronic device of the present disclosure.
具体实施方式Detailed ways
现在将参照附图来详细描述本公开的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。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 examples do not limit the scope of the disclosure unless otherwise specifically stated.
本领域技术人员可以理解,本公开实施例中的“第一”、“第二”等术语仅用于区别不同步骤、设备或模块等,既不代表任何特定技术含义,也不表示它们之间的必然逻辑顺序。Those skilled in the art can understand that terms such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and do not represent any specific technical meaning, nor do they represent the differences between them. necessary logical sequence.
还应理解,在本公开实施例中,“多个”可以指两个或两个以上,“至少一个”可以指一个、两个或两个以上。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.
还应理解,对于本公开实施例中提及的任一部件、数据或结构,在没有明确限定或者在前后文给出相反启示的情况下,一般可以理解为一个或多个。It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood to mean one or more unless there is an explicit limitation or contrary inspiration is given in the context.
另外,本公开中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本公开中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this disclosure is only an association relationship describing associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, and A and B exist simultaneously. , there are three situations of B alone. In addition, the character "/" in this disclosure generally indicates that the related objects are in an "or" relationship.
还应理解,本公开对各个实施例的描述着重强调各个实施例之间的不同之处,其相同或相似之处可以相互参考,为了简洁,不再一一赘述。It should also be understood that the description of various embodiments in this disclosure focuses on the differences between the various embodiments, and the similarities or similarities between the embodiments can be referred to each other. For the sake of brevity, they will not be repeated one by one.
同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that, for convenience of description, the dimensions of various parts shown in the drawings are not drawn according to actual proportional relationships.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。 The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application or uses.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered a part of the specification.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that similar reference numerals and letters refer to similar items in the following figures, so that once an item is defined in one figure, it does not need further discussion in subsequent figures.
本公开实施例可以应用于终端设备、计算机系统、服务器等电子设备,其可与众多其它通用或专用计算系统环境或配置一起操作。适于与终端设备、计算机系统、服务器等电子设备一起使用的众所周知的终端设备、计算系统、环境和/或配置的例子包括但不限于:个人计算机系统、服务器计算机系统、瘦客户机、厚客户机、手持或膝上设备、基于微处理器的系统、机顶盒、可编程消费电子产品、网络个人电脑、小型计算机系统、大型计算机系统和包括上述任何系统的分布式云计算技术环境,等等。Embodiments of the present disclosure may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which may operate with numerous other general or special purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and/or configurations suitable for use with terminal devices, computer systems, servers and other electronic devices include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients Computers, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, small computer systems, mainframe computer systems and distributed cloud computing technology environments including any of the above systems, etc.
终端设备、计算机系统、服务器等电子设备可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。通常,程序模块可以包括例程、程序、目标程序、组件、逻辑、数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统/服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或远程计算系统存储介质上。Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system executable instructions (such as program modules) being executed by the computer system. Generally, program modules may include routines, programs, object programs, components, logic, data structures, etc., that perform specific tasks or implement specific abstract data types. The computer system/server may be implemented in a distributed cloud computing environment where tasks are performed by remote processing devices linked through a communications network. In a distributed cloud computing environment, program modules may be located on local or remote computing system storage media including storage devices.
在实现本公开的过程中,发明人发现,房屋户型图是人们了解房屋必不可少的信息之一,因此,构建准确的房屋户型图十分重要。现有技术中,通常是由人工测量手动绘制得到户型图,基于此获得的户型图往往不够准确。In the process of realizing the present disclosure, the inventor found that the house floor plan is one of the indispensable information for people to understand the house. Therefore, it is very important to construct an accurate house floor plan. In the existing technology, house floor plans are usually obtained by manual drawing based on manual measurements, and the house floor plans obtained based on this are often not accurate enough.
图1是本公开提供的户型图生成方法的一个示例性的应用场景。Figure 1 is an exemplary application scenario of the house plan generation method provided by the present disclosure.
在房产领域,为了使用户更好地了解房屋户型,需要为房屋生成对应的三维户型图,利用户型图生成装置执行本公开的户型图生成方法,可以基于预先获得的房屋(以下称为目标房屋)的目标三维点云模型对预先获得的房屋的初始平面户型图(即初始平面线框图)进行修正,获得目标房屋的更加准确的平面线框图(即修正平面线框图),进而基于修正平面线框图和目标三维点云模型确定目标房屋的各功能间分别对应的高度信息,基于修正平面线框图、各功能间分别对应的高度信息,生成目标房屋对应的三维户型图,实现了房屋三维户型图的自动生成,有效提高户型图的准确性,解决了现有技术获得的三维户型图不够准确等技术问题。In the field of real estate, in order to allow users to better understand house types, it is necessary to generate corresponding three-dimensional house plans for the houses. The user plan generation device is used to execute the house plan generation method of the present disclosure, which can be based on the pre-obtained house (hereinafter referred to as the target house). )'s target three-dimensional point cloud model corrects the pre-obtained initial floor plan of the house (i.e., initial plan wireframe) to obtain a more accurate plan wireframe of the target house (i.e., corrected plan wireframe), and then based on the corrected plan line The block diagram and the target 3D point cloud model determine the height information corresponding to each function of the target house. Based on the modified plane wireframe diagram and the height information corresponding to each function, a three-dimensional house plan corresponding to the target house is generated, and the three-dimensional house plan of the house is realized. The automatic generation of the house plan effectively improves the accuracy of the house plan and solves technical problems such as the insufficient accuracy of the three-dimensional house plan obtained by the existing technology.
图2是本公开一个示例性实施例提供的户型图生成方法的流程示意图。该方法包括以下步骤:Figure 2 is a schematic flowchart of a method for generating a house plan provided by an exemplary embodiment of the present disclosure. The method includes the following steps:
步骤201,获取目标房屋的第一坐标系下的初始平面线框图和目标三维点云模型。Step 201: Obtain the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house.
其中,目标房屋可以是任意需要生成三维户型图的房屋,初始平面线框图可以是通过任意方式获得的目标房屋的多边形线框图,比如手工绘制的多边形线框图映射到第一坐标系作为目标房屋的世界坐标系下的初始平面线框图。目标三维点云模型可以是基于扫描采集的原始三维点云数据映射到第一坐标系获得的三维点云模型。第一坐标系可以为世界坐标系,也可以根据实际需求设置为与世界坐标系具有一定映射关系的相对坐标系,具体可以根据实际需求设置,只要能够使初始平面线框图与目标三维点云模型位于同一坐标系下即可。比如,以目标房屋的预设位置作为原点建立第一坐标系,获得目标房屋在此第一坐标系下的初始平面线框图和目标三维点云模型。具体不做限定。Among them, the target house can be any house that needs to generate a three-dimensional floor plan, and the initial plan wireframe can be a polygonal wireframe of the target house obtained by any method. For example, the manually drawn polygonal wireframe is mapped to the first coordinate system as the target house. Initial plane wireframe in world coordinate system. The target three-dimensional point cloud model may be a three-dimensional point cloud model obtained based on mapping the original three-dimensional point cloud data collected by scanning to the first coordinate system. The first coordinate system can be the world coordinate system, or it can be set as a relative coordinate system that has a certain mapping relationship with the world coordinate system according to actual needs. The first coordinate system can be set according to actual needs, as long as the initial plane wireframe diagram can be aligned with the target three-dimensional point cloud model. Just be 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 an initial planar wireframe diagram and a target three-dimensional point cloud model of the target house in this first coordinate system are obtained. There is no specific limit.
示例性的,由于初始平面线框图没有高度信息,可以将初始平面线框图映射到第一坐标系的XOY平面上,便于后续处理,具体可以根据实际需求设置。For example, since the initial plane wireframe does not have height information, the initial plane wireframe can be mapped to the XOY plane of the first coordinate system to facilitate subsequent processing. The details can be set according to actual needs.
在一个可选示例中,该步骤201可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一获取模块执行。In an optional example, step 201 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the first acquisition module run by the processor.
步骤202,基于目标三维点云模型,对初始平面线框图进行修正,获得目标房屋对应的修正平面线框图。 Step 202: Modify the initial plane wireframe based on the target three-dimensional point cloud model to obtain a corrected plane wireframe corresponding to the target house.
其中,对初始平面线框图的修正可以是通过将目标三维点云模型垂直投影到初始平面线框图所在平面上,基于各投影点与初始平面线框图的各墙线的距离,找到各墙线附近的投影点,拟合出投影线,当拟合结果与初始平面线框图中的对应墙线匹配时,将投影线作为该墙线对应的修正后的墙线,基于此获得修正平面线框图。可选地,还可以是直接基于目标三维点云模型中与初始平面线框图相同高度范围内的点的X、Y坐标确定各点与初始平面线框图中各墙线的距离,进而确定出各墙线附近的点,拟合出线段,当拟合的线段与对应的墙线匹配时,将该线段作为墙线对应的修正后的墙线,基于此确定出各墙线分别对应的修正后的墙线,基于修正后的墙线,确定修正平面线框图。具体修正方式可以根据实际需求设置,本实施例不做限定。Among them, the correction to the initial plane wireframe can be by vertically projecting the target three-dimensional point cloud model onto the plane where the initial plane wireframe is located, and based on the distance between each projection point and each wall line of the initial plane wireframe, find the vicinity of each wall line The projection point is used to fit the projection line. When the fitting result matches the corresponding wall line in the initial plane wireframe, the projection line is used as the corrected wall line corresponding to the wall line, and a modified plane wireframe is obtained based on this. Optionally, the distance between each point and each wall line in the initial plane wireframe diagram can also be determined directly based on the X and 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 distance between each point and the wall line in the initial plane wireframe diagram. Points near the wall line are fitted to a line segment. When the fitted line segment matches the corresponding wall line, the line segment is used as the corrected wall line corresponding to the wall line. Based on this, the corrected wall line corresponding to each wall line is determined. Based on the corrected wall line, determine the corrected plane wireframe. The specific correction method can be set according to actual needs, and is not limited in this embodiment.
在一个可选示例中,该步骤202可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块执行。In an optional example, step 202 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the first processing module run by the processor.
步骤203,基于修正平面线框图和目标三维点云模型,确定目标房屋的各功能间分别对应的高度信息。Step 203: Based on the modified plane wireframe and the target three-dimensional point cloud model, determine the height information corresponding to each function of the target house.
其中,功能间是指目标房屋内被划分的各个空间,比如卧室、客厅、餐厅、卫生间,等等。功能间的高度信息可以包括功能间的顶部高度和地面高度,高度信息可以基于目标三维点云模型中功能间顶部和地面的点数量多于中间部分点的数量的规则确定,高度信息也可以基于功能间顶部和地面高度在水平面的中间区域点密度大于顶部和地面之间的部分的规则确定,高度信息还可以通过其他可能的方式确定,具体可以根据实际需求设置,本实施例不做限定。Among them, functional rooms refer to the various spaces divided into the target house, such as bedrooms, living rooms, dining rooms, bathrooms, etc. The height information between functions can include the height of the top of the function room and the height of the ground. The height information can be determined based on the rule that the number of points on the top and the ground of the function room is greater than the number of points in the middle part of the target three-dimensional point cloud model. The height information can also be determined based on The height between the top of the function room and the ground is determined by the rule that the point density in the middle area of the horizontal plane is greater than the part between the top and the ground. The height information can also be determined in other possible ways, and can be set according to actual needs. This embodiment does not limit it.
在一个可选示例中,该步骤203可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第二处理模块执行。In an optional example, step 203 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by a second processing module run by the processor.
步骤204,基于修正平面线框图、及各功能间分别对应的高度信息,生成目标房屋对应的三维户型图。Step 204: Generate a three-dimensional floor plan corresponding to the target house based on the revised plan wireframe and the height information corresponding to each function.
其中,目标房屋对应的三维户型图是表示目标房屋立体空间结构的户型图,在获得修正平面线框图和各功能间分别对应的高度信息后,可以通过将修正平面线框图沿高度方向平移拉伸确定各功能间分别对应的三维线框,基于各功能间分别对应的三维线框,确定目标房屋对应的三维户型图。Among them, the three-dimensional house plan corresponding to the target house is a house plan that represents the three-dimensional spatial structure of the target house. After obtaining the corrected plan wireframe and the height information corresponding to each function, the corrected plan wireframe can be translated and stretched in the height direction. Determine the three-dimensional wireframes corresponding to each function. Based on the three-dimensional wireframes corresponding to each function, determine the three-dimensional house plan corresponding to the target house.
可选地,可以将获得的目标房屋各功能间的三维线框按照修正平面线框图的相邻关系融合,获得目标房屋的三维户型图。Optionally, the obtained three-dimensional wireframes between the functions of the target house can be fused according to the adjacent relationship of the modified planar wireframe to obtain a three-dimensional floor plan of the target house.
可选地,还可以结合各功能间的三维线框融合后的结果,与目标房屋的其他元素(比如门、窗户等元素)一起,生成目标房屋的三维户型图。具体可以根据实际需求设置。对于其他元素的信息确定,可以采用任意可实施的方式,本公开不做限定。Optionally, the results of the three-dimensional wireframe fusion between various functions can also 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 details can be set according to actual needs. For information determination of other elements, any implementable method can be used, and this disclosure does not limit it.
在一个可选示例中,该步骤204可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第三处理模块执行。In an optional example, step 204 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by a third processing module run by the processor.
本公开实施例提供的户型图生成方法,通过房屋的三维点云模型对房屋的初始平面线框图进行修正,获得更加准确的修正平面线框图,并可以基于修正平面线框图和三维点云模型自动确定各功能间的高度信息,从而可以基于修正平面线框图及各功能间的高度信息,生成房屋的三维户型图,有效提高户型图的准确性,解决现有技术获得的户型图不够准确等技术问题。The household plan generation method provided by the embodiment of the present disclosure corrects the initial planar wireframe of the house through the three-dimensional point cloud model of the house to obtain a more accurate corrected planar wireframe, and can automatically based on the corrected planar wireframe and the three-dimensional point cloud model Determine the height information between each function, so that a three-dimensional floor plan of the house can be generated based on the revised plan wireframe and the height information between each function, effectively improving the accuracy of the floor plan and solving the problem of inaccurate floor plans obtained by existing technologies. question.
图3是本公开另一个示例性实施例提供的户型图生成方法的流程示意图。Figure 3 is a schematic flowchart of a method for generating a house plan provided by another exemplary embodiment of the present disclosure.
在一个可选示例中,高度信息包括顶部高度和地面高度,步骤204的基于修正平面线框图、及各功能间分别对应的高度信息,生成目标房屋对应的三维户型图,包括: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 plan wireframe and the height information corresponding to each function, including:
步骤2041,针对任一功能间,基于修正平面线框图,确定该功能间对应的顶部高度处的第一线框信息和地面高度处的第二线框信息。Step 2041: For any functional room, based on the modified plane 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.
其中,顶部高度可以是指功能间顶部在第一坐标系下的Z轴方向的坐标,地面高度可 以是指功能间地面在第一坐标系下的Z轴方向的坐标。第一线框信息至少包括该功能间在顶部高度处的墙线信息和墙线端点信息,墙线信息可以为直线描述信息,比如,以功能间的顶部和地面与XOY轴平行为例,墙线信息可以为描述直线y=kx+b的参数k和b,k表示直线斜率,b表示直线截距,由于这里表示的墙线是与XOY平面平行的,因此墙线Z坐标为固定值,具体墙线信息可以根据实际情况确定,本实施例不做限定。墙线端点信息为墙线端点坐标,比如两个端点分别为(x1,y1,z1)和(x2,y2,z2),同理,第二线框信息包括该功能间在地面高度处的墙线信息和墙线端点信息,具体不再赘述。Among them, the top height may refer to the coordinates of the top of the function room in the Z-axis direction under the first coordinate system, and the ground height may refer to So it refers to the coordinate of the Z-axis direction of the ground between functions in the first coordinate system. The first wireframe information at least includes wall line information and wall line endpoint information at the top height of the functional room. The wall line information can be straight line description information. For example, taking the top and floor of the functional room parallel to the XOY axis, the wall The line information can be the parameters k and b that describe 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 can be determined according to the actual situation, and is not limited in this embodiment. The wall line endpoint information is the wall line endpoint coordinates. For example, the two endpoints are (x1, y1, z1) and (x2, y2, z2). Similarly, the second wireframe information includes the wall line between the function at the height of the ground. Information and wall line endpoint information, the details will not be repeated.
在一个可选示例中,该步骤2041可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第三处理模块的第一处理单元执行。In an optional example, step 2041 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the first processing unit of the third processing module run by the processor.
步骤2042,基于各功能间分别对应的第一线框信息和第二线框信息,确定三维户型图。Step 2042: Determine a three-dimensional house plan based on the first wireframe information and the second wireframe information corresponding to each function.
在确定了各功能间分别对应的第一线框信息和第二线框信息后,可以将各功能间的第一线框信息中的墙线顶点与第二线框信息中对应的墙线顶点连接形成Z轴方向的墙线,从而可以获得各功能间分别对应的三维线框,进而将各功能间分别对应的三维线框融合,获得目标房屋的三维户型图。After determining the first wireframe information and the second wireframe information corresponding to each function, the wall line vertices in the first wireframe information between each function can be connected to the corresponding wall line vertices in the second wireframe information to form The wall line in the Z-axis direction can be used to obtain the three-dimensional wire frames corresponding to each function, and then the three-dimensional wire frames corresponding to each function can be fused to obtain the three-dimensional floor plan of the target house.
示例性的,图4是本公开一示例性实施例提供的目标房屋的修正平面线框图的示意图,该修正平面线框图包括各功能间分别对应的修正后的墙线和墙线端点。图5是本公开一示例性实施例提供的目标房屋的一个功能间的三维线框示意图。本示例中该功能间的平面线框为矩形,获得的该功能间的三维框线为立方体。在实际应用中由于功能间的三维线框是基于该功能间的平面线框沿垂直平面线框所在平面的方向平移拉伸获得的,因此,一个功能间的三维线框在任意高度的截面与其平面线框形状相同。具体不再赘述。Exemplarily, FIG. 4 is a schematic diagram of a revised plan wireframe diagram of a target house provided by an exemplary embodiment of the present disclosure. The revised plan wireframe diagram includes corrected wall lines and wall line endpoints corresponding to each function. 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. In this example, the plane wireframe between the functions is a rectangle, and the obtained three-dimensional wireframe between the functions is a cube. In practical applications, since the three-dimensional wire frame between functions is obtained based on the translation and stretching of the plane wire frame between the functions along the direction of the plane where the vertical plane wire frame is located, therefore, the section of the three-dimensional wire frame between functions at any height is different from the The flat wireframe shape is the same. The details will not be described again.
在一个可选示例中,该步骤2042可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第三处理模块的第二处理单元执行。In an optional example, step 2042 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the second processing unit of the third processing module run by the processor.
在一个可选示例中,步骤203的基于修正平面线框图和目标三维点云模型,确定目标房屋的各功能间分别对应的高度信息,包括:In an optional example, step 203 determines the height information corresponding to each function of the target house based on the modified plane wireframe and the target three-dimensional point cloud model, including:
步骤2031,基于修正平面线框图,从目标三维点云模型中提取出各功能间分别对应的第一点云数据。Step 2031: Based on the modified plane wireframe, the first point cloud data corresponding to each function is extracted from the target three-dimensional point cloud model.
其中,目标三维点云模型包括了目标房间的各功能间在第一坐标系下的点云数据,功能间的点云数据包括采集的功能间的墙、顶部、地面上的点的坐标。修正平面线框图包括了各功能间的分间信息,比如修正平面线框图采用二级数据结构表示,第一级为功能间标识,比如功能间ID,第二级为功能间的墙线信息和墙线端点信息,具体表示方式不做限定。结合目标三维点云模型与修正平面线框图的功能间对应关系,可以基于修正平面线框图的各功能间的X坐标和Y坐标从目标三维点云模型中提取出各功能间分别对应的点云数据,称为第一点云数据。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. The point cloud data of the functional room includes the collected coordinates of the points on the wall, top, and ground of the functional room. The modified plan wireframe includes the partition information between each function. For example, the modified plan wireframe is represented by a two-level data structure. The first level is the identification between functions, such as the function ID, and the second level is the wall line information between functions. Wall line endpoint information, the specific representation method is not limited. Combining the correspondence between the functions of the target 3D point cloud model and the modified plane wireframe diagram, the point clouds corresponding to each function can be extracted from the target 3D point cloud model based on the X coordinates and Y coordinates of the functions of the modified plane wireframe diagram. The data is called the first point cloud data.
示例性的,以修正平面线框图位于XOY平面为例,目标三维点云模型表示的目标房屋的地面与XOY平面平行,或者与修正平面线框图对应设置在XOY平面,则根据修正平面线框图中各功能间的X坐标和Y坐标形成的区域沿Z轴平移,即可确定目标三维点云模型中各点的X坐标和Y坐标是否属于各功能间的范围,依此可以从目标三维点云模型中提取出各功能间分别对应的第一点云数据。在实际应用中也可以不将修正平面线框图设置到第一坐标系的XOY平面,可以是任意的平面,具体处理原理与上述内容类似,基于目标三维点云模型地面与修正平面线框图的平行及目标三维点云模型功能间与修正平面线框图功能间一致的原则,提取出各功能间分别对应的第一点云数据,具体原理不再赘述。For example, taking the corrected plane wireframe diagram as being located on the XOY plane as an example, the ground of the target house represented by the target three-dimensional point cloud model is parallel to the XOY plane, or is set in the XOY plane corresponding to the modified plane wireframe diagram, then according to the modified plane wireframe diagram By translating the area formed by the X coordinate and Y coordinate between each function along the Z axis, it can be determined whether the X coordinate and Y coordinate of each point in the target 3D point cloud model belongs to the range between each function. Based on this, the target 3D point cloud can be obtained The first point cloud data corresponding to each function is extracted from the model. In practical applications, the corrected plane wireframe does not need to be set to the XOY plane of the first coordinate system. It can be any plane. The specific processing principle is similar to the above, based on the parallelism between the target three-dimensional point cloud model ground and the corrected plane wireframe. Based on the principle of consistency between the functions of the target 3D point cloud model and the functions of the modified plane wireframe, the first point cloud data corresponding to each function is extracted. The specific principles will not be described again.
在一个可选示例中,该步骤2031可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第二处理模块的第三处理单元执行。In an optional example, step 2031 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the third processing unit of the second processing module run by the processor.
步骤2032,基于各功能间分别对应的第一点云数据,确定各功能间分别对应的顶部高度和地面高度。 Step 2032: Based on the first point cloud data corresponding to each function, determine the top height and ground height corresponding to each function.
由于每个功能间的第一点云数据均可以包括该功能间的顶部、地面、和周围墙面的点数据,因此基于功能间的第一点云数据中点的分布特征可以确定出属于顶部和地面的点,基于此,可以确定出顶部高度和地面高度。顶部高度可以是顶部对应的Z轴方向的坐标,地面高度可以是指地面对应的Z轴坐标。具体确定顶部高度和地面高度的方式可以根据实际需求设置。Since the first point cloud data of each functional room can include point data of the top, floor, and surrounding walls of the functional room, it can be determined based on the distribution characteristics of the points belonging to the top of the first point cloud data of the functional room. and ground points. Based on this, the top height and ground height can be determined. The top height may refer to the Z-axis coordinate corresponding to the top, and the ground height may refer to the Z-axis coordinate corresponding to the ground. The specific method of determining the top height and ground height can be set according to actual needs.
在一个可选示例中,该步骤2032可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第二处理模块的第四处理单元执行。In an optional example, step 2032 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the fourth processing unit of the second processing module run by the processor.
图6是本公开一个示例性实施例提供的步骤2032的流程示意图。Figure 6 is a schematic flowchart of step 2032 provided by an exemplary embodiment of the present disclosure.
在一个可选示例中,步骤2032的基于各功能间分别对应的第一点云数据,确定各功能间分别对应的顶部高度和地面高度,包括:In an optional example, step 2032 determines the top height and ground height corresponding to each function based on the first point cloud data corresponding to each function, including:
步骤20321,针对任一功能间,基于功能间对应的第一点云数据,确定多个高度范围分别包括的点的数量。Step 20321: For any function room, determine the number of points included in multiple height ranges based on the first point cloud data corresponding to the function room.
其中,高度范围的数量及具体范围可以根据实际需求设置,比如高度范围可以是每1厘米作为一个高度范围,高度范围的数量则基于第一点云数据中点的分布高度确定。Among them, the number and specific range of height ranges can be set according to actual needs. For example, the height range can be every 1 centimeter as a height range, and the number of height ranges is determined based on the distribution height of the midpoint of the first point cloud data.
在一个可选示例中,该步骤20321可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第二处理模块的第四处理单元执行。In an optional example, step 20321 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the fourth processing unit of the second processing module run by the processor.
步骤20322,基于各高度范围分别包括的点的数量,确定功能间对应的顶部高度和地面高度。Step 20322: Based on the number of points included in each height range, determine the corresponding top height and ground height between functions.
由于顶部高度范围包括整个顶部的点,地面高度范围包括整个地面的点。其他高度范围仅包括墙面部分的点,基于功能间顶部和底部与中间高度部分的点分布数量不同,可以确定出有两个高度范围的点数量明显较多,结合两个范围高度的上下关系可以确定出哪个高度是顶部,哪个高度是地面,从而确定出该功能间的顶部高度和地面高度。Since the top height range includes points across the top, the ground height range includes points across the entire ground. Other height ranges only include points on the wall. Based on the different number of point distributions at the top, bottom and middle height of the functional room, it can be determined that there are significantly more points in the two height ranges. Combined with the upper and lower relationship between the heights of 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.
示例性的,图7是本公开一示例性实施例提供的功能间高度信息确定原理示意图。本示例仍以目标三维点云模型的地面点与第一坐标系的XOY平面平行为例,将功能间的第一点云数据沿Z轴方向划分n个高度范围,计算每个高度范围内包括的点的数量,确定出点的数量最多的两个范围高度,作为顶部高度和地面高度。Exemplarily, FIG. 7 is a schematic diagram of the inter-function height information determination principle provided by an exemplary embodiment of the present disclosure. This example still takes the ground point of the target three-dimensional point cloud model as parallel to the XOY plane of the first coordinate system. The first point cloud data between functions is divided into n height ranges along the Z-axis direction, and the included values within each height range are calculated. The number of points, determine the two range heights with the largest number of points, as the top height and the ground height.
在一个可选示例中,该步骤20322可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第二处理模块的第四处理单元执行。In an optional example, step 20322 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the fourth processing unit of the second processing module run by the processor.
在一个可选示例中,步骤202的基于目标三维点云模型,对初始平面线框图进行修正,获得目标房屋对应的修正平面线框图,包括:In an optional example, step 202 corrects the initial plan wireframe based on the target three-dimensional point cloud model to obtain a corrected plan wireframe corresponding to the target house, including:
步骤2021,将目标三维点云模型垂直投影到初始平面线框图所在平面上,获得投影结果,投影结果包括投影到初始平面线框图所在平面上的各投影点的坐标。Step 2021: Vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe is located, and obtain a projection result. The projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe is located.
其中,由于初始平面线框图与目标三维点云模型的地面是平行对应的,因此可以将目标三维点云模型直接垂直投影到初始平面线框图所在平面上,可以获得目标三维点云模型的投影结果,投影结果中包括的投影点是目标三维点云模型中各点垂直投影到初始平面线框图所在平面的点。Among them, since the initial plane wireframe map is parallel to the ground of the target 3D point cloud model, the target 3D point cloud model can be vertically projected directly onto the plane where the initial plane wireframe map is located, and the projection result of the target 3D point cloud model can be obtained. , the projection points included in the projection results are the points where each point in the target three-dimensional point cloud model is vertically projected to the plane of the initial planar wireframe.
示例性的,当初始平面线框图位于第一坐标系的XOY平面时,可以将目标三维点云模型中各点的Z坐标置0,即可获得各点对应的投影点。For example, when the initial plane wireframe is located on 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.
示例性的,图8是本公开一示例性实施例提供的投影结果示意图。Illustratively, FIG. 8 is a schematic diagram of projection results provided by an exemplary embodiment of the present disclosure.
在一个可选示例中,该步骤2021可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块的第五处理单元执行。In an optional example, step 2021 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the fifth processing unit of the first processing module run by the processor.
步骤2022,根据投影结果对初始平面线框图进行修正处理,获得修正平面线框图。Step 2022: Modify the initial planar wireframe according to the projection results to obtain a modified planar wireframe.
由于目标三维点云模型中包括的是目标房屋的各功能间的墙面、顶部和地面上的点的坐标,投影到初始平面线框图所在平面后,墙部分的投影点密度较大,因此可以基于投影点与初始平面线框图中各墙线的位置关系,确定出属于墙的投影点,从而拟合出投影墙线, 基于投影墙线对初始平面线框图进行修正,获得修正平面线框图。Since the target three-dimensional point cloud model includes the coordinates of points on the walls, tops and floors of each function room of the target house, after being projected onto the plane where the initial planar wireframe is located, the projection point density of the wall part is relatively large, so it can Based on the positional relationship between the projection point and each wall line in the initial plane wireframe diagram, the projection point belonging to the wall is determined, thereby fitting the projected wall line. The initial plane wireframe is corrected based on the projected wall lines to obtain the modified plane wireframe.
在一个可选示例中,该步骤2022可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块的第六处理单元执行。In an optional example, step 2022 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the sixth processing unit of the first processing module run by the processor.
图9是本公开一个示例性实施例提供的步骤2022的流程示意图。Figure 9 is a schematic flowchart of step 2022 provided by an exemplary embodiment of the present disclosure.
在一个可选示例中,步骤2022的根据投影结果对初始平面线框图进行修正处理,获得修正平面线框图,包括:In an optional example, step 2022 corrects the initial planar wireframe according to the projection result to obtain a modified planar wireframe, including:
步骤20221,基于投影结果,确定各投影点分别到初始平面线框图中各原墙线的距离。Step 20221: Based on the projection results, determine the distances between each projection point and each original wall line in the initial plane wireframe diagram.
由于投影结果包括的是投影到初始平面线框图所在平面上的各投影点的坐标,初始平面线框图中包括各原墙线的墙线信息和墙线端点信息,因此,基于点到直线的距离的计算原理可以确定出各投影点分别到初始平面线框图中各原墙线的距离,具体原理不再赘述。Since the projection result includes the coordinates of each projection point projected onto the plane where the initial plane wireframe diagram is located, the initial plane wireframe diagram includes wall line information and wall line endpoint information of each original wall line. Therefore, based on the distance from the point to the straight line The calculation principle can determine the distance from each projection point to each original wall line in the initial plane wireframe diagram. The specific principle will not be described again.
在一个可选示例中,该步骤20221可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块的第六处理单元执行。In an optional example, step 20221 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
步骤20222,针对任一原墙线,基于各投影点到该原墙线的距离,确定与该原墙线的距离小于第一距离阈值的目标投影点。Step 20222: For any original wall line, based on the distance of each projection point to the original wall line, determine the target projection point whose distance from the original wall line is less than the first distance threshold.
基于目标三维点云模型于初始平面线框图的功能间具有对应关系,因此目标三维点云模型在初始平面线框图所在平面的投影点存在墙线点分布密集的特征,且会分布在于初始平面线框图中对应墙线的附近,因此,基于投影点到原墙线的距离可以确定出投影点与原墙线的对应关系。There is a corresponding relationship between the functions of the target 3D point cloud model and the initial plane wireframe diagram. Therefore, the projection points of the target 3D point cloud model on the plane where the initial plane wireframe diagram is located have the characteristics of dense distribution of wall line points, and will be distributed on the initial plane line. The corresponding wall line in the block diagram is nearby. Therefore, the corresponding relationship between the projection point and the original wall line can be determined based on the distance from the projection point to the original wall line.
在一个可选示例中,该步骤20222可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块的第六处理单元执行。In an optional example, step 20222 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
步骤20223,基于各目标投影点确定该原墙线对应的修正后墙线。Step 20223: Determine the corrected wall line corresponding to the original wall line based on each target projection point.
在确定出任一原墙线对应的目标投影点后,可以基于该原墙线对应的各目标投影点拟合出该原墙线对应的投影墙线,基于该投影墙线与原墙线的对比结果,确定该原墙线对应的修正后墙线,其中,对比结果包括匹配和不匹配两种结果,可以根据预先设置的对比规则确定,对比规则可以根据实际需求设置,比如投影墙线与原墙线之间的夹角小于角度阈值、原墙线的端点到投影墙线的距离小于距离阈值、投影墙线与原墙线的重合度大于重合度阈值,等等,具体不做限定,以保证投影墙线的准确性。当投影墙线与原墙线满足对比规则,可以确定投影墙线与原墙线匹配,否则确定投影墙线与原墙线不匹配。当投影墙线与原墙线匹配时,将投影墙线作为原墙线对应的修正后墙线,否则将原墙线作为修正后墙线。After determining the target projection point corresponding to any original wall line, the projected wall line corresponding to the original wall line can be fitted based on each target projection point corresponding to the original wall line, based on the comparison between the projected wall line and the original wall line As a result, the corrected wall line corresponding to the original wall line is determined. The comparison results include matching and non-matching results, which can be determined according to the preset comparison rules. The comparison rules can be set according to actual needs, such as the projected wall line and the original wall line. The angle between the wall lines is less than the angle threshold, the distance from the endpoint of the original wall line to the projected wall line is less than the distance threshold, the overlap between the projected wall line and the original wall line is greater than the coincidence threshold, etc., there are no specific restrictions, so Ensure the accuracy of projected wall lines. When the projected wall line and the original wall line meet the comparison rules, it can be determined that the projected wall line matches the original wall line, otherwise it is determined that the projected wall line and the original wall line do not match. When the projected wall line matches the original wall line, the projected 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.
在一个可选示例中,该步骤20223可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块的第六处理单元执行。In an optional example, step 20223 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
步骤20224,基于该原墙线的端点,确定修正后墙线的端点。Step 20224: Based on the end points of the original wall line, determine the end points of the modified wall line.
具体的,可以将原墙线的端点垂直投影到修正后墙线的直线上,确定出修正后墙线的端点,从而得到修正后墙线线段。Specifically, the endpoint of the original wall line can be vertically projected onto the straight line of the corrected wall line to determine the endpoint of the corrected wall line, thereby obtaining the corrected wall line segment.
在一个可选示例中,该步骤20224可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块的第六处理单元执行。In an optional example, step 20224 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
步骤20225,基于各原墙线分别对应的修正后墙线、及修正后墙线的端点,确定修正平面线框图。Step 20225: Determine the corrected plane wireframe based on the corrected wall lines corresponding to each original wall line and the end points of the corrected wall lines.
具体的,基于原墙线分别对应的修正后墙线和修正后墙线的端点可以确定出修正后墙线线段,进而将相邻的修正后墙线线段的直线求交点,可以得到各修正后墙线最终的端点,使得各修正后墙线形成功能间对应的完整多边形,各功能间分别对应的完整多边形形成目标房屋对应的修正平面线框图。Specifically, the corrected wall line segments can be determined based on the end points of the corrected wall line and the corrected wall line corresponding to the original wall line, and then the intersection points of the straight lines of the adjacent corrected wall line segments can be obtained to obtain each corrected wall line segment. The final endpoint of the wall line makes each corrected wall line form a complete polygon corresponding to the functions, and the complete polygons corresponding to each function form a corrected plan wireframe corresponding to the target house.
在一个可选示例中,该步骤20225可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一处理模块的第六处理单元执行。 In an optional example, step 20225 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the sixth processing unit of the first processing module run by the processor.
本公开通过目标三维点云模型在初始平面线框图所在平面的投影,对初始平面线框图进行修正,可以提高平面户型图的准确性,进而基于修正后平面线框图生成三维户型图,保证生成的三维户型图的准确性。This disclosure uses the projection of the target three-dimensional point cloud model on the plane where the initial plan wireframe is located to correct the initial plan wireframe, which can improve the accuracy of the plan house plan, and then generate a three-dimensional house plan based on the corrected plan wireframe, ensuring that the generated Accuracy of three-dimensional floor plans.
在一个可选示例中,步骤201的获取目标房屋的第一坐标系下的初始平面线框图和目标三维点云模型,包括:In an optional example, step 201 obtains the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house, including:
步骤2011,获取目标房屋的平面线框信息及原始三维点云数据。Step 2011: Obtain planar wireframe information and original three-dimensional point cloud data of the target house.
其中,目标房屋的平面线框信息可以包括目标房屋每个功能间的各墙的长度信息,各墙之间的相邻关系及其他相关信息,具体可以根据实际需求设置,只要是能确定出目标房屋平面户型图的多边形结构即可。原始三维点云数据可以是基于任意可实施的测量设备获得的目标房屋的三维点云数据。测量设备比如可以为基于激光的扫描设备,具体不做限定。Among them, the planar wireframe information of the target house can include the length information of each wall in each function room of the target house, the adjacent relationship between the walls and other related information. The details can be set according to actual needs, as long as the target can be determined. The polygonal structure of the house floor plan is enough. The original three-dimensional point cloud data may be the three-dimensional point cloud data of the target house obtained based on any implementable measuring device. The measuring device may be, for example, a laser-based scanning device, and is not specifically limited.
在一个可选示例中,该步骤2011可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一获取模块的获取单元执行。In an optional example, step 2011 may be executed by the processor calling corresponding instructions stored in the memory, or may be executed by the acquisition unit of the first acquisition module run by the processor.
步骤2012,基于平面线框信息,确定目标房屋在第一坐标系下的初始平面线框图。Step 2012: Based on the plane wireframe information, determine the initial plane wireframe of the target house in the first coordinate system.
为了便于实现对初始平面线框图的修正,将目标房屋的平面线框信息和原始三维点云数据统一到第一坐标系下,第一坐标系可以根据实际需求设置,比如可以为世界坐标系,也可以为设置相对坐标原点的其他坐标系,具体不做限定。在确定了第一坐标系后,基于目标房屋的平面线框信息,确定出目标房屋在第一坐标系下的初始平面线框图,初始平面线框图可以包括目标房屋各功能间在第一坐标系下的原墙线信息和原墙线端点信息,原墙线信息包括原墙线在第一坐标系下的直线表示参数,原墙线端点信息包括原墙线在第一坐标系下的端点坐标,从而可以获得目标房屋在第一坐标系下的由多边形组成的初始平面线框图,作为目标房屋的平面户型图。In order to facilitate the correction of the initial plane wireframe, the plane wireframe information of the target house and the original three-dimensional point cloud data are unified into the first coordinate system. The first coordinate system can be set according to actual needs, for example, it can be the world coordinate system, It can also be other coordinate systems that set the relative coordinate origin, and there is no specific limit. After the first coordinate system is determined, an initial plan wireframe diagram of the target house in the first coordinate system is determined based on the plan wireframe information of the target house. The initial plan wireframe diagram may include the layout of each function of the target house in the first coordinate system. The original wall line information and the original wall line endpoint information under the original wall line information include 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 , thereby obtaining the initial planar wireframe diagram composed of polygons of the target house in the first coordinate system, which is used as the plan floor plan of the target house.
在一个可选示例中,该步骤2012可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一获取模块的确定单元执行。In an optional example, step 2012 may be executed by the processor calling a corresponding instruction stored in the memory, or may be executed by the determination unit of the first acquisition module run by the processor.
步骤2013,将原始三维点云数据,转换到第一坐标系下,获得目标房屋在第一坐标系下的目标三维点云模型。Step 2013: 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.
原始三维点云数据到第一坐标系的转换可以基于原始三维点云数据的坐标系与第一坐标系的映射关系进行转换,该映射关系可以结合初始平面线框图确定,比如以目标房屋中的任意预设位置为参考,保证初始平面线框图中该预设位置对应的点与目标三维点云模型中该预设位置对应的点在第一坐标系下是同一点,且保证初始平面线框图中各功能间水平方向与目标三维点云模型的各功能间一致。具体映射原理不再赘述。The conversion of the original three-dimensional point cloud data to the first coordinate system can be 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 planar wireframe diagram, for example, based on the coordinate system of the target house. Any preset position is used as a reference to ensure 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 it is guaranteed that the initial plane wireframe diagram The horizontal direction of each function is consistent with that of each function of the target 3D point cloud model. The specific mapping principle will not be described again.
在一个可选示例中,该步骤2013可以由处理器调用存储器存储的相应指令执行,也可以由被处理器运行的第一获取模块的转换单元执行。In an optional example, step 2013 may be performed by the processor calling corresponding instructions stored in the memory, or may be performed by the conversion unit of the first acquisition module run by the processor.
本公开的户型图生成方法,可以结合人工绘制的初始平面户型图及扫描得到的三维点云模型,首先得到更为准确的平面户型图,然后可以基于三维点云模型提取房屋每个功能间的高度信息,将二维的平面户型图转为三维户型图,保证了房屋不同功能间的准确高度,实现了三维户型图的准确自动生成,有效提高三维户型图的准确性。The disclosed house plan generation method can combine the manually drawn initial floor plan and the scanned three-dimensional point cloud model to first obtain a more accurate floor plan, and then extract the layout of each function of the house based on the three-dimensional point cloud model. Height information converts the two-dimensional floor plan into a three-dimensional house plan, ensuring the accurate heights between different functions of the house, realizing the accurate and automatic generation of the three-dimensional house plan, and effectively improving the accuracy of the three-dimensional house plan.
本公开实施例提供的任一种户型图生成方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:终端设备和服务器等。或者,本公开实施例提供的任一种户型图生成方法可以由处理器执行,如处理器通过调用存储器存储的相应指令来执行本公开实施例提及的任一种户型图生成方法。下文不再赘述。Any of the house plan generation methods provided by the embodiments of the present disclosure can be executed by any appropriate device with data processing capabilities, including but not limited to: terminal devices and servers. Alternatively, any of the house plan generation methods provided in the embodiments of the present disclosure can be executed by the processor. For example, the processor executes any of the house plan generation methods mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in the memory. No further details will be given below.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, It includes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
图10是本公开一示例性实施例提供的户型图生成装置的结构示意图。该实施例的装 置可用于实现本公开相应的方法实施例,如图10所示的装置包括:第一获取模块501、第一处理模块502、第二处理模块503和第三处理模块504。Figure 10 is a schematic structural diagram of a house plan generating device provided by an exemplary embodiment of the present disclosure. The installation of this embodiment The device can be used to implement corresponding method embodiments of the present disclosure. The device shown in Figure 10 includes: a first acquisition module 501, a first processing module 502, a second processing module 503 and a third processing module 504.
第一获取模块501,用于获取目标房屋的第一坐标系下的初始平面线框图和目标三维点云模型;第一处理模块502,用于基于第一获取模块501获取的目标三维点云模型,对初始平面线框图进行修正,获得目标房屋对应的修正平面线框图;第二处理模块503,用于基于第一处理模块502获得的修正平面线框图和目标三维点云模型,确定目标房屋的各功能间分别对应的高度信息;第三处理模块504,用于基于修正平面线框图、及各功能间分别对应的高度信息,生成目标房屋对应的三维户型图。The first acquisition module 501 is used to acquire the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house; the first processing module 502 is used to acquire the target three-dimensional point cloud model based on the first acquisition module 501 , correct the initial plan wireframe to obtain a corrected plan wireframe corresponding to the target house; the second processing module 503 is used to determine the target house based on the corrected plan wireframe obtained by the first processing module 502 and the target three-dimensional point cloud model. Height information corresponding to each function; the third processing module 504 is used to generate a three-dimensional house plan corresponding to the target house based on the modified plan wireframe and height information corresponding to each function.
图11是本公开另一示例性实施例提供的户型图生成装置的结构示意图。Figure 11 is a schematic structural diagram of a house plan generating device provided by another exemplary embodiment of the present disclosure.
在一个可选示例中,高度信息包括顶部高度和地面高度;第三处理模块504,包括:第一处理单元5041和第二处理单元5042。In an optional example, the height information includes top height and ground height; the third processing module 504 includes: a first processing unit 5041 and a second processing unit 5042.
第一处理单元5041,用于针对任一功能间,基于修正平面线框图,确定功能间对应的顶部高度处的第一线框信息和地面高度处的第二线框信息;第二处理单元5042,用于基于各功能间分别对应的第一线框信息和第二线框信息,确定三维户型图。The first processing unit 5041 is configured to determine the first wireframe information at the top height and the second wireframe information at the ground height corresponding to the functional room based on the modified planar wireframe diagram for any functional room; the second processing unit 5042, Used to determine the three-dimensional house plan based on the first wireframe information and the second wireframe information corresponding to each function.
在一个可选示例中,第二处理模块503,包括:第三处理单元5031和第四处理单元5032。In an optional example, the second processing module 503 includes: a third processing unit 5031 and a fourth processing unit 5032.
第三处理单元5031,用于基于修正平面线框图,从目标三维点云模型中提取出各功能间分别对应的第一点云数据;第四处理单元5032,用于基于各功能间分别对应的第一点云数据,确定各功能间分别对应的顶部高度和地面高度。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; the fourth processing unit 5032 is used to extract the first point cloud data corresponding to each function based on the corresponding The first point cloud data determines the top height and ground height corresponding to each function.
在一个可选示例中,第四处理单元5032,具体用于:针对任一功能间,基于功能间对应的第一点云数据,确定多个高度范围分别包括的点的数量;基于各高度范围分别包括的点的数量,确定功能间对应的顶部高度和地面高度。In an optional example, the fourth processing unit 5032 is specifically configured to: for any function room, determine the number of points included in multiple height ranges based on the first point cloud data corresponding to the function room; based on each height range The number of points included respectively determines the corresponding top height and ground height between functions.
在一个可选示例中,第一处理模块502,包括:第五处理单元5021和第六处理单元5022。In an optional example, the first processing module 502 includes: a fifth processing unit 5021 and a sixth processing unit 5022.
第五处理单元5021,用于将目标三维点云模型垂直投影到初始平面线框图所在平面上,获得投影结果,投影结果包括投影到初始平面线框图所在平面上的各投影点的坐标;第六处理单元5022,用于根据投影结果对初始平面线框图进行修正处理,获得修正平面线框图。The fifth processing unit 5021 is used to vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe diagram is located, and obtain a projection result. The projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located; sixth The processing unit 5022 is configured to perform correction processing on the initial planar wireframe diagram according to the projection results to obtain a modified planar wireframe diagram.
在一个可选示例中,第六处理单元5022,具体用于:基于投影结果,确定各投影点分别到初始平面线框图中各原墙线的距离;针对任一原墙线,基于各投影点到原墙线的距离,确定与原墙线的距离小于第一距离阈值的目标投影点;基于各目标投影点确定原墙线对应的修正后墙线;基于原墙线的端点,确定修正后墙线的端点;基于各原墙线分别对应的修正后墙线、及修正后墙线的端点,确定修正平面线框图。In an optional example, the sixth processing unit 5022 is specifically configured to: based on the projection results, determine the distance between each projection point and each original wall line in the initial plan wireframe diagram; for any original wall line, based on each projection point The distance to the original wall line is determined to determine the target projection point whose distance from the original wall line is less than the first distance threshold; based on each target projection point, the corrected wall line corresponding to the original wall line is determined; based on the endpoint of the original wall line, the corrected wall line is determined The endpoints of the wall lines; determine the corrected plane wireframe based on the corrected wall lines corresponding to each original wall line and the endpoints of the corrected wall lines.
在一个可选示例中,第一获取模块501,包括:获取单元5011、确定单元5012和转换单元5013。In an optional example, the first acquisition module 501 includes: an acquisition unit 5011, a determination unit 5012, and a conversion unit 5013.
获取单元5011,用于获取目标房屋的平面线框信息及原始三维点云数据;确定单元5012,用于基于平面线框信息,确定目标房屋在第一坐标系下的初始平面线框图;转换单元5013,用于将原始三维点云数据,转换到第一坐标系下,获得目标房屋在第一坐标系下的目标三维点云模型。The acquisition unit 5011 is used to obtain the plane wireframe information and the original three-dimensional point cloud data of the target house; the determination unit 5012 is used to determine the initial plane wireframe of the target house in the first coordinate system based on the plane wireframe information; the conversion unit 5013, 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.
另外,本公开实施例还提供了一种电子设备,包括:In addition, embodiments of the present disclosure also provide an electronic device, including:
存储器,用于存储计算机程序产品;处理器,用于执行所述存储器中存储的计算机程序产品,且所述计算机程序产品被执行时,实现本公开上述任一实施例所述的户型图生成方法。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 method for generating a house plan according to any of the above embodiments of the present disclosure is implemented. .
图12是本公开电子设备一个应用实施例的结构示意图。如图12所示,电子设备包括一个或多个处理器和存储器。Figure 12 is a schematic structural diagram of an application embodiment of the electronic device of the present disclosure. As shown in Figure 12, an electronic device includes one or more processors and memory.
处理器可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他 形式的处理单元,并且可以控制电子设备中的其他组件以执行期望的功能。The processor may be a central processing unit (CPU) or other device with data processing capabilities and/or instruction execution capabilities. A processing unit in the form of an electronic device that can control other components in the electronic device to perform desired functions.
存储器可以存储一个或多个计算机程序产品,所述存储器可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序产品,处理器可以运行所述计算机程序产品,以实现上文所述的本公开的各个实施例的户型图生成方法以及/或者其他期望的功能。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, random access memory (RAM) and/or cache memory (cache). The non-volatile memory may include, for example, read-only memory (ROM), hard disk, 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 products to implement the above-described floor plan generation method and/or Other desired features.
在一个示例中,电子设备还可以包括:输入装置和输出装置,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。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).
此外,该输入装置还可以包括例如键盘、鼠标等等。In addition, the input device may also include, for example, a keyboard, a mouse, and the like.
该输出装置可以向外部输出各种信息,包括确定出的距离信息、方向信息等。该输出设备可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出设备等等。The output device can output various information to the outside, including determined distance information, direction information, etc. The output devices may include, for example, displays, speakers, printers, and communication networks and remote output devices to which they are connected, among others.
当然,为了简化,图12中仅示出了该电子设备中与本公开有关的组件中的一些,省略了诸如总线、输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备还可以包括任何其他适当的组件。Of course, for simplicity, only some of the components in the electronic device related to the present disclosure are shown in FIG. 12 , and components such as buses, input/output interfaces, etc. are omitted. In addition to this, the electronic device may include any other suitable components depending on the specific application.
除了上述方法和设备以外,本公开的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述部分中描述的根据本公开各种实施例的户型图生成方法中的步骤。In addition to the above methods and devices, embodiments of the present disclosure may also be a computer program product, which includes computer program instructions that, when executed by a processor, cause the processor to perform the steps described in the above part of this specification. Steps in methods for generating house plans according to various embodiments of the present disclosure.
所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product may be written with program code for performing operations of embodiments of the present disclosure in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc. , also includes conventional procedural programming languages, such as the "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
此外,本公开的实施例还可以是计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述部分中描述的根据本公开各种实施例的户型图生成方法中的步骤。In addition, embodiments of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by a processor, cause the processor to perform the steps described in the above part of this specification according to the present invention. The steps in the house plan generation method of various embodiments are disclosed.
所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer-readable storage medium may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, It includes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
以上结合具体实施例描述了本公开的基本原理,但是,需要指出的是,在本公开中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本公开的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本公开为必须采用上述具体的细节来实现。The basic principles of the present disclosure have been described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, advantages, effects, etc. mentioned in the present disclosure are only examples and not limitations. These advantages, advantages, effects, etc. cannot be considered to be Each embodiment of the present disclosure must have. In addition, the specific details disclosed above are only for the purpose of illustration and to facilitate understanding, and are not limiting. The above details do not limit the present disclosure to be implemented by using the above specific details.
本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似的部分相互参见即可。对于系统实施例而言,由于其与方法实施例基本对应,所以描述的比较简单,相关之处参见方法实施例的部分说 明即可。Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on its differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple. For relevant details, please refer to the description of the method embodiment. Just make it clear.
本公开中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of the devices, devices, equipment, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, devices, equipment, and systems may be connected, arranged, and configured in any manner. Words such as "includes," "includes," "having," etc. are open-ended terms that mean "including, but not limited to," and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the words "and/or" and are used interchangeably therewith unless the context clearly dictates otherwise. As used herein, the word "such as" refers to the phrase "such as, but not limited to," and may be used interchangeably therewith.
可能以许多方式来实现本公开的方法和装置。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本公开的方法和装置。用于所述方法的步骤的上述顺序仅是为了进行说明,本公开的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本公开实施为记录在记录介质中的程序,这些程序包括用于实现根据本公开的方法的机器可读指令。因而,本公开还覆盖存储用于执行根据本公开的方法的程序的记录介质。The methods and apparatus of the present disclosure may be implemented in many ways. For example, the methods and devices of the present disclosure may be implemented through software, hardware, firmware, or any combination of software, hardware, and firmware. The above order for the steps of the methods is for illustration only, and the steps of the methods of the present disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, the present disclosure may also be implemented as programs recorded in recording media, and these programs include machine-readable instructions for implementing methods according to the present disclosure. Thus, the present disclosure also covers recording media storing programs for executing methods according to the present disclosure.
还需要指出的是,在本公开的装置、设备和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本公开的等效方案。It should also be noted that in the devices, equipment and methods of the present disclosure, each component or each step can be decomposed and/or recombined. These decompositions and/or recombinations should be considered equivalent versions of the present disclosure.
提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本公开。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本公开的范围。因此,本公开不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the 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.
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本公开的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。 The foregoing description has been presented for the purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the present disclosure to the form disclosed herein. Although various 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 (16)

  1. 一种户型图生成方法,其特征在于,包括:A method for generating a house plan, which is characterized by including:
    获取目标房屋的第一坐标系下的初始平面线框图和目标三维点云模型;Obtain the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house;
    基于所述目标三维点云模型,对所述初始平面线框图进行修正,获得所述目标房屋对应的修正平面线框图;Based on the target three-dimensional point cloud model, modify the initial plane wireframe to obtain a modified plane wireframe corresponding to the target house;
    基于所述修正平面线框图和所述目标三维点云模型,确定所述目标房屋的各功能间分别对应的高度信息;Based on the modified plane wireframe and the target three-dimensional point cloud model, determine the height information corresponding to each function of the target house;
    基于所述修正平面线框图、及各所述功能间分别对应的所述高度信息,生成所述目标房屋对应的三维户型图。Based on the modified plan wireframe and the height information corresponding to each of the functions, a three-dimensional floor plan corresponding to the target house is generated.
  2. 根据权利要求1所述的方法,其特征在于,所述高度信息包括顶部高度和地面高度;所述基于所述修正平面线框图、及各所述功能间分别对应的所述高度信息,生成所述目标房屋对应的三维户型图,包括:The method according to claim 1, characterized in that the height information includes a top height and a ground height; and the generated height information is based on the modified plane wireframe diagram and the corresponding height information between each of the functions. The three-dimensional house plan corresponding to the target house includes:
    针对任一所述功能间,基于所述修正平面线框图,确定所述功能间对应的所述顶部高度处的第一线框信息和所述地面高度处的第二线框信息;For any of the functional rooms, determine the first wireframe information at the top height and the second wireframe information at the ground height corresponding to the functional room based on the modified plane wireframe diagram;
    基于各所述功能间分别对应的所述第一线框信息和所述第二线框信息,确定所述三维户型图。The three-dimensional house plan is determined based on the first wireframe information and the second wireframe information corresponding to each of the functions.
  3. 根据权利要求1所述的方法,其特征在于,所述基于所述修正平面线框图和所述目标三维点云模型,确定所述目标房屋的各功能间分别对应的高度信息,包括:The method according to claim 1, characterized in that, based on the modified plane wireframe and the target three-dimensional point cloud model, determining the height information corresponding to each function of the target house includes:
    基于所述修正平面线框图,从所述目标三维点云模型中提取出各所述功能间分别对应的第一点云数据;Based on the modified plane wireframe, extract the first point cloud data corresponding to each of the functions from the target three-dimensional point cloud model;
    基于各所述功能间分别对应的所述第一点云数据,确定各所述功能间分别对应的顶部高度和地面高度。Based on the first point cloud data corresponding to each of the functions, the top height and ground height corresponding to each of the functions are determined.
  4. 根据权利要求3所述的方法,其特征在于,所述基于各所述功能间分别对应的所述第一点云数据,确定各所述功能间分别对应的顶部高度和地面高度,包括:The method of claim 3, wherein determining the top height and ground height corresponding to each function based on the first point cloud data corresponding to each function includes:
    针对任一所述功能间,基于所述功能间对应的所述第一点云数据,确定多个高度范围分别包括的点的数量;For any of the function rooms, based on the first point cloud data corresponding to the function room, determine the number of points included in the multiple height ranges respectively;
    基于各所述高度范围分别包括的点的数量,确定所述功能间对应的所述顶部高度和所述地面高度。Based on the number of points included in each height range, the corresponding top height and ground height between the functions are determined.
  5. 根据权利要求1所述的方法,其特征在于,所述基于所述目标三维点云模型,对所述初始平面线框图进行修正,获得所述目标房屋对应的修正平面线框图,包括:The method according to claim 1, characterized in that, based on the target three-dimensional point cloud model, modifying the initial planar wireframe to obtain a corrected planar wireframe corresponding to the target house includes:
    将所述目标三维点云模型垂直投影到所述初始平面线框图所在平面上,获得投影结果,所述投影结果包括投影到所述初始平面线框图所在平面上的各投影点的坐标;Vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe diagram is located, and obtain a projection result. The projection result includes the coordinates of each projection point projected onto the plane where the initial planar wireframe diagram is located;
    根据所述投影结果对所述初始平面线框图进行修正处理,获得所述修正平面线框图。The initial plane wireframe is modified according to the projection result to obtain the modified plane wireframe.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述投影结果对所述初始平面线框图进行修正处理,获得所述修正平面线框图,包括:The method according to claim 5, characterized in that: performing correction processing on the initial planar wireframe diagram according to the projection result to obtain the modified planar wireframe diagram includes:
    基于所述投影结果,确定各所述投影点分别到所述初始平面线框图中各原墙线的距离;Based on the projection result, determine the distance from each projection point to each original wall line in the initial plane wireframe diagram;
    针对任一所述原墙线,基于各所述投影点到所述原墙线的距离,确定与所述原墙线的距离小于第一距离阈值的目标投影点;For any of the original wall lines, based on the distance 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 the 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 lines, determine the endpoints of the modified wall lines;
    基于各所述原墙线分别对应的所述修正后墙线、及所述修正后墙线的端点,确定所述修正平面线框图。The corrected plane wireframe is determined based on the corrected wall lines corresponding to each of the original wall lines and the end points of the corrected wall lines.
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述获取目标房屋的第一坐标系 下的初始平面线框图和目标三维点云模型,包括:The method according to any one of claims 1 to 6, characterized in that: obtaining the first coordinate system of the target house The initial plan wireframe and target 3D point cloud model below include:
    获取所述目标房屋的平面线框信息及原始三维点云数据;Obtain the plane wireframe information and original three-dimensional point cloud data of the target house;
    基于所述平面线框信息,确定所述目标房屋在第一坐标系下的所述初始平面线框图;Based on the planar wireframe information, determine the initial planar wireframe 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.
  8. 一种户型图生成装置,其特征在于,包括:A device for generating house plans, which is characterized in that it includes:
    第一获取模块,用于获取目标房屋的第一坐标系下的初始平面线框图和目标三维点云模型;The first acquisition module is used to acquire the initial plane wireframe and the target three-dimensional point cloud model in the first coordinate system of the target house;
    第一处理模块,用于基于所述目标三维点云模型,对所述初始平面线框图进行修正,获得所述目标房屋对应的修正平面线框图;The first processing module is used to modify the initial planar wireframe based on the target three-dimensional point cloud model to obtain a corrected planar wireframe corresponding to the target house;
    第二处理模块,用于基于所述修正平面线框图和所述目标三维点云模型,确定所述目标房屋的各功能间分别对应的高度信息;The second processing module is used to determine the height information corresponding to each function of the target house based on the modified plane wireframe and the target three-dimensional point cloud model;
    第三处理模块,用于基于所述修正平面线框图、及各所述功能间分别对应的所述高度信息,生成所述目标房屋对应的三维户型图。The third processing module is configured to generate a three-dimensional floor plan corresponding to the target house based on the modified plan wireframe and the height information corresponding to each of the functions.
  9. 根据权利要求8所述的装置,其特征在于,所述高度信息包括顶部高度和地面高度;所述第三处理模块,包括:The device according to claim 8, wherein the height information includes top height and ground height; the third processing module includes:
    第一处理单元,用于针对任一所述功能间,基于所述修正平面线框图,确定所述功能间对应的所述顶部高度处的第一线框信息和所述地面高度处的第二线框信息;A first processing unit configured to determine, for any of the functional rooms, the first wireframe information at the top height and the second wireframe information at the ground height corresponding to the functional room based on the modified plane wireframe diagram. box information;
    第二处理单元,用于基于各所述功能间分别对应的所述第一线框信息和所述第二线框信息,确定所述三维户型图。The second processing unit is configured to determine the three-dimensional house plan based on the first wire frame information and the second wire frame information respectively corresponding to each of the functions.
  10. 根据权利要求8所述的装置,其特征在于,所述第二处理模块,包括:The device according to claim 8, characterized in that the second processing module includes:
    第三处理单元,用于基于所述修正平面线框图,从所述目标三维点云模型中提取出各所述功能间分别对应的第一点云数据;A third processing unit, configured to extract the first point cloud data corresponding to each of the functions from the target three-dimensional point cloud model based on the modified plane wireframe;
    第四处理单元,用于基于各所述功能间分别对应的所述第一点云数据,确定各所述功能间分别对应的顶部高度和地面高度。The fourth processing unit is configured to determine the top height and ground height corresponding to each of the functions based on the first point cloud data corresponding to each of the functions.
  11. 根据权利要求10所述的装置,其特征在于,所述第四处理单元,具体用于:The device according to claim 10, characterized in that the fourth processing unit is specifically used for:
    针对任一所述功能间,基于所述功能间对应的所述第一点云数据,确定多个高度范围分别包括的点的数量;基于各所述高度范围分别包括的点的数量,确定所述功能间对应的所述顶部高度和所述地面高度。For any of the function rooms, based on the first point cloud data corresponding to the function room, determine the number of points included in multiple height ranges; determine the number of points included in each of the height ranges based on the number of points included in each of the height ranges. The corresponding top height and ground height between the above functions.
  12. 根据权利要求8所述的装置,其特征在于,所述第一处理模块,包括:The device according to claim 8, wherein the first processing module includes:
    第五处理单元,用于将所述目标三维点云模型垂直投影到所述初始平面线框图所在平面上,获得投影结果,所述投影结果包括投影到所述初始平面线框图所在平面上的各投影点的坐标;The fifth processing unit is used to vertically project the target three-dimensional point cloud model onto the plane where the initial planar wireframe diagram is located, and obtain a projection result. The projection result includes each projection onto the plane where the initial planar wireframe diagram is located. The coordinates of the projection point;
    第六处理单元,用于根据所述投影结果对所述初始平面线框图进行修正处理,获得所述修正平面线框图。A sixth processing unit is configured to perform correction processing on the initial planar wireframe diagram according to the projection result to obtain the modified planar wireframe diagram.
  13. 根据权利要求12所述的装置,其特征在于,所述第六处理单元,具体用于:The device according to claim 12, characterized in that the sixth processing unit is specifically used for:
    基于所述投影结果,确定各所述投影点分别到所述初始平面线框图中各原墙线的距离;针对任一所述原墙线,基于各所述投影点到所述原墙线的距离,确定与所述原墙线的距离小于第一距离阈值的目标投影点;基于各所述目标投影点确定所述原墙线对应的修正后墙线;基于所述原墙线的端点,确定所述修正后墙线的端点;基于各所述原墙线分别对应的所述修正后墙线、及所述修正后墙线的端点,确定所述修正平面线框图。Based on the projection results, determine the distance from each projection point to each original wall line in the initial plane wireframe diagram; for any of the original wall lines, based on the distance from each projection point to the original wall line distance, determine the target projection point whose distance from the original wall line is less than the first distance threshold; determine the corrected wall line corresponding to the original wall line based on each of the target projection points; based on the endpoint of the original wall line, Determine the end points of the corrected wall lines; determine the corrected plane wireframe based on the corrected wall lines corresponding to each of the original wall lines and the end points of the corrected wall lines.
  14. 根据权利要求8-13任一所述的装置,其特征在于,所述第一获取模块,包括:The device according to any one of claims 8-13, characterized in that the first acquisition module includes:
    获取单元,用于获取所述目标房屋的平面线框信息及原始三维点云数据;An acquisition unit is used to acquire the planar wireframe information and original three-dimensional point cloud data of the target house;
    确定单元,用于基于所述平面线框信息,确定所述目标房屋在第一坐标系下的所述初始平面线框图; A determination unit configured to determine the initial planar wireframe of the target house in the first coordinate system based on the planar wireframe information;
    转换单元,用于将所述原始三维点云数据,转换到所述第一坐标系下,获得所述目标房屋在所述第一坐标系下的所述目标三维点云模型。A conversion unit configured 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.
  15. 一种电子设备,其特征在于,包括:An electronic device, characterized by including:
    存储器,用于存储计算机程序产品;Memory for storing computer program products;
    处理器,用于执行所述存储器中存储的计算机程序产品,且所述计算机程序产品被执行时,实现上述权利要求1-7任一所述的方法。A processor, configured to execute a computer program product stored in the memory, and when the computer program product is executed, implement the method described in any one of claims 1 to 7 above.
  16. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,该计算机程序指令被处理器执行时,实现上述权利要求1-7任一所述的方法。 A computer-readable storage medium on which computer program instructions are stored, characterized in that when the computer program instructions are executed by a processor, the method described in any one of claims 1-7 is implemented.
PCT/CN2023/079375 2022-08-08 2023-03-02 Floor plan generation method and apparatus, and electronic device and storage medium WO2024031973A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210946520.6A CN115330939A (en) 2022-08-08 2022-08-08 House type graph generation method and device, electronic equipment and storage medium
CN202210946520.6 2022-08-08

Publications (1)

Publication Number Publication Date
WO2024031973A1 true WO2024031973A1 (en) 2024-02-15

Family

ID=83921948

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/079375 WO2024031973A1 (en) 2022-08-08 2023-03-02 Floor plan generation method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115330939A (en)
WO (1) WO2024031973A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115330939A (en) * 2022-08-08 2022-11-11 如你所视(北京)科技有限公司 House type graph generation method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490916A (en) * 2019-04-12 2019-11-22 北京城市网邻信息技术有限公司 Three dimensional object modeling method and equipment, image processing apparatus and medium
CN112116714A (en) * 2020-09-28 2020-12-22 贝壳技术有限公司 Method and device for generating room structure model based on two-dimensional image
CN112200916A (en) * 2020-12-08 2021-01-08 深圳市房多多网络科技有限公司 Method and device for generating house type graph, computing equipment and storage medium
CN113298946A (en) * 2020-07-24 2021-08-24 阿里巴巴集团控股有限公司 House three-dimensional reconstruction and ground identification method, device, equipment and storage medium
US20220207202A1 (en) * 2020-12-29 2022-06-30 OPAL AI Inc. Systems And Methods To Generate A Floorplan Of A Building
CN115330939A (en) * 2022-08-08 2022-11-11 如你所视(北京)科技有限公司 House type graph generation method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108460840A (en) * 2018-01-17 2018-08-28 链家网(北京)科技有限公司 The methods of exhibiting and displaying device of virtual house decoration
CN113589813A (en) * 2021-07-30 2021-11-02 珠海一微半导体股份有限公司 Control method for robot to construct room floor type graph
CN113823001A (en) * 2021-09-23 2021-12-21 北京有竹居网络技术有限公司 Method, device, equipment and medium for generating house type graph

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490916A (en) * 2019-04-12 2019-11-22 北京城市网邻信息技术有限公司 Three dimensional object modeling method and equipment, image processing apparatus and medium
CN113298946A (en) * 2020-07-24 2021-08-24 阿里巴巴集团控股有限公司 House three-dimensional reconstruction and ground identification method, device, equipment and storage medium
CN112116714A (en) * 2020-09-28 2020-12-22 贝壳技术有限公司 Method and device for generating room structure model based on two-dimensional image
CN112200916A (en) * 2020-12-08 2021-01-08 深圳市房多多网络科技有限公司 Method and device for generating house type graph, computing equipment and storage medium
US20220207202A1 (en) * 2020-12-29 2022-06-30 OPAL AI Inc. Systems And Methods To Generate A Floorplan Of A Building
CN115330939A (en) * 2022-08-08 2022-11-11 如你所视(北京)科技有限公司 House type graph generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115330939A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
Tran et al. Shape grammar approach to 3D modeling of indoor environments using point clouds
CN111127627B (en) Model display method and device in three-dimensional house model
US10991161B2 (en) Generating virtual representations
WO2024031973A1 (en) Floor plan generation method and apparatus, and electronic device and storage medium
CN109974703B (en) Method, system and device for constructing indoor navigation network
Liao et al. RGB-D object SLAM using quadrics for indoor environments
JP2016516241A (en) Mapping augmented reality experiences to different environments
JP7143924B2 (en) Image matching method, device and computer readable storage medium
US20220188472A1 (en) Coordinating conversion between floorplan user interface layers
CN113538706B (en) Digital sand table-based house scene display method, device, equipment and storage medium
WO2022227489A1 (en) Collision detection method and apparatus for objects, and device and storage medium
CN111104879B (en) Method and device for identifying house functions, readable storage medium and electronic equipment
WO2023009749A1 (en) Floorplan generation system and methods of use
WO2023246189A1 (en) Image information display method and device
CN112052489A (en) Method and system for generating house type graph
CN114187588B (en) Data processing method, device and storage medium
CN114820979B (en) Processing method and device of three-dimensional grid model and storage medium
Xiao et al. Coupling point cloud completion and surface connectivity relation inference for 3D modeling of indoor building environments
CN113971307B (en) Incidence relation generation method and device, storage medium and electronic equipment
US20170139998A1 (en) Search Device and Search Method
Cao et al. Object-aware SLAM based on efficient quadric initialization and joint data association
CN113538562B (en) Indoor area determination method and device, electronic equipment and storage medium
CN112950759B (en) Three-dimensional house model construction method and device based on house panoramic image
Aguina-Kang et al. Open-Universe Indoor Scene Generation using LLM Program Synthesis and Uncurated Object Databases
WO2021073530A1 (en) Building model simplification processing method and apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23851209

Country of ref document: EP

Kind code of ref document: A1