3D room layout reconstruction system based on RGB images
By using the geometric element detection module and virtual plane insertion technology in the room layout 3D reconstruction system, the occlusion problem and assumption constraints are solved, accurate room layout reconstruction without Manhattan assumption is achieved, and the reconstruction speed and accuracy are improved.
Patent Information
- Application Number
- CN202011455111.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-10
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-12-10
AI Technical Summary
Existing deep learning-based 3D room layout reconstruction methods face occlusion problems and strong assumptions. In particular, reconstruction based on a single image is difficult to accurately restore the room layout and is slow.
A 3D room layout reconstruction system based on RGB images is used to extract visual features through the geometric element detection module, combine the plane and line segment detection results, insert virtual planes to solve the occlusion problem, and optimize plane parameters to achieve more accurate room layout reconstruction.
It achieves 3D reconstruction of room layout without Manhattan assumption, improves the accuracy and speed of reconstruction, and is suitable for common room structures.
Smart Images

Figure CN112489204B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to, and particularly relates to, a 3D room layout reconstruction system based on RGB images. Background Art
[0002] Estimating the layout structure of a room is a basic visual task that has many applications in real-world scenarios. For example, it can be used in indoor robot navigation, augmented reality, and other applications. Usually, the indoor layout of a room consists of three components: ceiling, floor, and wall. Compared with active components such as furniture in indoor scenes, these three components are relatively fixed and can also reflect the overall structure of the indoor environment. Usually, estimating the 3D structure of a scene requires using images from multiple perspectives and using the principle of triangulation to estimate the depth of pixels in the image to form a point cloud. For example, the commonly used binocular vision system requires knowing the spatial position relationship between the two cameras, which can be obtained through calibration. Then use two cameras to shoot the same object from different angles, and finally use a complex matching algorithm to accurately restore the 3D information of the scene. At present, artificial intelligence technology has developed rapidly. Deep neural networks have solved many practical problems with their powerful expression and fitting capabilities. Face recognition and pedestrian detection solutions based on deep learning have been applied to all aspects of life. Due to the great success of deep learning in the field of 2D images, many researchers have begun to use this technology in 3D scenes, hoping to restore the 3D structure of the scene. In the present invention, based on such an idea, a deep neural network is used to model the three-dimensional structure of the indoor scene and finally restore the layout of the room.
[0003] The biggest difficulty in reconstructing the 3D layout of a room based on a single image is the occlusion problem. First, due to the occlusion between the wall and the furniture, the reconstruction method based on the point cloud is prone to failure, and the recovered depth information is usually located on the furniture in front, rather than the depth information of the actual room layout; secondly, due to the perspective and occlusion, some important image features, such as the intersection lines or intersection points of walls, are easily partially occluded. Due to these difficulties, the current methods of 3D reconstruction of room layout based on deep learning usually have strong assumptions.
[0004] It is usually assumed that the room satisfies the Manhattan hypothesis, that is, all walls are either parallel or orthogonal, and then the layout of the room is restored by estimating the vanishing point. On top of this assumption, there is another stronger assumption, which is to restrict the room to be a square box, such as assuming that the room is a rectangular parallelepiped. Recently, researchers have begun to focus on recovering more general room layouts. Advanced object detection algorithms detect plane instances, and then use a voting mechanism to reconstruct the three-dimensional structure based on the detection results of multiple images. Based on the detection results of PlaneRCNN, the room reconstruction problem is modeled as a discrete optimization problem. However, this method is slow and usually takes several seconds to process an image. Summary of the invention
[0005] In order to solve the above problems, the present invention provides a 3D room layout reconstruction system based on RGB images. The wall surface is modeled into an ordered sequence, and the planes and intersection lines in the image are detected by using an object detection network. Then, the spatial relationship between adjacent walls is judged by combining the plane detection and intersection line detection results. Finally, the occlusion problem is solved by inserting a virtual plane, and the plane parameters are optimized in combination with the line detection results to achieve more accurate 3D reconstruction of the room layout.
[0006] The technical solution of the present invention is as follows:
[0007] A 3D room layout reconstruction system based on RGB images, comprising:
[0008] Geometric element detection module: extracts visual features based on the backbone network of the convolutional neural network;
[0009] 3D reconstruction module: used to reconstruct the 3D room layout;
[0010] The geometric element detection module includes a plane detection module, a line segment detection module and a reasoning module;
[0011] The plane detection module is used to extract image visual features, detect the walls, ceilings and floors in the image using a convolutional neural network based on the visual features, and output the position information of the detected objects;
[0012] The line segment detection module is used to extract the visual features of the image, detect the intersection lines between the walls in the image using a convolutional neural network based on the visual features, and output the position information of the detected object;
[0013] The reasoning module is used to extract the parameterized detection results in the plane detection module and the line segment detection module, and remove duplicate detections;
[0014] The 3D reconstruction module includes a parameter prediction module and a reconstruction module;
[0015] The parameter prediction module is used to predict pixel-level plane parameters and instance-level parameters;
[0016] The reconstruction module is used to sort the detected planes, create a common area for adjacent planes, and determine whether the detected line segment is located in the area, and reconstruct the 3D room layout according to the determination result.
[0017] Preferably, the RGB image input by the detection network structure used in the geometric element detection module
[0018] The backbone network HRNet-W32 is also used to extract visual features F, where
[0019] Preferably, the detection process in the plane detection module is: using a rectangular box to represent the plane, the center of the rectangular box is c = (x, y), and the width and height are s = (w, h); using three independent two-layer convolutional neural networks to respectively predict the probability map of the center of the rectangular box Center offset diagram and rectangular frame size During the training process, the corresponding true value is:
[0020]
[0021] Where p = (x, y) is the pixel coordinate of the output image, the different channels of C represent the ceiling, the ground, and the wall respectively, δ is the variance of the Gaussian function, c is the center coordinate of the rectangular box, and s is the size of the rectangular box.
[0022] Preferably, the detection process in the line segment detection module is: using the angle θ of the line and the set of points located on the line Indicates that y max Represents the minimum and maximum y coordinates of the points on the line segment on the output feature map, t i represents a point on the line, t i,x t i The x-coordinate of i,y Indicates t i The y coordinate of the line segment is y, N is an integer set; three other independent two-layer convolutional neural networks are used to predict the probability map of the line segment area respectively. Offset plot of points on a line segment Angle diagram of the line segment During the training process, the corresponding true value is:
[0023]
[0024] p = (x, y) is the pixel coordinate of the output image, p x 、py ,t i,x ,t i,y
[0025] Represents p and t respectively i The x and y coordinates of
[0026] Preferably, the specific process of the inference module for plane detection is: extract the response peak position from the predicted probability map C, assuming that (x, y) is the peak position, (ox, oy) is the bias prediction corresponding to the response peak position, (w, h) is the size prediction corresponding to the response peak position, and the final detected rectangular box is: (x+ox, y+oy, w, h); de-duplication detection for the plane is completed using a non-maximum suppression algorithm based on intersection over union (IoU).
[0027] Preferably, the specific process of the inference module for line segment detection is: the equation of the line is set to x=my+b, first extract the peak response position from each row in the predicted probability map L; let (x, y) be the peak position, ox be the bias prediction of the x-coordinate of the peak position, θ be the line angle prediction of the peak position, and the parameterized line be:
[0028] m = 1 / tanθ;
[0029] b = x + ox - m * y;
[0030] The non-maximum suppression algorithm is used for de-duplication detection of line segments, and if two lines intersect in the image or the maximum distance of the x-coordinate of each line is less than the threshold, the low-confidence detection is discarded.
[0031] Preferably, the parameter prediction process is as follows: using the normal n and the offset d to represent the 3D surface: nP+d=0, setting v=[n, d], and using the following formula to predict the pixel-level plane parameter V pix and instance-level parameter V ins ;
[0032] V pix (p) = v;
[0033]
[0034] Preferably, the reconstruction process is as follows: sort all detected walls according to the x-coordinate values of the centers, define a common area U for two adjacent walls, which indicates that the intersection of the two adjacent walls is located therein, and set the rectangular boxes of the two adjacent walls to be The corresponding width and height are (w l ,h l ), (w r ,h r ), then the public area is defined as follows:
[0035]
[0036] U=(left,0,right,H);
[0037] Where ratio = 0.25, band = 10, H and W are the height and width of the image respectively.
[0038] Preferably, the reconstruction process further comprises the steps of: determining whether any detected straight line is located in the common area U, represented by α∈{0,1}; and calculating whether the 2D intersection line of the projection is located in the area through the 3D parameters of two adjacent walls, represented by β∈{0,1}. The above situations are classified as follows:
[0039] 1. α=1, β=1: indicates that two planes intersect in 3D space and the intersection line is detected;
[0040] 2. α=0, β=1: It means that the two planes intersect in 3D space, but the intersection line is not detected;
[0041] 3. α=1, β=0: indicates that the two planes do not intersect in 3D space, and the occlusion intersection line is detected;
[0042] 4. α=0, β=0: indicates a false alarm.
[0043] Preferably, for case 1, the 3D plane parameters are optimized so that the predicted 3D plane parameters are consistent with the 2D line detection, and a triple set Ω of wall, intersection line, and wall is constructed, as well as a wall set The optimized objective function is as follows:
[0044]
[0045] Among them, λ1, λ2, λ3 represent weight parameters, l j is the parameter of the intersection line, and the BFGS algorithm is used to optimize the objective function; for cases 3 and 4, the 3D plane parameters indicate that the two adjacent walls do not intersect in 3D space, and a virtual plane needs to be manually added to make the adjacent walls intersect; in case 3, the 2D projection of the virtual plane coincides with the occlusion line, and in case 4, a vertical occlusion line is inserted in the middle of the common area U, and the 2D projection of the newly added virtual plane coincides with the line; the virtual plane satisfies the following equation:
[0046] nK -1 p = 0;
[0047] n0+d=0;
[0048] Where p is the homogeneous coordinates of two points on the line.
[0049] Finally, the detected planes and the added virtual planes are sorted according to the x-coordinate. For two adjacent walls, the optimized plane parameters are used to calculate the intersection points with the ceiling and the ground. If the ceiling and the ground do not exist, the upper and lower boundaries of the image are regarded as the ceiling and the ground. Then the 3D intersection points are projected back to the 2D image plane to form the room layout segmentation. The calculation formula is as follows:
[0050] NP = D;
[0051] p~KP;
[0052] Where N is the coefficient matrix, D is the bias, P is the 3D intersection coordinate, and p is the projected 2D image coordinate.
[0053] Beneficial effects of the present invention: The present invention implements a system for 3D reconstruction of indoor scene layout based on a single image. There is no Manhattan assumption on the structure of the room. It only assumes that the room has a ceiling and a floor, and the number of walls is variable. This assumption is reasonable, and common rooms in life usually have this feature. By modeling the walls into an ordered sequence, the target detection network is used to detect planes and intersections in the image. Then, the spatial relationship between adjacent walls is judged by combining the plane detection and intersection detection results. Finally, the occlusion problem is solved by inserting a virtual plane, and the plane parameters are optimized in combination with the line detection results to achieve more accurate 3D reconstruction of the room layout. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 To detect the network structure;
[0055] Where I is the input image, BackBone is the HRNet-W32 FPN network, F is the feature map, Conv is the convolutional neural network, and Branch is a set of multiple convolutional neural networks. DETAILED DESCRIPTION
[0056] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0057] A 3D room layout reconstruction system based on RGB images, comprising:
[0058] Geometric element detection module: extracts visual features based on the backbone network of the convolutional neural network;
[0059] 3D reconstruction module: used to reconstruct the 3D room layout;
[0060] The geometric element detection module includes a plane detection module, a line segment detection module and a reasoning module;
[0061] The plane detection module is used to extract the visual features of the image, detect the walls, ceilings and floors in the image using a convolutional neural network based on the visual features, and output the location information of the detected objects;
[0062] The line segment detection module is used to extract the visual features of the image, detect the intersection lines between the walls in the image based on the visual features using a convolutional neural network, and output the location information of the detected object;
[0063] The reasoning module is used to extract the parameterized detection results in the plane detection module and the line segment detection module, and remove duplicate detections;
[0064] The 3D reconstruction module includes a parameter prediction module and a reconstruction module;
[0065] The parameter prediction module is used to predict pixel-level plane parameters and instance-level parameters;
[0066] The reconstruction module is used to sort the detected planes, create a common area for adjacent planes, and determine whether the detected line segment is located in the area, and reconstruct the 3D room layout based on the judgment result.
[0067] As an embodiment of the present invention, the geometric element detection: the detection network structure is as follows Figure 1 As shown, the input RGB image A convolutional neural network-based backbone network (BACKBONE) is used to extract visual features.
[0068] F=BACKBONE(I)
[0069] here The backbone network uses HRNet-W32[8], and the output feature map downsampling rate is 4 times that of the input.
[0070] As an embodiment of the present invention, the plane detection module is similar to CenterNet[9], which uses a rectangular box to represent the plane, where c = (x, y) is the center of the rectangular box, and s = (w, h) is the width and height of the rectangular box. Three independent two-layer convolutional neural networks are used to predict the probability map of the center of the rectangular box respectively. Center offset diagram and rectangular frame size The corresponding true values during training are as follows:
[0071]
[0072] Here p = (x, y) is the pixel coordinate of the output image, and each channel of C represents the ceiling, the ground, and the wall, respectively. Focal loss
[10] and the standard L1 loss function are used to supervise the training of the network.
[0073] As an embodiment of the present invention, line segment detection:
[0074] For a 2D line, use the angle θ of the line and the set of points on the line express:
[0075]
[0076] y min ,y max Represents the minimum and maximum y coordinates of the points on the line segment on the output feature map, t i represents a point on the line, t i,x t i The x-coordinate of i,y Indicates t i , where N is a set of integers.
[0077] Another branch is used to predict the probability map of the line segment area Offset plot of points on a line Angle diagram of the line segment The corresponding true values during training are as follows:
[0078]
[0079]
[0080] Here p = (x, y) is the pixel coordinate of the output image. x ,p y ,t i,x ,t i,y Represents p and t respectively i The training of the network is supervised using Focal loss
[10] and the standard L1 loss function.
[0081] As an embodiment of the present invention, the inference module extracts parameterized plane and line detection results from the predicted heat map during the inference phase. For the plane, the response peak position is first extracted from the predicted probability map C, assuming that (x, y) is the peak position, (ox, oy) is the bias prediction corresponding to the position, and (w, h) is the size prediction corresponding to the position. Then the detected rectangular box is:
[0082] (x+ox,y+oy,w,h)
[0083] For the line, assuming the equation of the line is x=my+b, first extract the peak response position from each row in the predicted probability map L. Assume (x,y) is the peak position, ox is the bias prediction of the x coordinate of the position, and θ is the line angle prediction at the position. Then the parameterized line is:
[0084] m=1 / tanθ
[0085] b=x+ox-m*y
[0086] Use the non-maximum suppression algorithm to remove duplicate detections. For planes, the non-maximum suppression algorithm based on the intersection over union (IoU) is used to remove duplicate face detections. This process is performed together in all category detection results. For the non-maximum suppression algorithm for lines, if two lines intersect in the image or the maximum distance of the x-coordinate of each line is less than the threshold, the low-confidence detection is discarded.
[0087] As an embodiment of the present invention, 3D parameter prediction: In order to reconstruct the 3D room layout, the 3D parameters of each plane are further predicted. The 3D plane is represented by the normal n and the bias d: nP+d=0. Assuming v=[n,d], the plane parameters V at the pixel level are predicted pix and instance-level parameter V ins :
[0088] V pix (p)=v,
[0089]
[0090] During the training process, the predicted plane parameters are supervised. The loss function includes the standard L1 loss function and the depth loss function. The depth loss function converts the predicted plane parameters into depth values. The conversion formula is as follows:
[0091] z=-d / (nK -1 p)
[0092] Here p is the pixel homogeneous coordinate, K is the camera intrinsic parameter. Finally, the standard L1 loss function is used for supervised training.
[0093] As an implementation of the present invention, firstly, all detected walls are sorted according to the x-coordinate values of the centers. For two adjacent walls, a common area U is defined, which indicates that the intersection line of the two walls should be located therein. Assume that the rectangular boxes of the two walls are The corresponding width and height are (w l ,h l ),(w r ,h r ), then the public area is defined as follows:
[0094]
[0095] U=(left,0,right,H)
[0096] Here ratio = 0.25, band = 10, H and W are the height and width of the image respectively.
[0097] Next, determine whether there is a detected straight line in the area, represented by α∈{0,1}. At the same time, calculate whether the 2D intersection of the projection is in the area through the 3D parameters of the two planes, represented by β∈{0,1}. Classify the above situations:
[0098] 1. α=1, β=1: indicates that two planes intersect in 3D space and the intersection line is detected.
[0099] 2.α=0,β=1: It means that the two planes intersect in 3D space, but the intersection line is not detected.
[0100] 3. α=1, β=0: indicates that the two planes do not intersect in 3D space, and the occlusion intersection line is detected.
[0101] 4.α=0,β=0: indicates a false alarm.
[0102] For case 1, optimize the 3D plane parameters so that the predicted 3D plane parameters are consistent with the 2D line detection. Construct the triple set Ω of wall, intersection line, wall, and the wall set The optimized objective function is as follows:
[0103]
[0104] Here λ1, λ2, λ3 represent weight parameters, l j is the parameter of the intersection line, and the BFGS algorithm is used to optimize the function.
[0105] For cases 3 and 4, the 3D plane parameters indicate that the two planes do not intersect in 3D space, so a virtual plane needs to be manually added to make the adjacent planes intersect. In case 3, the 2D projection of the virtual plane coincides with the occlusion line, while in case 4, a vertical occlusion line is inserted in the middle of the common area U, and the 2D projection of the added virtual plane coincides with the line. The virtual plane satisfies the following equation:
[0106] nK -1 p=0
[0107] n0+d=0
[0108] Here p is the homogeneous coordinates of two points on the line.
[0109] Finally, the detected planes and the added virtual planes are sorted according to the x-coordinates. For two adjacent planes, the optimized plane parameters are used to calculate their intersections with the ceiling and the ground. If the ceiling and the ground do not exist, the upper and lower boundaries of the image are regarded as the ceiling and the ground. Then the 3D intersection is projected back to the 2D image plane to form the room layout segmentation. The calculation formula is as follows:
[0110] NP = D;
[0111] p~KP;
[0112] Here N is the coefficient matrix, D is the bias, P is the 3D intersection coordinate, and p is the projected 2D image coordinate. This embodiment provides system training and testing: the effectiveness of the method is verified on the Structure3D dataset. The dataset contains 3500 3D room scenes. 68K images are used as training sets, 6K images are used as validation sets, and 6K images are used as test sets. The network is optimized using the Adam optimizer, with an initial learning rate of 0.0001 and a batch size of 24. The learning rate is reduced to 0.1 times the original at the 30th and 40th epochs, and a total of 50 epochs are trained. The input image size of the network is 640*384*3. In order to test the effectiveness of the method, it is compared with the currently advanced Planar R-CNN[5] and Render-and-Compare[6] on the test set.
[0113] System evaluation criteria: The Render-and-Compare[6] evaluation criteria are used. The evaluation indicators include:
[0114] 2D IoU: The instance-level intersection over union error between the predicted 2D room layout and the true layout;
[0115] PixelError(PE): pixel-level error between the predicted 2D room layout and the actual layout;
[0116] EdgeError(EE): The error between the predicted 2D room layout and the true layout at the segmentation boundary;
[0117] RMSE: 3D depth error between predicted room layout and ground-truth layout.
[0118] method 2D IoU(%) PE(%) EE(%) RMSE Planar RCNN 79.55 7.04 6.61 0.290 Render-and-Compare 77.74 7.30 6.84 0.297 Ours(w / o opt) 79.72 6.52 6.84 0.297 Ours 81.17 5.94 5.79 0.303
[0119] The experimental results are shown in the table above. From the experimental results, it can be seen that the method has a significant improvement in 2D indicators compared with the comparison method. It is worth noting that the reconstruction results of Planar RCNN on a single image are independent of each other, and the room layout is not a whole in three-dimensional space, while the method and Render-and-Compare are a whole, which is better in expression. In addition, on this test set, about 6.33% of the images of the Render-and-Compare method do not have the optimal solution and the reconstruction fails. Therefore, when calculating the indicators, only the part that was successfully reconstructed is calculated. Compared with Render-and-Compare, the method has a 3.43% improvement in 2D IoU, a 1.36% improvement in PE, and a 1.05% improvement in EE, while the 3D depth error is similar. Comparing the results before and after the optimization of the plane parameters, it can be found that after optimization, the 2D indicators have been significantly improved, while the 3D effect has been slightly reduced. The main reason is that no 3D information constraints were added during the optimization process.
[0120] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or perform equivalent replacements on some of the technical features thereof; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A 3D room layout reconstruction system based on RGB images, characterized in that: include: Geometric element detection module: extracts visual features based on the backbone network of the convolutional neural network; 3D reconstruction module: used to reconstruct the 3D room layout; The geometric element detection module includes a plane detection module, a line segment detection module and a reasoning module; The plane detection module is used to extract image visual features, detect the walls, ceilings and floors in the image using a convolutional neural network based on the visual features, and output the position information of the detected objects; The line segment detection module is used to extract the visual features of the image, detect the intersection lines between the walls in the image using a convolutional neural network based on the visual features, and output the position information of the detected object; The reasoning module is used to extract the parameterized detection results in the plane detection module and the line segment detection module, and remove duplicate detections; The 3D reconstruction module includes a parameter prediction module and a reconstruction module; The parameter prediction module is used to predict pixel-level plane parameters and instance-level parameters; The reconstruction module is used to sort the detected planes, create a common area for adjacent planes, and determine whether the detected line segment is located in the area, and reconstruct the 3D room layout according to the determination result; The reconstruction process is as follows: sort all detected walls according to the x-coordinate value of the center, define a common area U for two adjacent walls, indicating that the intersection of the two adjacent walls is located therein, and set the rectangular boxes of the two adjacent walls to be The corresponding width and height are (w l ,h l ), (w r ,h r ), then the public area is defined as follows: U=(left,0,right,H); Where ratio = 0.25, band = 10, H and W are the height and width of the image respectively; The reconstruction process further includes the steps of: determining whether any detected straight line is located in the common area U, represented by α∈{0,1}; and calculating whether the 2D intersection line of the projection is located in the area through the 3D parameters of two adjacent walls, represented by β∈{0,1}; and classifying the above situations: S1, α=1, β=1: indicates that two planes intersect in 3D space and the intersection line is detected; S2, α=0, β=1: indicates that the two planes intersect in 3D space, but the intersection line is not detected; S3, α=1, β=0: indicates that the two planes do not intersect in 3D space, and the occlusion intersection line is detected; S4, α=0, β=0: indicates a false alarm; For case S1, optimize the 3D plane parameters so that the predicted 3D plane parameters are consistent with the 2D line detection, and construct the triple set Ω of wall, intersection line, and wall, as well as the wall set P c , the optimization objective function is as follows: Among them, λ1, λ2, λ3 represent weight parameters, l j is the parameter of the intersection line, and the BFGS algorithm is used to optimize the objective function; for cases S3 and S4, the 3D plane parameters indicate that the two adjacent walls do not intersect in 3D space, and a virtual plane needs to be manually added to make the adjacent walls intersect; in case S3, the 2D projection of the virtual plane coincides with the occlusion line, while in case S4, a vertical occlusion line is inserted in the middle of the common area U, and the 2D projection of the newly added virtual plane coincides with the line; the virtual plane satisfies the following equation: nK -1 p1=0; no+d=0; Where p1 is the homogeneous coordinates of two points on the straight line; Finally, the detected planes and the added virtual planes are sorted according to the x-coordinate. For two adjacent walls, the optimized plane parameters are used to calculate the intersection points with the ceiling and the ground. If the ceiling and the ground do not exist, the upper and lower boundaries of the image are regarded as the ceiling and the ground. Then the 3D intersection points are projected back to the 2D image plane to form the room layout segmentation. The calculation formula is as follows: N c P=D; p2~KP; Where N c is the coefficient matrix, D is the bias, P is the 3D intersection coordinate, and p2 is the projected 2D image coordinate.
2. The 3D room layout reconstruction system based on RGB images according to claim 1, characterized in that: The detection network structure used in the geometric element detection module inputs an RGB image I∈R H×W×3 , and also uses the backbone network HRNet-W32 to extract visual features F, where 3. The 3D room layout reconstruction system based on RGB images according to claim 2, characterized in that: The detection process in the plane detection module is as follows: a rectangular box is used to represent the plane, the center of the rectangular box is c, and the width and height are s = (w, h); three independent two-layer convolutional neural networks are used to predict the probability map of the center of the rectangular box respectively Center offset diagram and rectangular frame size chart During the training process, the corresponding true value is: Where p is the pixel coordinate of the output image, the different channels of C represent the ceiling, the ground, and the wall respectively, δ is the variance of the Gaussian function, c is the center coordinate of the rectangular box, and s is the size of the rectangular box.
4. The 3D room layout reconstruction system based on RGB images according to claim 3, characterized in that:The detection process in the line segment detection module is as follows: using the line angle θ and the point set T located on the line to represent, where T = {t i =(t i,x ,t i,y )|t i,y ∈[y min ,y max ],t i,y ∈N},y min ,y max Represents the minimum and maximum y coordinates of the points on the line segment on the output feature map, t i represents a point on the line, t i,x t i The x-coordinate of i,y Indicates t i The y coordinate of the line segment is y, N is an integer set; three other independent two-layer convolutional neural networks are used to predict the probability map of the line segment area respectively. Offset plot of points on a line segment Angle diagram of the line segment During the training process, the corresponding true value is: p is the pixel coordinate of the output image, p x 、p y ,t i,x ,t i,y Represents p and t respectively i The x and y coordinates of 5. The 3D room layout reconstruction system based on RGB images according to claim 4, characterized in that: The specific process of the inference module for plane detection is as follows: extract the response peak position from the predicted probability map C, assuming that (x c ,y c ) is the peak position, (ox, oy) is the bias prediction corresponding to the response peak position, (w, h) is the size prediction corresponding to the response peak position, and the final detected rectangular box is: (x c +ox,y c +oy, w, h); the de-duplication detection for the plane is completed using the non-maximum suppression algorithm based on the intersection-over-union ratio (IoU).
6. The RGB image-based 3D room layout reconstruction system according to claim 5, characterized in that: The specific process of the inference module for line segment detection is as follows: the equation of the line is set to x=my+b, and the peak response position is first extracted from each row in the predicted probability map L; let (x1, y1) be the peak position, ox be the bias prediction of the x-coordinate of the peak position, θ1 be the line angle prediction of the peak position, and the parameterized line is: m=1 / tanθ1; b=x1+ox-m*y1; The non-maximum suppression algorithm is used for de-duplication detection of line segments, and if two lines intersect in the image or the maximum distance of the x-coordinate of each line is less than the threshold, the low-confidence detection is discarded.
7. The 3D room layout reconstruction system based on RGB images according to claim 6, characterized in that: The parameter prediction process is as follows: use the normal n and the offset d to represent the 3D plane: nP+d=o, let v=[n, d], and use the following formula to predict the pixel-level plane parameter V pix and instance-level parameter V ins : Vpix(p2)=v; P is the 3D intersection coordinate, p2 is the projected 2D image coordinate, and c is the center coordinate of the rectangular frame.
Citation Information
Patent Citations
Interaction-based building point cloud model texture mapping method and device
CN104851127A
Method For Reconstructing 3D Scenes From 2D Images
US20140333615A1
