Spatial information processing apparatus and spatial information processing method
The spatial information processing device and method enhance laser scanning by labeling voxels to indicate the presence or absence of point clouds, improving the understanding and visualization of scanned environments.
Patent Information
- Application Number
- JP2023024809
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-09-02
AI Technical Summary
Existing laser scanning methods for construction sites struggle to determine the status of locations where no point cloud data exists, making it difficult to understand the measurement space accurately.
A spatial information processing device and method that assigns labels to voxels based on the presence or absence of point clouds, using a laser scanner to identify spaces where objects exist, do not exist, or have unknown status, and adds color information to visualize these spaces.
Facilitates a better understanding of the measurement space by clearly defining areas with and without point clouds, enabling accurate detection of openings and obstructions, and improving the interpretation of scanned environments.
Smart Images

Figure 2024118503000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a spatial information processing device and a spatial information processing method. [Background technology]
[0002] 2. Description of the Related Art There is known a technique for stereoscopically measuring three-dimensional data of a construction site using a laser scanner as point cloud data in order to check progress and measure completed form at a construction site or the like (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-277813 A Summary of the Invention [Problem to be solved by the invention]
[0004] This type of surveying method is effective for determining the irregularities of the shape of the surveyed object, but it is difficult to determine the status of a location where no point cloud exists, for example.
[0005] The present invention has been made in consideration of the above-mentioned circumstances, and aims to provide a spatial information processing device and a spatial information processing method that make it easier to understand the measurement space by assigning a status to areas where no point cloud exists when acquiring a point cloud. [Means for solving the problem]
[0006] A spatial information processing device according to one embodiment of the present invention includes an acquisition unit that acquires a point cloud consisting of a plurality of points representing objects existing in a measurement space surveyed by a laser scanner, and a labeling unit that, based on the points, labels spaces located on the path along which the laser light that acquires the points travels and on an extension of the path.
[0007] The spatial information processing apparatus according to an embodiment of the present invention may further include a division unit that divides a measurement space including a point cloud into a plurality of voxels.
[0008] In one embodiment of the present invention, the labeling unit labels each voxel divided by the division unit as one of a first space in which an object exists, a second space in which no object exists, and a third space in which it is unclear whether an object exists or not, for example, based on the points within each voxel divided by the division unit.
[0009] In one embodiment of the present invention, the labeling unit labels each voxel divided by the division unit as one of a first space in which an object exists, a second space in which no object exists, and a third space in which it is unclear whether an object exists or not, for example, based on the point cloud within each voxel divided by the division unit.
[0010] In one embodiment of the present invention, if there are no voxels located on a path from the installation position of the laser scanner in the measurement space to which a first space is labeled, the labeling unit can label all voxels located on the path as the second space.
[0011] A spatial information processing device according to one embodiment of the present invention may further include a detection unit that detects a point cloud as a measurement target surface, and an addition unit that converts the measurement target surface detected by the detection unit into voxels and adds visual information to the voxels based on labels.
[0012] In one embodiment of the present invention, the adding unit adds color information according to a label attached to a voxel, for example.
[0013] In one embodiment of the present invention, the measurement space includes, for example, a room. The measurement target surface is, for example, a surface corresponding to the ceiling, floor, or wall of the room. In this case, the detection unit may calculate a reference vector in a vertically downward direction starting from the installation position of the laser scanner, calculate a representative vector perpendicular to the measurement target surface for each measurement target surface, and determine whether each measurement target surface corresponds to the ceiling, floor, or wall of the room based on the inner product of the reference vector and the representative vector.
[0014] A spatial information processing method according to one embodiment of the present invention is a method that causes a computer to execute a process of acquiring a point cloud consisting of a plurality of points representing objects existing in a measurement space surveyed by a laser scanner, and labeling, based on the points, spaces located on the path traveled by the laser light along which the points are acquired and on an extension of the path. Effect of the Invention
[0015] According to one embodiment of the present invention, a spatial information processing device and a spatial information processing method are provided that, when acquiring a point cloud, assign a status to locations where no point cloud exists, making it easier to understand the measurement space. [Brief description of the drawings]
[0016] [Figure 1] 1 is a schematic diagram for explaining a spatial information processing device and a spatial information processing method according to an embodiment of the present invention; [Diagram 2] 1 is a schematic diagram for explaining a spatial information processing device and a spatial information processing method according to an embodiment of the present invention; [Diagram 3] 1 is a diagram illustrating a hardware configuration of a spatial information processing device according to an embodiment of the present invention. [Figure 4] 1 is a functional block diagram of a spatial information processing device according to an embodiment of the present invention. [Diagram 5] 4 is a flowchart showing spatial information processing executed by a processor of the spatial information processing device in one embodiment of the present invention. [Figure 6] 1 is a diagram showing an example of a point cloud representing an object existing in a measurement space surveyed by a laser scanner in one embodiment of the present invention. FIG. [Figure 7] FIG. 6 is a diagram for explaining the labeling process executed in step S103 in FIG. 5. [Figure 8] 6A to 6C are diagrams for assisting in the explanation of the labeling process executed in step S103 in FIG. 5. [Figure 9]6A to 6C are diagrams for assisting in the explanation of the detection process executed in step S104 of FIG. 5. [Figure 10] 6 is a diagram showing an example of a measurement target surface detected in step S104 of FIG. 5. [Figure 11] FIG. 13 is a diagram showing an example of a point cloud of a floor-equivalent surface. [Figure 12] 6A to 6C are diagrams for assisting in the explanation of the detection process executed in step S104 of FIG. 5. [Figure 13] 6 is a diagram for assisting in the explanation of the calculation process executed in step S105 in FIG. 5. [Figure 14] FIG. 6 is a diagram showing an example of a three-dimensional model represented by a group of voxels to which color information has been added in step S106 of FIG. 5. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] A spatial information processing device, a spatial information processing method, and a spatial information processing program according to an embodiment of the present invention will be described in detail with reference to the drawings.
[0018] 1 and 2 are schematic diagrams for explaining a spatial information processing device and a spatial information processing method according to an embodiment of the present invention. In FIG. 1, the symbol RM indicates a room (measurement space). The symbol OJ indicates one of the objects installed in the room RM. In the example of FIG. 1 and FIG. 2, a display is shown as the object OJ.
[0019] Reference symbol LS denotes a laser scanner that surveys spatial information. The laser scanner LS is, for example, a terrestrial laser scanner (TLS). The laser scanner LS scans in almost all directions (a hemispherical range) with the laser light L emitted from a laser emission port of a main body that can rotate horizontally and vertically. As a result, for example, the entire room RM is scanned, and three-dimensional data of the room RM is obtained as point cloud data.
[0020] The laser scanner LS is wirelessly connected to the spatial information processing device 10. The laser scanner LS may be wired to the spatial information processing device 10. The laser scanner LS transmits point cloud data obtained by surveying to the spatial information processing device 10.
[0021] The spatial information processing device 10 receives point cloud data from the laser scanner LS. The spatial information processing device 10 divides the room RM (more specifically, the space including the room RM) into a plurality of voxels. Note that the grid shown in FIG. 2 represents the voxels. The voxels mean that the room RM, which is a measurement space, is measured by the laser scanner LS and the measurement space is divided into arbitrary sizes. By voxelizing the measurement space, the point cloud data can be easily handled.
[0022] The spatial information processing device 10 assigns one of the labels B0, B1, and B2 to each voxel based on the points contained in each voxel. The above "points contained in each voxel" refer to the points that make up the point cloud data. For convenience, these points are referred to as "points P."
[0023] The labels B0 to B2 will be explained using voxels located on the path (solid line in FIG. 2) along which the laser light L travels and on the extension of this path (dash-dotted line in FIG. 2) as examples. For convenience, the straight line formed by the path along which the laser light L travels and the extension of this path will be referred to as the "laser straight line LSW."
[0024] 2, the spatial information processing device 10 detects a point P corresponding to an object OJ detected by the laser light L. The spatial information processing device 10 attaches a label B1 to a voxel including the point P (in other words, a space in which the object OJ exists). The spatial information processing device 10 attaches a label B0 to a voxel in which the laser light L does not reach because the laser light L is blocked by the object OJ (in other words, a space in which it is unclear whether an object exists or not). The spatial information processing device 10 attaches a label B2 to a voxel up to the point where the laser light L emitted from the laser emission port of the laser scanner LS is blocked by the object OJ (in other words, a space in which no object exists).
[0025] As a supplement, consider the case where a label B2 is attached to a voxel. The room RM includes walls, a ceiling, a floor, and the like. For example, there are locations on a surface equivalent to a wall (for convenience, referred to as a "wall-equivalent surface") where no point cloud exists. For example, the laser light L passes through an open door or a transparent window (i.e., a window that does not reflect the laser light L). Therefore, a point cloud cannot be acquired at these locations. The spatial information processing device 10 can determine that a location on the wall-equivalent surface is an opening of the room RM (for example, an open door or a transparent window). However, beyond the open space, the wall of the next room or plants beyond the window may exist as point cloud data at a distance. By not treating point clouds other than those in the measurement space as measurement data, the positions of the doors and windows can be detected.
[0026] In this embodiment, the spatial information processing device 10 can assign a status to a portion on the wall surface of the room RM where no point cloud exists by performing labeling processing on the laser straight line LSW. This makes it easier to grasp the measurement space.
[0027] Furthermore, the point cloud data includes locations where no point cloud exists, for example on a surface equivalent to the ceiling surface of the room RM (for convenience, referred to as the "ceiling-equivalent surface"). For example, the laser light L passes through a transparent skylight. Therefore, there are areas on the ceiling-equivalent surface where no point cloud exists. As a different example, the laser cannot reach the surface because it is blocked by decorations or beams (in other words, objects) installed on the ceiling. In such cases, there are also areas where no point cloud exists.
[0028] For example, consider a case where all voxels located on the laser straight path LSW connecting the laser scanner LS and the ceiling-equivalent surface are labeled with the label B2. In this case, it is estimated that the laser light L is emitted to the outside of the room RM without hitting the ceiling of the room RM or an object installed on the ceiling. Therefore, the spatial information processing device 10 can determine that the location on the ceiling-equivalent surface located on this laser straight path LSW is an opening (e.g., a transparent skylight) of the room RM.
[0029] Also, consider a case where a label B0 is attached to a voxel on the ceiling-equivalent surface. In this case, it is estimated that the laser light L does not reach the ceiling because it hits, for example, an object installed on the ceiling of the room RM. Therefore, the spatial information processing device 10 can determine that the part of the voxel labeled B0 on the ceiling-equivalent surface is a part that could not be surveyed because it is blocked by the object.
[0030] Furthermore, the point cloud data includes locations where no point cloud exists, for example, on a surface equivalent to the floor surface of the room RM (for convenience, referred to as the "floor-equivalent surface"). For example, the laser light L passes through floor portions that are openings during construction. Therefore, no point cloud exists at these locations located on the floor-equivalent surface. Also, no point cloud exists at locations on the floor-equivalent surface where the laser cannot reach because it is blocked by an object placed on the floor.
[0031] For example, consider a case where the label B2 is attached to all voxels located on the laser straight path LSW connecting the laser scanner LS and the floor equivalent surface. In this case, it is estimated that the laser light L is emitted to the outside of the room RM without hitting any object or floor placed in the room RM. Therefore, the spatial information processing device 10 can determine that the location on the floor equivalent surface located on this laser straight path LSW is an opening of the room RM (for example, a floor part that is an opening under construction).
[0032] Also, consider a case where a label B0 is attached to a voxel on the floor-equivalent surface. In this case, it is estimated that the laser light L does not reach the floor of the room RM because it hits an object placed in the room RM. Therefore, the spatial information processing device 10 can determine that the part of the voxel labeled B0 on the floor-equivalent surface is a part that could not be surveyed because it is blocked by the object.
[0033] In this manner, in this embodiment, labels B0 to B2 are attached to each voxel in the measurement space. The spatial information processing device 10 can assign a status to each location of the room RM, such as a wall-equivalent surface, a ceiling-equivalent surface, and a floor-equivalent surface, where no point cloud exists. This makes it easier to grasp the measurement space.
[0034] The spatial information processing device, the spatial information processing method, and the spatial information processing program according to this embodiment will be described in more detail.
[0035] FIG. 3 is a diagram showing a hardware configuration of the spatial information processing device 10. As shown in FIG.
[0036] The spatial information processing device 10 is, for example, a general-purpose PC (Personal Computer). As shown in Fig. 3, the spatial information processing device 10 includes a bus 100. A processor 111, a memory 112, an auxiliary storage device 113, a communication interface 114, an input device 115, and an output device 116 are connected to the bus 100. Note that the spatial information processing device 10 may include other configurations not shown in Fig. 3. That is, the aspect of the spatial information processing device 10 has a degree of freedom, and various design changes are possible.
[0037] The processor 111 executes a program deployed on the memory 112. The programs executed by the processor 111 include a spatial information processing program 113A according to an embodiment of the present invention.
[0038] The processor 111 is, for example, a single processor or a multiprocessor, and includes at least one processor. When multiple processors are included, the processor 111 may be packaged as a single device, or may be configured as multiple devices that are physically separated within the spatial information processing device 10.
[0039] The memory 112 is, for example, a RAM (Random Access Memory), and provides a work area.
[0040] The auxiliary storage device 113 is a storage device that stores various information, such as a hard disk drive or a semiconductor memory. Various programs including a spatial information processing program 113A are stored in the auxiliary storage device 113. The processor 111 loads the program in a work area secured in the memory 112, and controls the spatial information processing device 10 according to the loaded program.
[0041] A spatial information processing device 10, which is an example of a computer, executes a spatial information processing method according to an embodiment of the present invention by a spatial information processing program 113A.
[0042] For example, the spatial information processing device 10 executes a series of processes, which are to acquire a point cloud consisting of a plurality of points P representing objects (e.g., objects such as walls, ceiling, and floor of a room RM, and a display placed in the measurement space) present in a measurement space surveyed by the laser scanner LS, and to label, based on the points P, spaces located on the path along which the laser light L for acquiring the points P travels and on an extension of the path (i.e., the laser straight line LSW) (see FIG. 2). More specifically, the spatial information processing device 10 executes a series of processes, which are to divide the measurement space including the point cloud into a plurality of voxels, and to label each voxel as one of a first space in which an object exists, a second space in which an object does not exist, and a third space in which it is unclear whether an object exists or not, based on the points P (or a point cloud including a plurality of points P) included in each divided voxel.
[0043] By executing the spatial information processing program 113A, the spatial information processing device 10 can assign a status to each part of the room RM, such as the wall equivalent surface, the ceiling equivalent surface, and the floor equivalent surface, where no point cloud exists, as described above. This makes it easier to grasp the measurement space. The spatial information processing program 113A will be described in detail later.
[0044] The communication interface 114 connects the laser scanner LS and the spatial information processing device 10 so that they can communicate with each other. The communication interface 114 may also connect the spatial information processing device 10 to cloud computing via an external network, for example. In this case, the cloud computing may include the spatial information processing program 113A. That is, the processing by the spatial information processing program 113A may be executed by the cloud computing instead of the spatial information processing device 10.
[0045] The input device 115 is a keyboard, a pointing device, a touch panel, or the like, and receives input from, for example, an operator.
[0046] The output device 116 includes a display device, an audio output device, a printer, etc. The output device 116 outputs, for example, the processing result of the spatial information processing program 113A.
[0047] Fig. 4 is a functional block diagram of the spatial information processing device 10. As shown in Fig. 4, the spatial information processing device 10 includes, as functional blocks, a point cloud acquisition unit 100A, a voxel division unit 100B, a labeling unit 100C, a measurement target surface detection unit 100D, and a visual information addition unit 100E. Each functional block is realized by a spatial information processing program 113A executed by the spatial information processing device 10, which is an example of a computer. Each functional block may be realized in part or in whole by hardware such as a dedicated logic circuit.
[0048] The point cloud acquisition unit 100A acquires a point cloud consisting of a plurality of points P representing an object existing in a measurement space surveyed by the laser scanner LS. The voxel division unit 100B divides the measurement space including the point cloud into a plurality of voxels. The labeling unit 100C assigns one of the labels B0 to B2 to each voxel based on the point P (or a point cloud including a plurality of points P) in each voxel divided by the voxel division unit 100B. By the operation of these functional blocks, for example, as described above, it is possible to assign a status to each portion of the room RM, such as the wall equivalent surface, the ceiling equivalent surface, and the floor equivalent surface, where no point cloud exists. This makes it easier to grasp the measurement space.
[0049] Fig. 5 is a flowchart showing spatial information processing executed by the processor 111 of the spatial information processing device 10. For example, when the processor 111 instructs the laser scanner LS to perform a scan in response to an operator's operation on the input device 115, execution of the spatial information processing shown in Fig. 5 is started.
[0050] The laser scanner LS scans, for example, a space within a certain range centered on itself in accordance with an instruction from the processor 111. The laser scanner LS outputs to the spatial information processing device 10 a point cloud of the measurement space obtained by the scan.
[0051] FIG. 6 shows an example of a point cloud representing an object existing in a measurement space surveyed by a laser scanner LS. In the example of FIG. 6, an area where a point P (or a point cloud) exists is shown in white, and an area where a point P (or a point cloud) does not exist is shown in black. In FIG. 6, the vertical direction is the z-axis direction, and two axial directions that are perpendicular to the z-axis direction and perpendicular to each other are the x-axis direction and the y-axis direction, respectively. The mutually perpendicular x-axis direction, y-axis direction, and z-axis direction form a right-handed system. The reference symbol RC1 shown in FIG. 6 will be explained later.
[0052] As shown in FIG. 6, the measurement space surveyed by the laser scanner LS is a three-dimensional space defined by three axes: the x-axis, the y-axis, and the z-axis.
[0053] The spatial information processing device 10 acquires a point cloud exemplified in Fig. 6 (step S101). Thus, in step S101, the spatial information processing device 10 operates as an acquisition unit (i.e., point cloud acquisition unit 100A) that acquires a point cloud consisting of a plurality of points P that represent an object existing in a measurement space surveyed by the laser scanner LS.
[0054] The spatial information processing device 10 divides the measurement space into a plurality of voxels (step S102). For example, the spatial information processing device 10 creates a rectangular parallelepiped bounding box that encloses all points P using the maximum and minimum values of the xyz coordinates of the point cloud acquired in step S101. The spatial information processing device 10 divides the space (measurement space) within the created bounding box into a plurality of voxels. As an example, the spatial information processing device 10 divides the measurement space into cubic voxels with one side measuring 10 cm. It is preferable that the set size of the voxels can be changed arbitrarily.
[0055] In this manner, in step S102, the spatial information processing apparatus 10 operates as a division section (that is, the voxel division section 100B) that divides the measurement space including the point cloud into a plurality of voxels.
[0056] The spatial information processing apparatus 10 assigns one of labels B0 to B2 to each voxel based on a point P (or a point group including a plurality of points P) in each voxel divided in step S102 (step S103).
[0057] The labeling process performed in step S103 will be described with reference to Fig. 7. The grid shown in Fig. 7 represents voxels divided within the bounding box. A voxel marked with a white circle (◯) indicates the voxel where the laser scanner LS is located. A voxel marked with a white triangle (△) indicates a voxel labeled B0. A voxel marked with a black circle (●) indicates a voxel labeled B1. A voxel marked with a white square (□) indicates a voxel labeled B2.
[0058] In FIG. 7, the area hatched with diagonal lines indicates the area where the point cloud exists. The hatched areas with diagonal lines labeled with symbols W1 and W2 indicate walls provided in the measurement space. The dotted hatched area labeled with symbol OP2 indicates an opening (e.g., a door or window) provided in wall W2. In FIG. 7, laser light L1 and laser light L2 are shown as representatives of the laser light sequentially emitted in all directions. Symbol LSW1 indicates the straight laser path corresponding to laser light L1. Symbol LSW2 indicates the straight laser path corresponding to laser light L2.
[0059] In the example of Fig. 7, the laser light L1 emitted from the laser scanner LS hits a wall W1. A point cloud exists in the area (space) of the wall W1 where the laser light L1 hits. Since an object exists in this space, a label B1 is attached to the voxel in which the space is located. That is, the spatial information processing device 10 attaches the label B1 indicating "a first space in which an object exists" to such a voxel.
[0060] Additionally, in order to improve the accuracy of object detection based on point clouds, if the number of points P present in the space is equal to or greater than a threshold value (for convenience, referred to as "threshold TH") that has been appropriately set in advance, it is determined that an object exists in the voxel in which the space is located, and a label B1 is assigned to the voxel.
[0061] A label B0 is attached to a voxel located in a space where the laser light L1 cannot reach because it is blocked by a wall W1. In other words, among voxels located on a laser straight path LSW1 extending from the installation position of the laser scanner LS in the measurement space to the outside of the measurement space, a label B0 is attached to a voxel located farther away from the laser scanner LS than a voxel labeled with B1. That is, the spatial information processing device 10 attaches a label B0 indicating a "third space where it is unclear whether an object exists" to such a voxel.
[0062] A voxel in which the number of points P is less than the threshold value TH is determined to be one in which no object exists. Therefore, such a voxel is given the label B2. In other words, voxels between the voxel in which the laser scanner LS is located in the measurement space and the voxel given the label B1 (i.e., the voxel determined to be one in which an object exists) correspond to a space through which the laser light L1 passes. Therefore, such a voxel is given the label B2. In other words, the spatial information processing device 10 gives such a voxel the label B2 indicating a "second space in which no object exists."
[0063] An example of a method for detecting a voxel between a voxel where the laser scanner LS is located and a voxel labeled with B1 will be described with reference to Fig. 8. In Fig. 8, the symbol A indicates the position of the laser scanner LS. The symbol B indicates the position where an object exists. The symbol p indicates a position on the line connecting the positions A and B.
[0064] The position p is given by the following equation.
[0065] p = (1-t)A + tB 0≦t≦1
[0066] In step S103, the spatial information processing device 10 calculates the position p, and detects each voxel including the calculated position p as a voxel between the voxel where the laser scanner LS is located and the voxel to which the label B1 is attached. The spatial information processing device 10 attaches a label B2 to each detected voxel.
[0067] 7, the laser light L2 emitted from the laser scanner LS passes through the opening OP2 without hitting the wall W2. On the laser straight path LSW2 extending from the installation position of the laser scanner LS to the outside of the measurement space, there is no voxel with the number of points P equal to or greater than the threshold value TH. If there is no voxel labeled B1 among the voxels located on the laser straight path LSW2, the spatial information processing device 10 labels all voxels located on the laser straight path LSW2 with the label B2.
[0068] The labeling order of the labels B0 to B2 will be explained. In step S103, the spatial information processing device 10 first assigns the label B0 to all voxels in the measurement space. Next, the spatial information processing device 10 rewrites the labels of all voxels in which it is determined that an object exists to the label B1. Then, the spatial information processing device 10 rewrites the labels of all voxels located between the voxel in which the laser scanner LS is located and the voxel labeled B1 to the label B2. By performing the labeling in this order, it is possible to complete the labeling of all voxels with a relatively light processing load.
[0069] In this way, in step S103, the spatial information processing device 10 operates as a labeling unit (i.e., labeling unit 100C) that labels spaces located on the laser straight line path LSW (i.e., on the path along which the laser light that acquires point P travels and on the extension of this path) based on point P. In addition, the spatial information processing device 10 operating as the labeling unit 100C assigns one of the labels B0 to B2 to each voxel, a first space in which an object exists, a second space in which no object exists, or a third space in which it is unclear whether an object exists or not, based on point P in each voxel divided by the voxel dividing unit 100B.
[0070] The spatial information processing apparatus 10 detects a measurement target surface in the measurement space based on the point group acquired in step S101 (step S104).
[0071] An example of a method for detecting a measurement target surface will be described with reference to Fig. 9. Here, the measurement target surfaces are a ceiling-equivalent surface, a floor-equivalent surface, and a wall-equivalent surface of a room RM. In Fig. 9, the symbol Sc indicates the ceiling-equivalent surface of the room RM. The symbol Sf indicates the floor-equivalent surface of the room RM. The symbol Sw indicates the wall-equivalent surface of the room RM.
[0072] In step S104, the spatial information processing apparatus 10 detects a plane from the point cloud using, for example, RANSAC (RANdom SAmple Consensus). The equation of the plane in the xyz coordinate space is given below.
[0073] ax+by+cz+d=0
[0074] The spatial information processing device 10 calculates a vector Vr perpendicular to the xy plane from the coordinates of the laser scanner LS (for example, the principal point of the optical system of the laser scanner LS). The vector Vr is a reference vector in the vertical downward direction with the installation position of the laser scanner LS as the starting point.
[0075] The spatial information processing device 10 calculates a representative vector of each plane detected from the point cloud using parameters a, b, and c. In addition, since the measurement target surfaces are ceiling-equivalent surfaces, floor-equivalent surfaces, and wall-equivalent surfaces, the spatial information processing device 10 calculates representative vectors only for planes having a certain area or more. Here, the representative vectors Vc, Vf, and Vw of the planes Sc, Sf, and Sw are calculated.
[0076] The spatial information processing device 10 calculates the inner product of the vector Vr and each representative vector by the following equation.
[0077] Vector Vr representative vector = |vector Vr|·|representative vector|cosθ
[0078] In the above formula, when the absolute value of cosθ is 0.1 or less, the vector Vr and the representative vector are substantially perpendicular. In the example of FIG. 9, the absolute value of cosθ in the inner product of the vector Vr and the representative vector Vw is 0.1 or less. Therefore, the plane Sw corresponding to the representative vector Vw can be said to be a surface that stands perpendicular to the xy plane and has a certain area or more. Therefore, the spatial information processing device 10 detects the plane Sw as a surface equivalent to a wall of the room RM.
[0079] In the above formula, when the absolute value of cosθ is 0.9 or more, the vector Vr and the representative vector are substantially parallel. In the example of Fig. 9, the absolute value of cosθ in the inner product of the vector Vr and the representative vector Vc is 0.9 or more. Also, the absolute value of cosθ in the inner product of the vector Vr and the representative vector Vf is 0.9 or more. Therefore, it can be said that the planes Sc and Sf corresponding to the representative vectors Vc and Vf are planes parallel to the xy plane and have an area of a certain amount or more, in other words, a ceiling equivalent surface or a floor equivalent surface.
[0080] The surface equivalent to the ceiling is located above the laser scanner LS. The surface equivalent to the floor is located below the laser scanner LS. The spatial information processing device 10 then compares any z coordinate on the planes Sc and Sf with the z coordinate of the laser scanner LS.
[0081] 9, the z coordinate of the plane Sc is greater than the z coordinate of the laser scanner LS. Therefore, the plane Sc is located above the laser scanner LS. Therefore, the spatial information processing apparatus 10 detects the plane Sc as a surface equivalent to the ceiling of the room RM.
[0082] 9, the z coordinate of the plane Sf is smaller than the z coordinate of the laser scanner LS. Therefore, the plane Sf is located below the laser scanner LS. Therefore, the spatial information processing device 10 detects the plane Sf as the floor equivalent surface of the room RM.
[0083] In this way, in step S104, the spatial information processing device 10 operates as a detection unit (i.e., measurement target surface detection unit 100D) that detects the measurement target surface in the measurement space based on the point cloud. In addition, the spatial information processing device 10 operating as the measurement target surface detection unit 100D calculates a vertically downward vector Vr starting from the installation position of the laser scanner LS, calculates a representative vector perpendicular to the measurement target surface for each measurement target surface, and determines whether or not each measurement target surface corresponds to the ceiling surface, floor surface, or wall surface of the room RM based on the inner product of the vector Vr and the representative vector.
[0084] Note that the laser scanner LS cannot scan the area RC directly below the laser scanner LS with laser light. Therefore, there is no point cloud in this area RC. Note that in the example of FIG. 9, the area RC is a projected area on the plane Sf of the generatrix L11 of the cone, which forms an angle θ1 with the vector Vr. Also, in the example of FIG. 6, the area indicated by the symbol RC1 corresponds to the area RC.
[0085] Fig. 10 shows an example of the measurement target surface detected in step S104. As shown in Fig. 10, in step S104, the plane Sw is detected as a wall-equivalent surface, the plane Sf is detected as a floor-equivalent surface, and the plane Sc is detected as a ceiling-equivalent surface. In addition, an area RC where the laser light is not scanned is detected.
[0086] Further details regarding the detection process of step S104 will be provided. Figure 11 shows an example of a point cloud of a floor-equivalent surface. In Figure 11, the intersection line between the longest wall-equivalent surface and the floor-equivalent surface is the x-axis, the axis perpendicular to the x-axis and tangent to the floor-equivalent surface is the y-axis, and the axis perpendicular to the x-axis and y-axis is the z-axis.
[0087] The upper diagram of Fig. 12 shows an example of a wall-equivalent surface detected from the point cloud shown in Fig. 11. As shown in the upper diagram of Fig. 12, the spatial information processing device 10 detects a point cloud on the boundary between an area where the point cloud is dense and an area where the point cloud is sparse. The symbol OP3 is an area where no point cloud exists, and corresponds to, for example, an open door. The symbol ER indicates a surface of an object such as furniture. In the example of the upper diagram of Fig. 12, the surface of such an object is erroneously detected as a wall-equivalent surface.
[0088] In order to remove such erroneously detected parts, the spatial information processing device 10 extracts intersections IP between the straight lines formed by the point cloud, as shown in the middle diagram of Fig. 12. Next, the spatial information processing device 10 connects the extracted intersections IP, as shown in the bottom diagram of Fig. 12. This removes the erroneously detected parts exemplified by the symbol ER, and determines the wall-equivalent surface.
[0089] The measurement target surface is not limited to a flat surface, and may be a surface including a curved surface.
[0090] The spatial information processing apparatus 10 calculates the correspondence between the measurement object surface detected in step S104 and the voxels (step S105). In other words, the spatial information processing apparatus 10 converts the measurement object surface detected in step S104 into voxels.
[0091] An example of the calculation process in step S105 is shown using Fig. 13. The top diagram in Fig. 13 shows intersections IP between the lines formed by the point group, extracted by the spatial information processing device 10. As shown in the middle diagram in Fig. 13, the spatial information processing device 10 calculates each voxel located on the line connecting each intersection IP (see the bottom diagram in Fig. 12). The spatial information processing device 10 performs inside / outside determination of a voxel using an algorithm (for example, Winding Number Algorithm). By this inside / outside determination, as shown in the bottom diagram in Fig. 13, voxels surrounded by the voxels shown in the middle diagram in Fig. 13 (voxels on the floor equivalent surface in this case) are calculated.
[0092] The spatial information processing apparatus 10 performs similar processing on the other measurement target surfaces (the respective wall-equivalent surfaces and the ceiling-equivalent surface) to calculate the correspondence with the voxels.
[0093] The spatial information processing device 10 adds color information corresponding to the labels to each region (in other words, voxel) on the measurement target surface based on the labels B0 to B2 of the voxels located in each region on the measurement target surface so that the regions on the measurement target surface detected in step S104 can be visually distinguished on a voxel-by-voxel basis (step S106).
[0094] Fig. 14 shows an example of a three-dimensional model of a room RM represented by a group of voxels to which color information has been added. In the example of Fig. 14, among the voxels on each measurement target surface (surfaces corresponding to the ceiling, walls, and floor of the room RM), voxels labeled B0 are shown in yellow (hatched with diagonal lines in Fig. 14 for convenience). Voxels labeled B1 are shown in light blue (white in Fig. 14 for convenience). Voxels labeled B2 are shown in orange (hatched with dots in Fig. 14 for convenience).
[0095] As described above, the region RC2 directly under the laser scanner LS is not scanned with the laser light. Therefore, the voxels located in the region RC2 are labeled with the label B0. The spatial information processing device 10 may add a color other than yellow (e.g., red) to the voxels located in the region RC so that the region RC2 can be visually distinguished.
[0096] The three-dimensional model illustrated in Fig. 14 is displayed, for example, on a display device of the spatial information processing device 10. By checking such a three-dimensional model, the operator can, for example, determine that the portion indicated by the reference character OP3 is an opening (e.g., a door) of the room RM, and can estimate that the portions indicated by the reference characters UK1 and UK2 are wall portions hidden by a door (sliding door). In addition, the operator can estimate that the portion indicated by the reference character UK3 is a portion hidden by a decoration installed on the ceiling, that the portion indicated by the reference character UK4 is a portion where the laser light did not reach because it was blocked by an object, and that the portion indicated by the reference character UK5 is a step in the floor surface.
[0097] In addition, by checking such 3D models, operators can determine whether any shape data was missed during point cloud measurement, and can use the models as support information for BIM (Building Information Modeling).
[0098] For example, an operator who has checked the 3D model can see that the area RC displayed in red is an unmeasured portion. Therefore, in order to survey this unmeasured portion, the operator can move the laser scanner LS to a different position in the room RM and have the laser scanner LS scan the room RM again.
[0099] The spatial information processing device 10 can, for example, create a 3D model without any unmeasured parts by merging multiple point cloud data measured at different scan positions. Note that, in order to ensure the measurement accuracy, it is desirable to register the multiple point cloud data in advance before merging.
[0100] The above-mentioned method of adding color information is merely an example. For example, the voxels labeled B0 may not be uniformly yellow, but may have different color information added for each measurement target surface. The voxels labeled B1 and B2 may not be uniformly light blue and orange, but may have different color information added for each measurement target surface.
[0101] Thus, in steps S105 to S106, the spatial information processing device 10 converts the measurement target surface detected by the measurement target surface detection unit 100D into voxels, and operates as an addition unit (i.e., visual information addition unit 100E) that adds visual information to the voxels based on the labels B0 to B2. In addition, the spatial information processing device 10 operating as the visual information addition unit 100E adds color information according to the label added to the voxel. This allows, for example, an operator to visually distinguish areas on the measurement target surface that have different statuses on a voxel-by-voxel basis.
[0102] The above is a description of exemplary embodiments of the present invention. The embodiments of the present invention are not limited to those described above, and various modifications are possible within the scope of the technical idea of the present invention. For example, the embodiments of the present invention also include contents obtained by appropriately combining the embodiments, etc., which are exemplified in the specification, or the obvious embodiments, etc. [Explanation of symbols]
[0103] 10: Spatial information processing device 100: Bus 100A: Point cloud acquisition section 100B: Voxel division section 100C: Labeling section 100D: Measurement target surface detection section 100E: Visual information addition section 111: Processor 112: Memory 113: Auxiliary storage device 113A: Spatial information processing program 114: Communication interface 115: Input device 116: Output device B0~B2: Label LS: Laser scanner
Claims
1. an acquisition unit that acquires a point cloud consisting of a plurality of points representing an object existing in a measurement space to be surveyed by a laser scanner; A labeling unit that labels a space located on a path along which the laser light for acquiring the point travels and on an extension of the path based on the point. Spatial information processing device.
2. a division unit that divides the measurement space including the point cloud into a plurality of voxels, The spatial information processing device according to claim 1 .
3. the labeling unit labels each of the points in each of the voxels divided by the dividing unit as a first space in which an object exists, a second space in which no object exists, or a third space in which it is unclear whether an object exists; The spatial information processing device according to claim 2 .
4. the labeling unit labels each of the voxels divided by the dividing unit as a first space in which an object exists, a second space in which no object exists, or a third space in which it is unclear whether an object exists or not, based on the point cloud in each of the voxels divided by the dividing unit; The spatial information processing device according to claim 2 .
5. the labeling unit, when there is no voxel to be labeled as the first space among voxels located on the path of the measurement space from an installation position of the laser scanner in the measurement space, labels all voxels located on the path as the second space; The spatial information processing device according to claim 4 .
6. a detection unit that detects the point cloud as a measurement target surface; an adding unit that converts the measurement target surface detected by the detecting unit into the voxels and adds visual information to the voxels based on the labels, The spatial information processing device according to claim 5 .
7. the adding unit adds color information corresponding to the label attached to the voxel; The spatial information processing device according to claim 6 .
8. The measurement space includes a room, the measurement target surface is a surface corresponding to a ceiling surface, a floor surface, and a wall surface of the room, The detection unit is Calculating a vertically downward reference vector starting from the installation position of the laser scanner; A representative vector perpendicular to the measurement target surface is calculated for each of the measurement target surfaces; determining whether each of the measurement target surfaces corresponds to a ceiling surface, a floor surface, or a wall surface of the room based on an inner product of the reference vector and the representative vector; The spatial information processing device according to claim 7 .
9. A point cloud is obtained by using a laser scanner, the point cloud being made up of a plurality of points representing an object existing in a measurement space to be surveyed; A process is performed in which, based on the points, a label is attached to a space located on a path along which a laser beam for acquiring the points travels and on an extension of the path. Spatial information processing methods.
Citation Information
Patent Citations
Spatial information visualization apparatus, program, and spatial information visualization method
JP2016133818A
Method and system for completing point group by using planar segment
JP2018124985A
Measuring machine arrangement position determination device, measuring machine arrangement position determination method, and program
JP2018138883A
Three-dimensional model generation device
JP2019168976A
Three-dimentional model generation method
JP2021140429A
