Plane detection method, information processing device, projection control system, and program
By deriving grid parameters and connecting adjacent grids based on continuity, the method enhances plane detection accuracy, addressing the limitations of existing RANSAC-based techniques.
Patent Information
- Application Number
- JP2023060371
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2043-04-03
AI Technical Summary
Existing plane detection methods, such as those using RANSAC, fail to accurately detect the original plane before it is divided into grids, leading to inaccuracies in projection and road surface detection.
A method that involves obtaining point cloud data, deriving grid parameters, generating grid groups based on continuity conditions, and using RANSAC to connect adjacent grids, followed by deriving plane parameters from these groups to enhance accuracy.
Improves the accuracy of plane detection by ensuring continuity across grid groups, allowing for more precise projection and road surface identification.
Smart Images

Figure 2024147397000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a plane detection method, an information processing device, a projection control system, and a program. [Background technology]
[0002] If the projection surface onto which a projection device (projector) projects an image has unevenness or the like, the image may not be properly projected onto the projection surface. Also, if there are obstacles or steps on the road surface on which a moving object travels, the moving object may not be able to travel on the road surface. To solve these problems (to determine a projection surface onto which an image can be properly projected, a road surface that can be traveled on, etc.), a technology for detecting a plane is known. For example, Patent Document 1 discloses a technology for dividing three-dimensional data into grids and detecting a plane by using RANSAC (Random Sample Consensus) for each section. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2021-77003 Summary of the Invention [Problem to be solved by the invention]
[0004] The plane detection technology disclosed in Patent Document 1 can accurately detect what type of plane each grid is by using RANSAC. However, because plane detection is performed independently for each grid, it is not possible to accurately detect the original plane before it was divided into grids.
[0005] The present invention has been made in view of the above-mentioned circumstances, and an object of the present invention is to provide a plane detection method, an information processing device, a projection control system, and a program that are capable of detecting a plane with higher accuracy than conventional methods. [Means for solving the problem]
[0006] In order to achieve the above object, one aspect of a plane detection method according to the present invention comprises: A control unit of the information processing device Obtaining point cloud data from three-dimensional information based on two-dimensional coordinate information and depth information in a predetermined area; deriving grid parameters, which are plane parameters of each grid, based on grid point cloud data, which is the point cloud data having two-dimensional coordinate information included in each of the plurality of grids into which the predetermined area is divided; generating a grid group by connecting the plurality of grids whose difference in grid parameters satisfies a predetermined condition and which are adjacent to each other; A first plane parameter for detecting a plane is derived based on grid group point cloud data, which is the point cloud data included in the grid group. Effect of the Invention
[0007] According to the present invention, a plane can be detected more accurately than ever before. [Brief description of the drawings]
[0008] [Figure 1] 1A and 1B are diagrams illustrating an example of the configuration of a projection control system according to an embodiment and an image of the system when in use. [Diagram 2] FIG. 2 is a diagram illustrating an example of a functional configuration of a projection control system according to an embodiment. [Diagram 3] 13 is a flowchart illustrating an example of a plane detection process according to an embodiment. [Figure 4] FIG. 13 is a diagram showing an example of point cloud data in a captured image. [Diagram 5] FIG. 1 is a diagram showing an image of point cloud data divided into grids. [Figure 6] This is an image of three randomly selected points in a grid to illustrate RANSAC within a grid. [Figure 7]This is a diagram showing an example of randomly selecting 10 points within a grid to explain RANSAC within a grid. [Figure 8] 13 is an example of a flowchart of a grid group generation process according to the embodiment. [Figure 9] FIG. 13 is a diagram showing an example of group numbers assigned to each grid. [Figure 10] FIG. 13 is a diagram illustrating an example of a grid group. [Figure 11] FIG. 13 is a diagram showing an image of point cloud data in which the distance from a plane obtained from a grid group is less than a first threshold value. [Figure 12] FIG. 13 is a diagram showing an image of continuous point cloud data among point cloud data whose distance from a plane obtained from a grid group is less than a first threshold value. [Figure 13] 13 is a diagram showing an image of point cloud data in which the distance between the plane obtained from the first extracted point cloud and the plane is less than a second threshold value. FIG. [Figure 14] FIG. 13 is a diagram illustrating an example of an extraction plane. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] A projection control system and the like according to an embodiment will be described with reference to the drawings. In the drawings, the same or corresponding parts are given the same reference numerals.
[0010] (Embodiment) 1, the projection control system 100 according to the embodiment is configured by connecting a 3D (Dimensional) camera 240 and a projector 250 to a PC (Personal Computer) 210. The projection control system 100 is controlled by the PC 210, detects a planar area 320 (an area where a workpiece 310, a user's hands, etc. are not present) on a workbench 300 with the 3D camera 240, and projects projection content onto the planar area 320 with the projector 250.
[0011] As shown in FIG. 1, for example, the projection control system 100 is configured by connecting a 3D camera 240 to a PC 210 via a Universal Serial Bus (USB), and connecting a projector 250 to the PC 210 via a High-Definition Multimedia Interface (HDMI (registered trademark)).
[0012] 2, the projection control system 100 and the information processing device 200 are configured such that the information processing device 200 includes a control unit 110, a storage unit 120, and an operation input unit 130, and the projection control system 100 includes a detection unit 140 and a projection unit 150 in addition to the above. For example, the PC 210 that constitutes the information processing device 200 corresponds to the control unit 110, the storage unit 120, and the operation input unit 130, the 3D camera 240 corresponds to the detection unit 140, and the projector 250 corresponds to the projection unit 150. However, which of the devices included in the projection control system 100 corresponds to each of these functional components is arbitrary. For example, the information processing device 200 may not correspond to the operation input unit 130, and the projector 250 may correspond to the operation input unit 130 and the projection unit 150.
[0013] The control unit 110 is configured with a processor such as a CPU (Central Processing Unit). The control unit 110 executes processes for realizing various functions of the projection control system 100 and a plane detection process (described later) using programs stored in the storage unit 120. The control unit 110 also supports multi-threading and can execute multiple processes in parallel.
[0014] The storage unit 120 stores programs executed by the control unit 110 and necessary data. The storage unit 120 may include, but is not limited to, a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, etc. Note that the storage unit 120 may be provided inside the control unit 110.
[0015] The operation input unit 130 includes a user interface such as a keyboard, a mouse, and a push button switch, and receives operation input from the user.
[0016] The detection unit 140 includes a 3D camera 240 capable of acquiring three-dimensional information based on image information (two-dimensional coordinate information) and depth information (distance information), and acquires the state of a predetermined area, such as the top surface of the workbench 300 (information on the three-dimensional positions of the point cloud representing the three-dimensional shape of the object photographed by the detection unit 140). The control unit 110 executes a plane detection process, which will be described later, to detect which part of the photographed object is a plane, based on the information acquired by the detection unit 140 (position information of the point cloud). In the example shown in FIG. 1, the projection control system 100 includes the 3D camera 240 as the detection unit 140, but the detection unit 140 does not necessarily have to include the 3D camera 240. The detection unit 140 can include any sensor instead of the 3D camera 240, as long as it can acquire three-dimensional position information of the point cloud of the photographed object.
[0017] For example, the projection control system 100 may include at least one camera as the detection unit 140 that captures an image of a specified area and the control unit 110 may extract three-dimensional information based on two-dimensional coordinate information and depth information of the specified area from the image captured by the camera.
[0018] The projection unit 150 is a projector (projection apparatus) and includes a light source, a projection device, a lens unit, etc. The type of the light source, the projection device, etc. is arbitrary.
[0019] In this embodiment, when a user places a work piece 310 on the workbench 300 and starts working, if the user instructs the information processing device 200 to project, for example, a work guide via the operation input unit 130, the control unit 110 performs a plane detection process described below before projection, and projects the work guide onto the detection plane obtained by the plane detection process.
[0020] The plane detection process executed by the control unit 110 will be described with reference to Fig. 3. First, the control unit 110 instructs the detection unit 140 to capture an image, and the detection unit 140 captures an image of an object (for example, the workbench 300, etc.) in accordance with the instruction (step S101).
[0021] Then, the control unit 110 acquires point cloud data representing the three-dimensional position of the object photographed by the detection unit 140 (step S102). As a result, for example, point cloud data as shown in Fig. 4 is acquired. Note that, for convenience, Fig. 4 shows an image in which points are randomly present in the photographed image 330, but in reality, the detection unit 140 is able to acquire the distance (depth information) to each pixel of the photographed image 330. Therefore, in reality, the control unit 110 acquires the three-dimensional positions of all pixels included in the photographed image 330 in step S102.
[0022] Next, the control unit 110 divides the acquired point cloud data for each grid (step S103). As a result, the captured image 330 is divided into predetermined grids 331, for example, as shown in FIG. 5. FIG. 5 shows an example in which the captured image 330 is divided into a total of 40 square grids 331, 5 vertical by 8 horizontal, but the size and number of divisions of the grids 331 are arbitrary. In addition, the grids 331 do not have to be square, and the grid size does not have to be uniform for all the grids 331. In this embodiment, the point cloud data is basically acquired uniformly over the entire captured image 330, so it is divided into uniform grids. However, for example, if density unevenness occurs in the acquired point cloud data, it is possible to divide a region with high density of point cloud data into fine grids and a region with low density into large grids.
[0023] Then, the control unit 110 derives plane parameters for each grid using RANSAC (step S104). Note that the plane parameters derived in this step are also called grid parameters because they are plane parameters for the grid.
[0024] Specifically, first, in step S1-1, as shown in Fig. 6, three points (for example, three points indicated by white circles 332) are randomly selected from the point cloud data (grid point cloud data) included in the grid 331, and plane parameters of a plane passing through these three points (in this example, a plane including a triangle 333) are derived. The plane parameters are the coefficients a, b, c, and d of the equation ax+by+cz+d=0 that represents a plane. However, in this embodiment, this plane does not pass through the origin (because the position of the 3D camera 240 is the origin, but it is not necessary to detect a plane that passes through the origin), so the value of d is normalized to 1, and the plane parameters (grid parameters) are expressed by the three values a, b, and c.
[0025] Next, in step S1-2, as shown in FIG. 7, a predetermined number (e.g., A) of points (e.g., 10 points indicated by shaded circles 334) are randomly selected from the point cloud data contained in grid 331, and the error in the plane parameters calculated in step S1-1 is calculated by adding up all A distances between the plane represented by the three points selected in step S1-1 and the points selected in this step.
[0026] The above steps S1-1 and S1-2 are repeated a predetermined number of sampling times (for example, B times), and the plane parameters that minimize the error are determined as the plane parameters (grid parameters) of the grid 331 in question.
[0027] 3, the control unit 110 then executes a grid group generation process (step S105). This process is a process in which plane parameters are compared between adjacent grids 331 to determine the continuity of the planes, and a plurality of grids 331 that can be considered to have continuous planes are grouped together to generate a grid group.
[0028] This grid group generation process will be described with reference to Fig. 8. First, array variables B[i][j][k] are prepared to store the results of determining the continuity of adjacent grids. Here, i represents the vertical position of the grid (top is 0), j represents the horizontal position of the grid (leftmost is 0), and k represents the direction in which the continuity of the grid is determined (0 is up, 1 is right, 2 is down, 3 is left).
[0029] First, the control unit 110 initializes variables i and j, which indicate the grid position, to 0 (step S201). As a result, the determination starts from the top left grid.
[0030] Then, the control unit 110 stores the result of the determination of the planar continuity between adjacent grids (1 if they are continuous, 0 if they are not continuous) in the array variables B[i][j][k] (step S202). The determination of the planar continuity is performed based on whether or not the difference in the grid parameters satisfies a predetermined condition, more specifically, whether or not the difference in the grid parameters is less than the continuity determination threshold. As an example, a case will be described in which the planar continuity of grid 1 located at (i,j) with grid 2 located at (i,j+1) on the right side is determined. In this case, grid 2 is located to the right of grid 1, so k=1. It is assumed that the planar parameters of grid 1 are a1, b1, and c1, and the planar parameters of grid 2 are a2, b2, and c2.
[0031] In this case, if the absolute values of a1-a2, b1-b2, and c1-c2 are all less than the continuity determination threshold, the control unit 110 determines that the two grids are continuous, and stores 1 in B[i][j][1]. If any one of these three absolute values is equal to or greater than the continuity determination threshold, the control unit 110 determines that the two grids are not continuous, and stores 0 in B[i][j][1].
[0032] When the grid to be subjected to the planarity determination is a grid at the edge of the photographed image 330, there are no adjacent grids in the direction toward the outside of the photographed image 330, and therefore the control unit 110 determines that there are no continuous planes in that direction. For example, there are no grids above the top left grid of the photographed image 330, and therefore the control unit 110 stores 0 in the array variable B[0][0][0].
[0033] However, the degree of variation in the plane parameter values also changes depending on the depth (distance from the 3D camera 240) of the points in the grid. Specifically, the variation in the plane parameter values is greater when the depth is large than when it is small. Therefore, the continuity of the plane can be determined more appropriately by changing the continuity determination threshold according to the depth. For example, in the above example, if the continuity determination threshold is set to z1 when the depth of the point in grid 1 (which may be the depth of one point arbitrarily selected from grid 1, or the average depth of a predetermined number of points selected) is z1, m×z1+n However, m and n are constants obtained by experiment or the like.
[0034] Furthermore, the continuity determination threshold to be compared with the absolute value of the difference between a1 and a2 and the absolute value of the difference between b1 and b2 may be set to a value dependent on depth, and the continuity determination threshold to be compared with the absolute value of the difference between c1 and c2, which are coefficients of z (axis in the same direction as depth), may be set to a constant independent of depth. This is because, as a result of experiments conducted by the inventors, it was found that while the variation in the values of a and b among the plane parameters depends on depth, the variation in the value of c does not depend much on depth.
[0035] 8, the control unit 110 updates variables i and j (step S203). For example, if the number of grids is 5 vertically and 8 horizontally, totaling 40, in this step, j is first incremented by 1, and when j becomes 8, j is reset to 0 and i is incremented by 1.
[0036] Then, the control unit 110 judges whether the continuity of the plane has been judged for all grids (step S204). In the above example, when i becomes 5, the continuity judgment has been performed for all grids, and when i is 4 or less, there are still grids that have not been judged.
[0037] If there are any grids that have not yet been determined (step S204; No), the process returns to step S202. If the plane continuity has been determined for all grids (step S204; Yes), the control unit 110 initializes variables i and j to 0 (step S205).
[0038] Then, the control unit 110 refers to the array variables B[i][j][k], and if the adjacent grids and planes are continuous, assigns the same group number to the grids with the continuous planes (step S206). More specifically, for the grid at position (i, j) (own grid), the continuity with the adjacent grids (adjacent grids) on the right (i, j+1) and below (i+1, j) is confirmed, and if they are continuous, the same group number is assigned according to the following assignment rules.
[0039] - If neither the own grid nor the adjacent grid has a number assigned, an unused number is assigned. - If a number has been assigned to the own grid, the same number is assigned to the adjacent grids. - If a number has been assigned to the adjacent grid, assign that number to your grid as well. - If numbers are assigned to both the grid itself and adjacent grids, but they are different numbers, unify them to the smaller number (unified number), and register the larger number as a duplicate number in the lookup table. - The group number of the grid to which the duplicate number registered in the lookup table is assigned is updated to the unified number corresponding to the duplicate number, and the duplicate number is returned to an unused number.
[0040] Then, the control unit 110 updates the variables i and j (step S207). This process is similar to the process in step S203 described above.
[0041] Then, the control unit 110 judges whether or not all the values of the array variables B[i][j][k] have been confirmed (step S208). This judgment can be made based on the value of i, similar to the judgment in step S204 described above.
[0042] If there are any array variables B[i][j][k] that have not yet been checked (step S208; No), the process returns to step S206. If all values of the array variables B[i][j][k] have been checked (step S208; Yes), grids that have been assigned the same group number are grouped to generate a grid group (step S209), and the grid group generation process ends.
[0043] By performing this grid group generation process, the same group number is assigned to each grid 331 whose planes are continuous, as shown in Fig. 9, for example. Then, by grouping the grids 331 that have been assigned the same group number, a grid group 335 as shown in Fig. 10 is obtained. Note that in this embodiment, in step S209, only the grids 331 assigned the group number that includes the largest number of grids (1 in Fig. 10) are grouped.
[0044] In the grid group generation process, there is a possibility that multiple grid groups are generated, the number of which corresponds to the number of group numbers, but by grouping only the grids 331 assigned with the group number including the largest number of grids in this way, even when multiple grid groups are generated, it is possible to select only the grid group with the largest area. Then, the subsequent processing only needs to be performed on the selected grid group, and the processing speed is increased. Also, by deriving plane parameters for the grid group with the largest area, the accuracy of the plane parameters derived can be improved compared to when other grid groups are targeted.
[0045] However, depending on the application of the detection plane, it may be necessary to derive plane parameters for all grid groups, rather than only for the grid group with the largest area. Therefore, the control unit 110 may group grids 331 that are assigned numbers other than the most numerous group number, and generate multiple grid groups 335. In this case, the process described later will be performed in parallel for each grid group.
[0046] 3, the control unit 110 derives plane parameters (first plane parameters) of the grid group 335 generated in step S105 (step S106). Specifically, the control unit 110 obtains plane parameters of a plane (i.e., for detecting a plane) that best fits all the point cloud data (grid group point cloud data) included in the grid group 335 by the least squares method, and sets the plane parameters as the first plane parameters.
[0047] Next, the control unit 110 extracts a point group whose normal distance from the plane represented by the first plane parameter derived in step S106 is less than a first threshold from all the 3D point group data acquired in step S102, and selects only continuous points from the extracted point group as a first extracted point group (step S107). Here, "continuous points from the extracted point group" refers to a point group whose corresponding pixels in the captured image 330 are adjacent to each other.
[0048] 11, for example, a group of points whose distance from the plane G obtained from the grid group 335 is less than the first threshold (for example, points shown by black circles 336 in FIG. 11) is extracted, and a group of points whose distance from the plane G is the first threshold or more (for example, points shown by hatched circles 337 in FIG. 11) is not extracted. Furthermore, of these extracted groups of points, those that are continuous (for example, the group of points shown by black circles 336 in FIG. 12) are selected, and those that are discontinuous (for example, the group of points shown by white circles 338 in FIG. 12) are not selected. As a result, in the example shown in FIG. 12, the group of points shown by black circles 336 are extracted as the first extracted group of points.
[0049] 3, the control unit 110 derives plane parameters (second plane parameters) from the first extraction point group extracted in step S107 using the least squares method (step S108). Specifically, the control unit 110 determines plane parameters of a plane (i.e., for detecting a plane) that best fits all points included in the first extraction point group using the least squares method, and sets the plane parameters as the second plane parameters.
[0050] Next, the control unit 110 extracts, from all the 3D point cloud data acquired in step S102, a point cloud whose normal distance from the plane represented by the second plane parameters derived in step S108 is less than a second threshold value, and selects only those consecutive points from the extracted point clouds as a second extracted point cloud (step S109).
[0051] Then, control unit 110 acquires, as a detection plane, a planar area obtained by connecting all of the continuous points included in the second extraction point group (step S110), and ends the plane detection process.
[0052] 13, a group of points whose distance from the plane H represented by the second plane parameters is less than a second threshold value (e.g., points indicated by black circles 336 and white circles 338 in FIG. 13) is extracted, and continuous points (e.g., points indicated by black circles 336 in FIG. 13) are selected from the extracted group of points, and these selected group of points become a second extracted group of points. Then, a group of planes (e.g., planar region 339 shown in FIG. 14) obtained by connecting all of the second extracted group of points extracted in step S109 (e.g., points indicated by black circles 336 in FIG. 14) is acquired as a detection plane by the process of step S110, as shown in FIG. 14, for example.
[0053] Note that the control unit 110 may return to step S108 after step S109 and repeat the process of deriving new second plane parameters a predetermined number of times. That is, the control unit 110 may derive plane parameters (new second plane parameters) from the second extracted point group extracted in step S109 using the least squares method, extract a point group whose normal distance from the plane represented by the new second plane parameters is less than a second threshold value from all the three-dimensional point group data acquired in step S102, and select only continuous points from the extracted point groups to extract a new second extracted point group.
[0054] Furthermore, in this case, if the difference between the previous second plane parameters and the newly obtained second plane parameters is within a predetermined range, the control unit 110 may proceed to step S110 to acquire the detection plane, without returning to step S108, and use the second plane parameters at that time as the final second plane parameters.
[0055] Furthermore, when multiple grid groups are generated in the grid group generation process, the control unit 110 will obtain a different detection plane from each grid group. In this case, the multiple detection planes that have been obtained may be presented to the user to select which detection plane to adopt. Furthermore, the control unit 110 may select one detection plane according to some criteria (for example, the largest area, the flattest, the center of gravity closest to the center, etc.).
[0056] The first and second thresholds may be set to the same value or different values. If these thresholds are large, a relatively wide plane is more likely to be detected, but the detected plane is more likely to include irregularities. Basically, it is better to set the first and second thresholds to the same value (a larger value if a wide area is important, and a smaller value if flatness is important) depending on what kind of plane you want to detect. Also, if you want to first make a rough estimate of a wide plane and then detect a plane with flatness, it is better to set the second threshold to a value smaller than the first threshold. Conversely, if you want to make a rough estimate of a plane with flatness and then detect a plane with a large area, it is better to set the second threshold to a value larger than the first threshold.
[0057] Although the shape of the detection plane acquired in the plane detection process (FIG. 3) is indefinite, the area onto which projector 250 projects is a rectangle with a predetermined aspect ratio. Therefore, control unit 110 may set a rectangle with a predetermined aspect ratio that is inside the detection plane detected in the plane detection process and inscribed in the detection plane as the projection area of projector 250.
[0058] Conversely, control unit 110 may set the projection area of projector 250 so as to include within it the detection plane detected in the plane detection process, and project the projection content onto the detection plane within the projection area.
[0059] Furthermore, in order to project the projection content onto the plane detected as described above, the projection control system 100 may require information on the correspondence between the coordinates (projector coordinates) in the projection unit 150 and the coordinates (camera coordinates) in the detection unit 140. In that case, a calibration process is performed in advance to acquire the information on the correspondence.
[0060] The content of the calibration process is arbitrary, but for example, first, with nothing placed on the workbench 300, a checkered image of a checkerboard pattern is projected onto the workbench 300 by the projection unit 150 (projector 250), and the projected image is photographed by the detection unit 140 (3D camera 240). Then, the control unit 110 makes the coordinates (camera coordinates) of each intersection in the photographed image correspond to the coordinates (projector coordinates) of each intersection in the original check image. Based on the correspondence between these two coordinates, the projection control system 100 can obtain information on the correspondence between the projector coordinates and the camera coordinates, such as what kind of image (image represented by projector coordinates) should be projected to a certain area (area represented by camera coordinates) on the workbench 300.
[0061] By the plane detection process described above, the control unit 110 acquires point cloud data from three-dimensional information in a specified area, and derives plane parameters (grid parameters) on a grid-by-grid basis based on the point cloud data (grid point cloud data) contained in each of the multiple grids into which this specified area is divided, and can derive plane parameters (first plane parameters) of a grid group generated from multiple consecutive grids while taking into account the continuity of the plane, thereby making it possible to detect planes more accurately than before.
[0062] Furthermore, in the above-described grid group generation process, when multiple grid groups are generated, the control unit 110 selects the grid group with the largest area and derives the plane parameters (first plane parameters) of the grid group based on the point cloud data included in the selected grid group, thereby speeding up the process and improving the accuracy of the plane parameters.
[0063] Furthermore, the control unit 110 can improve the accuracy of the derived grid parameters by deriving the plane parameters of each grid using RANSAC.
[0064] In addition, the control unit 110 can improve the accuracy of the derived first plane parameters by deriving the plane parameters (first plane parameters) of a plane that best fits all point cloud data (grid group point cloud data) included in the grid group using the least squares method.
[0065] Furthermore, the control unit 110 derives the second plane parameters based on point cloud data (first extracted point cloud) whose normal distance from the plane represented by the first plane parameters is less than the first threshold value and which is included in or adjacent to the grid group. Therefore, the control unit 110 can further improve the accuracy of the derived second plane parameters compared to the accuracy of the first plane parameters.
[0066] Furthermore, the control unit 110 derives plane parameters of a plane that best fits all of the points included in the first extracted point group by the least squares method, and calculates the second plane parameters. The accuracy can be improved.
[0067] In addition, the control unit 110 can detect the plane more accurately than before by acquiring, as the detection plane, a planar area consisting of point cloud data (second extracted point cloud) whose normal distance from the plane represented by the second plane parameter is less than a second threshold value.
[0068] In addition, the control unit 110 can further improve the accuracy of the final derived second plane parameters by repeating the process of deriving new second plane parameters a predetermined number of times based on the second extracted point cloud, which is point cloud data whose normal distance from the plane represented by the second plane parameters is less than a second threshold, to derive the final second plane parameters.
[0069] Furthermore, when the control unit 110 repeats the process of deriving new second plane parameters a predetermined number of times as described above, if the difference between the second plane parameters and the new second plane parameters is within a predetermined range, the control unit 110 does not repeat the process of deriving new second plane parameters thereafter, and sets the new second plane parameters at that point as the final second plane parameters, thereby speeding up the process without reducing the accuracy of the final derived second plane parameters.
[0070] (Modification) In the above-described embodiment, the projection control system 100 includes the projection unit 150, and the information processing device 200 performs plane detection processing to detect the projection surface (area projected by the projection unit 150). However, this is merely one example of how the plane detection processing can be used. For example, even in a system (plane detection system) that does not include the projection unit 150, there is a method of using the plane detection processing to detect a flat area on a desk and display the detected flat area on a display or the like as an "area that is free of objects and can be used as a work area." The plane detection processing can be used for any purpose that requires a flat area.
[0071] In the above embodiment, in order to detect a plane to be used for the projection surface, in generating the grid group, not only the plane parameters of each grid are similar, but also the grids are adjacent to each other as conditions for assigning the same group number. However, the same group number may be assigned only on the condition that the plane parameters of each grid are similar. In this way, even if a divided plane is detected as the same plane. For example, even if a large workpiece is placed in the center of a desk and the left and right plane areas on the desk are divided by the workpiece, the left and right plane areas can be detected as a single plane area.
[0072] (Other variations) The projection control system 100 is not limited to a system including the PC 210, the 3D camera 240, and the projector 250, but may be realized as a system including only the projector 250 with a distance measuring function, or as a system including the 3D camera 240 and the projector 250. In the above embodiment, the control unit 110 is described as being included in the PC 210, but for example, the projector 250 may include the control unit 110, and all control of the projection control system 100 may be performed by the control unit 110 included in the projector 250. In addition, in the case of a system that does not require projection (plane detection system), the projection control system 100 may be realized as a system including the PC 210 and the 3D camera 240. Furthermore, by including the control unit 110, the storage unit 120, and the operation input unit 130 in the 3D camera 240, a plane detection system including only the 3D camera 240 may be realized.
[0073] Furthermore, the PC 210 as the information processing device 200 is not limited to a normal PC, and any computer can be used as long as it includes the control unit 110 and the storage unit 120. The information processing device 200 may be, for example, a one-board microcomputer.
[0074] In the above embodiment, the programs for the plane detection process and the like executed by the control unit 110 have been described as being stored in advance in the storage unit 120. However, the programs may be stored and distributed in a non-transitory computer-readable recording medium such as a flexible disk, a CD-ROM (Compact Disc Read Only Memory), a DVD (Digital Versatile Disc), an MO (Magneto-Optical disc), a memory card, a USB memory, or the like, and the programs may be read and installed in a computer to configure a computer capable of executing each of the above-mentioned processes.
[0075] Furthermore, the program may be superimposed on a carrier wave and applied via a communication medium such as the Internet. For example, the program may be distributed by posting it on a bulletin board system (BBS) on a communication network. The program may then be started and executed under the control of an OS (Operating System) in the same manner as other application programs, thereby enabling the above-mentioned processes to be performed.
[0076] In addition, the control unit 110 may be configured by any processor alone, such as a single processor, a multiprocessor, or a multi-core processor, or may be configured by combining any of these processors with a processing circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array).
[0077] Although the above describes a preferred embodiment of the present invention, the present invention is not limited to the specific embodiment, and the present invention includes the invention described in the claims and its equivalents. [Explanation of symbols]
[0078] 100...projection control system, 110...control unit, 120...storage unit, 130...operation input unit, 140...detection unit, 150...projection unit, 200...information processing device, 210...PC, 240...3D camera, 250...projector, 300...workbench, 310...workpiece, 320, 339...planar area, 330...captured image, 331...grid, 332, 338...white circle, 333...triangle, 334, 337...shaded circle, 335...grid group, 336...black circle
Claims
1. A control unit of the information processing device Obtaining point cloud data from three-dimensional information based on two-dimensional coordinate information and depth information in a predetermined region; deriving grid parameters, which are plane parameters of each grid, based on grid point cloud data, which is the point cloud data having two-dimensional coordinate information included in each of the plurality of grids into which the predetermined area is divided; generating a grid group by connecting the plurality of grids whose difference in grid parameters satisfies a predetermined condition and which are adjacent to each other; Deriving first plane parameters for detecting a plane based on grid group point cloud data, which is the point cloud data included in the grid group; Plane detection methods.
2. the predetermined condition being that a difference between the grid parameters of the plurality of grids is less than a continuity determination threshold; The plane detection method of claim 1 .
3. The control unit: When multiple grid groups are generated, Select the grid group with the largest area; deriving the first plane parameters based on grid group point cloud data, which is the point cloud data having two-dimensional coordinate information included in the selected grid group; The plane detection method of claim 1 .
4. The control unit deriving the grid parameters from the grid point cloud data using RANSAC; The plane detection method of claim 1 .
5. The control unit: deriving the first plane parameters from the grid group point cloud data using a least squares method; The plane detection method of claim 1 .
6. The control unit: extracting a first extracted point cloud, which is point cloud data having a normal distance from a plane represented by the first plane parameter that is less than a first threshold value, and which has two-dimensional coordinate information included in the grid group or two-dimensional coordinate information adjacent to the grid group; deriving second plane parameters for detecting a plane based on the first extracted point cloud; The plane detection method of claim 1 .
7. The control unit: deriving the second plane parameters from the first extracted point cloud using a least squares method; The method of claim 6 .
8. The control unit: extracting a second extracted point cloud, which is point cloud data having a normal distance from the plane represented by the second plane parameters that is less than a second threshold; detecting a planar region consisting of the second extracted point group; The plane detection method according to claim 6.
9. The control unit: extracting a second extracted point cloud, which is point cloud data in which a normal distance from a plane represented by the second plane parameters is less than a second threshold, and repeating a process of deriving new second plane parameters based on the second extracted point cloud a predetermined number of times to derive final second plane parameters; The method of claim 6 .
10. The control unit: When the difference between the second plane parameters and the new second plane parameters is within a predetermined range, the process of deriving new second plane parameters is not repeated thereafter, and the new second plane parameters at that point in time are set as final second plane parameters. The plane detection method of claim 9.
11. The first threshold value and the second threshold value have different values. The plane detection method according to claim 8.
12. Obtaining point cloud data from three-dimensional information based on two-dimensional coordinate information and depth information in a predetermined region; deriving grid parameters, which are plane parameters of each grid, based on grid point cloud data, which is the point cloud data having two-dimensional coordinate information included in each of the plurality of grids into which the predetermined area is divided; generating a grid group by connecting the plurality of grids whose difference in grid parameters satisfies a predetermined condition and which are adjacent to each other; Deriving first plane parameters for detecting a plane based on grid group point cloud data, which is the point cloud data having two-dimensional coordinate information included in the grid group; A control unit is provided. Information processing device.
13. At least one camera that captures an image of a predetermined area; An information processing device including a control unit; A projection device; A projection control system comprising: The control unit of the information processing device extracting three-dimensional information based on two-dimensional coordinate information and depth information in the predetermined area from the captured image captured by the camera; Obtaining point cloud data from the extracted three-dimensional information; deriving grid parameters, which are plane parameters of each grid, based on grid point cloud data, which is the point cloud data having two-dimensional coordinate information included in each of the plurality of grids into which the predetermined area is divided; generating a grid group by connecting the plurality of grids whose difference in grid parameters satisfies a predetermined condition and which are adjacent to each other; Deriving first plane parameters for detecting a plane based on grid group point cloud data, which is the point cloud data having two-dimensional coordinate information included in the grid group; extracting a first extracted point cloud, which is point cloud data having a normal distance from a plane represented by the first plane parameter that is less than a first threshold value, and which has two-dimensional coordinate information included in the grid group or two-dimensional coordinate information adjacent to the grid group; Deriving second plane parameters for detecting a plane based on the first extracted point group; extracting a second extracted point cloud, which is point cloud data having a normal distance from the plane represented by the second plane parameters that is less than a second threshold; Detecting a planar region consisting of the second extracted point group; The projection device is projecting an image onto the planar area detected by the control unit of the information processing device; Projection control system.
14. On the computer, Obtaining point cloud data from three-dimensional information based on two-dimensional coordinate information and depth information in a predetermined region; deriving grid parameters, which are plane parameters of each grid, based on grid point cloud data, which is the point cloud data having two-dimensional coordinate information included in each of the plurality of grids into which the predetermined area is divided; generating a grid group by connecting the plurality of grids whose difference in grid parameters satisfies a predetermined condition and which are adjacent to each other; Deriving first plane parameters for detecting a plane based on grid group point cloud data, which is the point cloud data included in the grid group; A program characterized by executing a process.
Citation Information
Patent Citations
Ground point cloud segmentation method and device and automatic driving vehicle
CN113436336A
Travel-through propriety determination device and control device for moving body
JP2021077003A
