A method and device for obtaining a plane equation of a building plane
Patent Information
- Application Number
- CN202110370311.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-07
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2041-04-07
AI Technical Summary
然而,在实践中发现,等角度扫描会使得距离测量设备越近的区域采样点越密集,越远的区域采样点越稀疏,从而降低了采样的有效性,进而影响了目标平面方程的获取精度
Smart Images

Figure CN115187646B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of architectural engineering, and more specifically, to a method and apparatus for obtaining the planar equation of a building plan. Background Technology
[0002] Currently, before calculating the target plane equation of a building plan, a measuring device is typically used to perform an isometric scan within a fixed interval to obtain the laser distance. Then, the three-dimensional coordinates of the spatial points are calculated based on the pan-tilt angle and the laser distance, thus completing the sampling. However, in practice, it has been found that isometric scanning results in denser sampling points closer to the measuring device and sparser sampling points further away, reducing the effectiveness of the sampling and consequently affecting the accuracy of obtaining the target plane equation. Summary of the Invention
[0003] The purpose of this application is to provide a method and apparatus for obtaining the plane equation of a building plan, which can improve the effectiveness of sampling and thus improve the accuracy of obtaining the target plane equation.
[0004] The first aspect of this application provides a method for obtaining the planar equation of a building plan, including:
[0005] Obtain a planar image of the target plane; the target plane is a building plan.
[0006] The planar image is calculated according to a preset mathematical model to obtain the construction stage corresponding to the planar image;
[0007] When the preset construction stage set includes the construction stage, obtain the target point spatial coordinate set of the target plane;
[0008] Calculate the plane equation of the target plane based on the set of spatial coordinates of the target point.
[0009] In the above implementation process, this method prioritizes acquiring a planar image of the building plan, then calculates the corresponding construction stage using a mathematical model. When the construction stage is one where the planar equation of the target plane can be obtained, the method acquires a set of spatial coordinates of the target points on the target plane, and finally calculates the planar equation of the target plane based on this set of spatial coordinates. Therefore, implementing this method allows for the prior determination of whether the target plane is suitable for acquiring its planar equation, and then the calculation of the planar equation using the set of spatial coordinates of the actual target points on the target plane. This improves the sampling effectiveness of the target point spatial coordinate set and consequently enhances the accuracy of acquiring the target plane equation.
[0010] Further, the step of obtaining the set of spatial coordinates of the target points on the target plane includes:
[0011] Determine the target polygon and the reference plane in which the target polygon is located;
[0012] Determine a predicted plane that corresponds to the target plane and is parallel to the reference plane;
[0013] Obtain the set of estimated coordinates of the target points on the predicted plane;
[0014] Obtain the set of gimbal rotation angles corresponding to the estimated coordinate set of the target point;
[0015] A set of laser measurement distances corresponding to the set of gimbal rotation angles is collected using a measuring device;
[0016] The set of spatial coordinates of the target point on the target plane is obtained by calculating based on the set of gimbal rotation angles and the set of laser measurement distances.
[0017] In the above implementation process, this method determines the plane containing the defined polygon as the reference plane, then selects a point on the target plane to determine a predicted plane passing through that point and parallel to the reference plane. Next, the predicted plane is processed to obtain a set of estimated coordinates for the target point. Finally, actual measurements are performed based on this set of estimated coordinates to obtain an accurate set of spatial coordinates for the target point. It is evident that implementing this method can obtain an accurate set of spatial coordinates for the target point, thus providing accurate and effective data support for calculating the plane equation and improving the accuracy of obtaining the plane equation.
[0018] Further, the step of determining the target polygon and the reference plane in which the target polygon lies includes:
[0019] Obtain multiple spatial points located on the same plane around the target building;
[0020] Connect the multiple spatial points to obtain a target polygon that surrounds the target building;
[0021] The plane containing the target polygon is determined as the reference plane.
[0022] In the above implementation process, this method can determine a polygon surrounding the target building in a plane, and then determine the corresponding reference plane based on this polygon. It is evident that implementing this method can effectively determine the area to be measured, thereby facilitating the accurate determination of the subsequent estimation plane.
[0023] Further, the step of determining the estimated plane corresponding to the target plane and parallel to the reference plane includes:
[0024] Obtain a projection point included in the target plane;
[0025] The plane that is parallel to the reference plane and includes the projection point is determined as the estimated plane.
[0026] In the above implementation process, the method can first determine a projection point of the target plane, and then determine the plane that passes through the point and is parallel to the reference plane as the estimated plane, thereby accurately obtaining the estimated plane to facilitate subsequent steps.
[0027] Further, the step of obtaining the set of estimated coordinates of the target points on the predicted plane includes:
[0028] Extract the bounding rectangle corresponding to the target polygon from the estimated plane;
[0029] The circumscribed rectangle is divided according to a preset spacing to obtain multiple grids;
[0030] Obtain the spatial coordinates of all vertices in the multiple grids;
[0031] The spatial coordinates of all the vertices are determined as the set of estimated coordinates of the target points of the predicted plane.
[0032] In the above implementation process, this method projects the target polygon in the reference plane onto the estimation plane, determines the circumscribed rectangle of the target polygon in the estimation plane, then divides the circumscribed rectangle according to a preset interval to obtain multiple grids, then obtains the spatial coordinates of all vertices in the multiple grids, and finally determines the spatial coordinates of these vertices as the target point estimated coordinate set. It is evident that implementing this method can obtain a target point estimated coordinate set that meets specific requirements, thus providing an effective data foundation for obtaining the target point spatial coordinate set, which in turn facilitates obtaining a more accurate target point spatial coordinate set and improves the accuracy of obtaining the plane equation.
[0033] A second aspect of this application provides a device for obtaining the plan equation of a building plan, the device comprising:
[0034] The first acquisition unit is used to acquire a planar image of the target plane; the target plane is a building plan.
[0035] The identification unit is used to calculate the planar image according to a preset mathematical model to obtain the construction stage corresponding to the planar image;
[0036] The second acquisition unit is used to acquire the set of spatial coordinates of target points on the target plane when the preset set of construction stages includes the construction stage.
[0037] The calculation unit is used to calculate the plane equation of the target plane based on the set of spatial coordinates of the target point.
[0038] In the above implementation process, implementing this method can first determine whether the target plane is suitable for obtaining the plane equation, and then calculate the plane equation of the target plane through the set of spatial coordinates of the actual target points on the target plane, thereby improving the sampling effectiveness of the set of spatial coordinates of the target points and thus improving the accuracy of obtaining the target plane equation.
[0039] Furthermore, the second acquisition unit includes:
[0040] The first sub-unit is used to determine the target polygon and the reference plane in which the target polygon is located;
[0041] The second subunit is used to determine a predicted plane that corresponds to the target plane and is parallel to the reference plane;
[0042] The third subunit is used to obtain the set of estimated coordinates of the target points on the predicted plane;
[0043] The fourth subunit is used to obtain the set of gimbal rotation angles corresponding to the estimated coordinate set of the target point;
[0044] The fifth subunit is used to collect a set of laser measurement distances corresponding to the set of gimbal rotation angles through a measuring device;
[0045] The sixth subunit is used to calculate, based on the set of gimbal rotation angles and the set of laser measurement distances, the set of spatial coordinates of the target points on the target plane.
[0046] In the above implementation process, implementing this method can obtain an accurate set of spatial coordinates of the target point, thereby providing accurate and effective data support for the calculation of the plane equation, and thus improving the accuracy of obtaining the plane equation.
[0047] Furthermore, the first subunit includes:
[0048] The first module is used to acquire multiple spatial points located on the same plane around the target building;
[0049] The second module is used to connect the multiple spatial points to obtain a target polygon surrounding the target building;
[0050] The third module is used to determine the plane containing the target polygon as the reference plane.
[0051] In the above implementation process, implementing this method can effectively determine the area to be measured, thereby facilitating the accurate determination of the subsequent estimation plane.
[0052] A third aspect of this application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor runs the computer program to cause the electronic device to perform the method for obtaining the planar equation of a building plan as described in any one of the first aspects of this application.
[0053] The fourth aspect of this application provides a computer-readable storage medium storing computer program instructions, which, when read and executed by a processor, perform the method for obtaining the planar equation of a building plan as described in the first aspect of this application. Attached Figure Description
[0054] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0055] Figure 1 A flowchart illustrating a method for obtaining the planar equation of a building plan provided in an embodiment of this application;
[0056] Figure 2 A flowchart illustrating another method for obtaining the plan equation of a building plan provided in an embodiment of this application;
[0057] Figure 3 This is a schematic diagram of a device for obtaining the planar equation of a building plan provided in an embodiment of this application;
[0058] Figure 4 A schematic diagram of another device for obtaining the plan equation of a building plan provided in an embodiment of this application;
[0059] Figure 5 This is a schematic diagram illustrating the process of obtaining a set of target point estimated coordinates provided in an embodiment of this application. Detailed Implementation
[0060] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0061] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0062] Example 1
[0063] Please refer to Figure 1 , Figure 1 This application provides a flowchart illustrating a method for obtaining the plan equation of a building plan. The method includes:
[0064] S101. Obtain a planar image of the target plane; the target plane is the building plan.
[0065] In this embodiment, the target plane is the building plan of the target building.
[0066] S102. Calculate the planar image according to the preset mathematical model to obtain the construction stage corresponding to the planar image.
[0067] In this embodiment, the mathematical model is a pre-trained deep convolutional neural network model.
[0068] In this embodiment, the input of the pre-trained deep convolutional neural network model is a planar image of the target plane, and the output is the construction stage of the target plane.
[0069] In this embodiment, the construction phase includes at least the formwork support erection phase, the wall and column reinforcement binding phase, the beam and slab formwork erection phase, the beam and slab reinforcement binding phase, the pipeline installation and pre-embedding phase, and the concrete pouring phase, etc.
[0070] S103. When the preset construction stage set includes construction stages, obtain the set of spatial coordinates of the target points on the target plane.
[0071] In this embodiment, the preset construction stage set may include the beam and slab formwork stage, the beam and slab reinforcement binding stage, the pipeline installation and pre-embedding stage, and the concrete pouring stage.
[0072] In this embodiment, the construction stage in the preset construction stage set is the construction stage in which the plane equation of the target plane can be obtained.
[0073] In this embodiment, the construction stages included in the preset construction stage set have fewer obstacles on the target plane. Therefore, obtaining the plane equation at this stage can avoid errors in obtaining the plane equation caused by a large number of obstacles on the target plane.
[0074] In this embodiment, the measuring device used to collect the set of spatial coordinates of target points on the target plane can be a total station including a dual-axis gimbal and a laser rangefinder mounted on the dual-axis gimbal, or a video measuring device including a dual-axis gimbal and a laser rangefinder and a video camera mounted parallel to each other on the dual-axis gimbal. The measuring device is mounted on a tower crane.
[0075] This embodiment does not impose any limitations on the measuring equipment.
[0076] S104. Calculate the plane equation of the target plane based on the set of spatial coordinates of the target point.
[0077] In this embodiment, a more accurate plane equation can be calculated based on the set of spatial coordinates of the target point.
[0078] In this embodiment, the subject executing the method can be a computing device such as a computer or server, and no limitation is made in this embodiment.
[0079] In this embodiment, the subject executing the method can also be a smart device such as a smartphone or tablet, and no limitation is made in this embodiment.
[0080] As can be seen, the method for obtaining the planar equation of a building plan described in this embodiment can first acquire a planar image of the building plan, and then calculate the construction stage corresponding to the planar image through a mathematical model. When the construction stage is one in which the planar equation of the target plane can be obtained, the set of spatial coordinates of the target points on the target plane is acquired, and finally the planar equation of the target plane is calculated based on the set of spatial coordinates of the target points. Therefore, implementing this method allows for first determining whether the target plane is suitable for obtaining its planar equation, and then calculating the planar equation of the target plane using the set of spatial coordinates of the actual target points on the target plane, thereby improving the sampling effectiveness of the set of spatial coordinates of the target points and thus improving the accuracy of obtaining the target planar equation.
[0081] Example 2
[0082] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a method for obtaining the planar equation of a building plan, provided as an embodiment of this application. Figure 2 As shown, the method for obtaining the plan equation of the building plan includes:
[0083] S201. Obtain a planar image of the target plane; the target plane is the building plan.
[0084] In this embodiment, the target plane is the building plan of the target building.
[0085] S202. Calculate the planar image according to the preset mathematical model to obtain the construction stage corresponding to the planar image.
[0086] As an optional implementation, after calculating the steps of the construction stage corresponding to the planar image based on a preset mathematical model, the method may further include:
[0087] When the preset construction stage set includes construction stages, determine the target polygon and the reference plane in which the target polygon is located.
[0088] In this embodiment, the method can estimate the set of spatial coordinates of the target points to be measured based on the target polygon.
[0089] As an optional implementation, when the preset construction stage set includes construction stages, the steps of determining the target polygon and the reference plane in which the target polygon is located may include steps S203 to S205.
[0090] S203. When the preset construction stage set includes construction stages, obtain multiple spatial points located on the same plane around the target building.
[0091] In this embodiment, multiple spatial points can be multiple vertices of a pre-defined polygon.
[0092] For example, when a measuring device is installed on a tower crane, rotating the pan-tilt head of the measuring device allows the laser rangefinder to be pointed at multiple spatial points on the same horizontal plane around the target building. Simultaneously, the pan-tilt head angle and laser distance can be acquired separately, thereby calculating the three-dimensional spatial coordinates of these multiple points.
[0093] S204. Connect multiple spatial points to obtain the target polygon that surrounds the target building.
[0094] In this embodiment, the target polygon formed by multiple spatial points can surround the target building.
[0095] S205. Determine the plane containing the target polygon as the reference plane.
[0096] In this embodiment, the method can calculate the plane equation of the reference plane based on the three-dimensional spatial coordinates of the above-mentioned multiple spatial points.
[0097] As an optional implementation, after determining the plane containing the target polygon as the reference plane, the method may further include:
[0098] Determine the predicted plane that corresponds to the target plane and is parallel to the reference plane.
[0099] As an optional implementation, the step of determining the estimated plane that corresponds to the target plane and is parallel to the reference plane may include steps S206 to S207.
[0100] S206. Obtain a projection point included in the target plane.
[0101] In this embodiment, the method can obtain any spatial point on the target plane as the projection point.
[0102] In this embodiment, the reference plane and the prediction plane are parallel to each other, so any point on the prediction plane can be considered a projection point on the reference plane. Since this point on the prediction plane is taken from the target plane, it is easy to understand that the prediction plane and the target plane can be the same plane or intersecting planes, and the projection point lies on both the target plane and the prediction plane.
[0103] For example, this method can control the pan-tilt unit of the measuring device to rotate, so that the laser rangefinder is aimed at any spatial point on the target plane and the laser distance to that point is obtained. Then, using the spherical coordinate system calculation method, the three-dimensional spatial coordinates of the projection point can be calculated based on the laser distance and the pan-tilt unit angle.
[0104] S207. Determine the plane that is parallel to the reference plane and includes the projection point as the estimated plane.
[0105] In this embodiment, the method can calculate the plane equation of the estimated plane based on the three-dimensional spatial coordinates of the projection point and the plane equation of the reference plane.
[0106] As an optional implementation, after determining the plane parallel to the reference plane and including the projection point as the estimated plane, the method may further include:
[0107] Obtain the set of estimated coordinates of the target points on the predicted plane.
[0108] As an optional implementation, the step of obtaining the set of estimated coordinates of the target points on the predicted plane may include S208 to S211.
[0109] S208. Extract the bounding rectangle of the target polygon in the estimated plane.
[0110] In this embodiment, since the estimated plane and the reference plane are parallel, the target polygon can be synchronously projected onto the estimated plane.
[0111] In this embodiment, the method can calculate the coordinates of the projection points corresponding to each vertex of the target polygon based on the plane equation of the estimated plane. These multiple projection points constitute the projected polygon on the estimated plane.
[0112] In this embodiment, the circumscribed rectangle of the target polygon is actually the circumscribed rectangle of the projected polygon. It should be noted that the above three terms have a one-to-one correspondence, and any description refers to the same circumscribed rectangle.
[0113] In this embodiment, the method can also calculate based on the coordinates of the projection point to obtain the circumscribed rectangle containing the coordinates of the projection point.
[0114] S209. Divide the circumscribed rectangle according to the preset spacing to obtain multiple grids.
[0115] S210. Obtain the spatial coordinates of all vertices in multiple grids.
[0116] In this embodiment, the method can divide the circumscribed rectangle into a grid according to a preset spacing and obtain the spatial coordinates of each grid vertex.
[0117] S211. Determine the spatial coordinates of all vertices as the set of estimated coordinates of the target points of the predicted plane.
[0118] In this embodiment, the spatial coordinates of each grid vertex are the estimated coordinates of the target point.
[0119] like Figure 5 As shown, Figure 5 The bottom dashed polygon is the target polygon, the top solid polygon is the projected polygon after the target polygon is projected onto the estimated plane, the top solid rectangle is the circumscribed rectangle of the projected polygon, and the top dashed grid is a grid into which the circumscribed rectangle is divided according to a preset spacing.
[0120] S212. Obtain the set of gimbal rotation angles corresponding to the estimated coordinate set of the target point.
[0121] In this embodiment, the method can use a spherical coordinate system calculation method to estimate the coordinates of the target point and calculate the gimbal rotation angle when the laser rangefinder of the measuring device points to each target point.
[0122] S213. Collect a set of laser measurement distances corresponding to the set of gimbal rotation angles using a measuring device.
[0123] In this embodiment, the method rotates the gimbal of the measuring device to the gimbal rotation angle corresponding to each target point, and obtains the laser measurement distance of each target point.
[0124] S214. Calculate the set of spatial coordinates of the target point on the target plane based on the set of gimbal rotation angles and the set of laser measurement distances.
[0125] In this embodiment, the three-dimensional spatial coordinates of the target point, i.e., the target point spatial coordinates, can be calculated using a spherical coordinate system calculation method based on the gimbal rotation angle and the laser measurement distance.
[0126] In this embodiment, based on the gimbal rotation angle and laser measurement distance corresponding to each target point, the spatial coordinates of all target points can be calculated, and these spatial coordinates constitute a set of target point spatial coordinates. Simultaneously, the point cloud data formed by this set of target point spatial coordinates is the measurement data of the aforementioned target plane.
[0127] S215. Calculate the plane equation of the target plane based on the set of spatial coordinates of the target point.
[0128] In this embodiment, the method can calculate the plane equation of the target plane based on the target point spatial coordinate set and the RANSAC algorithm.
[0129] During building construction, although the building's height increases and the tower crane's height is adjusted, the horizontal relative position between the tower crane and the building remains constant. Therefore, knowing the relative height difference between the construction plane and the measuring equipment on the tower crane allows for the estimation of the approximate area of the construction plane based on the spatial coordinates of preset vertices. This method can cover the estimated area with a rectangle and then mesh this rectangle to obtain the vertex coordinates of the mesh. Next, the coordinates of each mesh vertex are measured one by one using the measuring equipment to sample the construction plane. Finally, based on the sampled spatial point coordinates, the plane equation closest to the construction plane is fitted. This implementation method ensures complete and uniform coverage of the target plane by sampling points, thereby improving the accuracy of obtaining the plane equation.
[0130] This implementation method avoids sampling when there are many obstacles on the target plane by classifying the image, thus facilitating the obtaining of a more accurate plane equation for the target plane. It also allows for the estimation of the set of spatial coordinates of the target points to be measured based on the target polygon, ensuring that the sampling points completely and uniformly cover the target plane, thereby improving the accuracy of calculating the plane equation of the target plane.
[0131] As can be seen, the method for obtaining the plane equation of a building plan described in this embodiment can first determine whether the target plane is suitable for obtaining the plane equation, and then calculate the plane equation of the target plane through the set of spatial coordinates of the actual target points on the target plane, thereby improving the sampling effectiveness of the set of spatial coordinates of the target points and thus improving the accuracy of obtaining the target plane equation.
[0132] Example 3
[0133] Please refer to Figure 3 , Figure 3 This is a schematic diagram of a device for obtaining the planar equation of a building plan, provided as an embodiment of this application. Figure 3 As shown, the device for obtaining the plan equation of the building plan includes:
[0134] The first acquisition unit 300 is used to acquire a planar image of the target plane; the target plane is a building plan.
[0135] The recognition unit 400 is used to calculate the planar image according to a preset mathematical model to obtain the construction stage corresponding to the planar image;
[0136] The second acquisition unit 500 is used to acquire the set of spatial coordinates of target points on the target plane when the preset construction stage set includes construction stages.
[0137] The calculation unit 600 is used to calculate the plane equation of the target plane based on the set of spatial coordinates of the target point.
[0138] In this embodiment, the explanation of the device for obtaining the planar equation of the building plan can be referred to the description in Embodiment 1 or Embodiment 2, and will not be repeated in this embodiment.
[0139] As can be seen, the planar equation acquisition device for building plan described in this embodiment can first determine whether the target plane is suitable for acquiring the planar equation, and then calculate the planar equation of the target plane through the set of target point spatial coordinates of the actual target points on the target plane, thereby improving the sampling effectiveness of the target point spatial coordinate set and thus improving the acquisition accuracy of the target planar equation.
[0140] Example 4
[0141] Please refer to the following: Figure 4 , Figure 4 This is a schematic diagram of a device for obtaining the planar equation of a building plan according to an embodiment of this application. Figure 4 The device for obtaining the plan equation of the building plan shown is composed of Figure 3 The plan equation of the building plan shown is obtained through optimization by the device. For example... Figure 4 As shown, the second acquisition unit 500 includes:
[0142] The first subunit 510 is used to determine the target polygon and the reference plane in which the target polygon is located;
[0143] The second subunit 520 is used to determine a predicted plane that corresponds to the target plane and is parallel to the reference plane;
[0144] The third subunit 530 is used to obtain the set of estimated coordinates of the target points on the predicted plane;
[0145] The fourth subunit 540 is used to obtain the set of gimbal rotation angles corresponding to the estimated coordinate set of the target point;
[0146] The fifth subunit 550 is used to collect a set of laser measurement distances corresponding to the set of gimbal rotation angles through a measuring device;
[0147] The sixth subunit 560 is used to calculate the set of spatial coordinates of the target point on the target plane based on the set of gimbal rotation angles and the set of laser measurement distances.
[0148] As an optional implementation, the first subunit 510 includes:
[0149] The first module 511 is used to acquire multiple spatial points located on the same plane around the target building;
[0150] The second module 512 is used to connect multiple spatial points to obtain the target polygon that surrounds the target building.
[0151] The third module 513 is used to determine the plane containing the target polygon as the reference plane.
[0152] As an optional implementation, the second subunit 520 includes:
[0153] The fourth module 521 is used to obtain a projection point included in the target plane;
[0154] Module 522 is used to determine the plane that is parallel to the reference plane and includes the projection point as the estimated plane.
[0155] As an optional implementation, the third subunit 530 includes:
[0156] Module 6, 531, is used to extract the bounding rectangle of the target polygon in the estimated plane;
[0157] Module 7, 532, is used to divide the circumscribed rectangle according to a preset spacing to obtain multiple grids;
[0158] Module 8, 533, is used to obtain the spatial coordinates of all vertices in multiple grids;
[0159] Module 9, 534, is used to determine the set of estimated coordinates of the target points of the predicted plane based on the spatial coordinates of all vertices.
[0160] In this embodiment, the explanation of the device for obtaining the planar equation of the building plan can be referred to the description in Embodiment 1 or Embodiment 2, and will not be repeated in this embodiment.
[0161] As can be seen, the planar equation acquisition device for building plan described in this embodiment can first determine whether the target plane is suitable for acquiring the planar equation, and then calculate the planar equation of the target plane through the set of target point spatial coordinates of the actual target points on the target plane, thereby improving the sampling effectiveness of the target point spatial coordinate set and thus improving the acquisition accuracy of the target planar equation.
[0162] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor runs the computer program to enable the electronic device to execute any of the methods for obtaining the planar equation of a building plan in Embodiment 1 or Embodiment 2 of this application.
[0163] This application provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, the method for obtaining the planar equation of a building plan is performed according to either embodiment 1 or embodiment 2 of this application.
[0164] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0165] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0166] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0167] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0168] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0169] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for obtaining the planar equation of a building plan, characterized in that, include: Obtain a planar image of the target plane; The target plane is the building plan; The planar image is calculated according to a preset mathematical model to obtain the construction stage corresponding to the planar image; When the preset construction stage set includes the construction stage, obtain the target point spatial coordinate set of the target plane; the construction stage set includes at least the formwork support erection stage, wall and column reinforcement binding stage, beam and slab formwork erection stage, beam and slab reinforcement binding stage, pipeline installation and pre-embedding stage, and concrete pouring stage. Calculate the plane equation of the target plane based on the set of spatial coordinates of the target point; The step of obtaining the set of spatial coordinates of the target points on the target plane includes: Determine the target polygon and the reference plane in which the target polygon is located; Determine a predicted plane that corresponds to the target plane and is parallel to the reference plane; Extract the bounding rectangle corresponding to the target polygon from the estimated plane; The circumscribed rectangle is divided according to a preset spacing to obtain multiple grids; Obtain the spatial coordinates of all vertices in the multiple grids; The spatial coordinates of all the vertices are determined as the set of estimated coordinates of the target points of the predicted plane; Obtain the set of gimbal rotation angles corresponding to the estimated coordinate set of the target point; A set of laser measurement distances corresponding to the set of gimbal rotation angles is collected using a measuring device; The set of spatial coordinates of the target point on the target plane is calculated based on the set of gimbal rotation angles and the set of laser measurement distances. The step of determining the target polygon and the reference plane in which the target polygon is located includes: Obtain multiple spatial points located on the same plane around the target building; Connect the multiple spatial points to obtain a target polygon that surrounds the target building; The plane containing the target polygon is determined as the reference plane.
2. The method for obtaining the planar equation of a building plan according to claim 1, characterized in that, The step of determining the estimated plane that corresponds to the target plane and is parallel to the reference plane includes: Obtain a projection point included in the target plane; The plane that is parallel to the reference plane and includes the projection point is determined as the estimated plane.
3. A device for obtaining the planar equation of a building plan, characterized in that, The device for obtaining the plan equation of the building plan includes: The first acquisition unit is used to acquire a planar image of the target plane; the target plane is a building plan. The identification unit is used to calculate the planar image according to a preset mathematical model to obtain the construction stage corresponding to the planar image; The second acquisition unit is used to acquire the set of spatial coordinates of target points on the target plane when the preset set of construction stages includes the construction stages; the set of construction stages includes at least the formwork support erection stage, the wall and column reinforcement binding stage, the beam and slab formwork erection stage, the beam and slab reinforcement binding stage, the pipeline installation and pre-embedding stage, and the concrete pouring stage. The calculation unit is used to calculate the plane equation of the target plane based on the set of spatial coordinates of the target point; The second acquisition unit includes: The first sub-unit is used to determine the target polygon and the reference plane in which the target polygon is located; The second subunit is used to determine a predicted plane that corresponds to the target plane and is parallel to the reference plane; The third subunit is used to obtain the set of estimated coordinates of the target points on the predicted plane; The fourth subunit is used to obtain the set of gimbal rotation angles corresponding to the estimated coordinate set of the target point; The fifth subunit is used to collect a set of laser measurement distances corresponding to the set of gimbal rotation angles through a measuring device; The sixth subunit is used to calculate, based on the set of gimbal rotation angles and the set of laser measurement distances, the set of spatial coordinates of the target points on the target plane. The third subunit includes: The sixth module is used to extract the bounding rectangle of the target polygon in the estimated plane; The seventh module is used to divide the circumscribed rectangle according to a preset spacing to obtain multiple grids; The eighth module is used to obtain the spatial coordinates of all vertices in multiple grids; The ninth module is used to determine the set of estimated coordinates of the target points of the predicted plane based on the spatial coordinates of all vertices. The first subunit includes: The first module is used to acquire multiple spatial points located on the same plane around the target building; The second module is used to connect the multiple spatial points to obtain a target polygon surrounding the target building; The third module is used to determine the plane containing the target polygon as the reference plane.
4. An electronic device, characterized in that, The electronic device includes a memory and a processor, the memory being used to store a computer program, and the processor running the computer program to cause the electronic device to perform the method for obtaining the planar equation of a building plan as described in any one of claims 1 to 2.
5. A readable storage medium, characterized in that, The readable storage medium stores computer program instructions, which, when read and executed by a processor, perform the method for obtaining the planar equation of a building plan as described in any one of claims 1 to 2.
Citation Information
Patent Citations
A 500KV substation VR construction simulation method and device
CN109472104A
Object object standing view generation method and device, storage medium and terminal equipment
CN111402415A
Engineering monitoring method and system based on AI intelligent image analysis
CN112036336A
Building information model construction method and device
CN112597574A