Method, device, equipment and medium for generating floor plan for terminal device

By using laser scanning and RGB cameras to obtain data on the terminal device, and performing coloring processing and marking of point cloud data, it solves the problems of long time, high cost and poor accuracy in building model of houses in the existing technology, and achieves efficient and accurate House plan generation.

CN115439576BActive Publication Date: 2024-09-10BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211000063.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2024-09-10
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

In the existing house model construction scheme, the terminal device collects image depth information and uploads it to the backend, where point splicing and three-dimensional modeling are manually performed. The process is time-consuming, costly and difficult to guarantee accuracy, and SLAM positioning information is easily lost.

Method used

Use laser scanning equipment and RGB cameras on the terminal device to obtain point cloud data and panoramic images, determine the panoramic pixel coordinates and RGB image information through calibration parameters, colorize the point cloud data, generate a point cloud plan and mark walls and doors. , form outline to realize the automatic generation of house plans.

Benefits of technology

It reduces labor costs, improves the accuracy and richness of floor plan generation, and ensures the integrity and accuracy of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115439576B
    Figure CN115439576B
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device, equipment and medium for generating a floor plan for a terminal device, which obtains the point cloud data and panoramic view of each spatial object in the target house, determines the RGB image information corresponding to the wall, door and / or window of each spatial object; performs coloring processing on the point cloud data according to the RGB image information and generates a point cloud plan corresponding to the target house, determines the target point cloud data corresponding to the door and / or window of each spatial object; and marks the door outline and window outline corresponding to the target point cloud data on the contour line of the corresponding wall in the point cloud plan according to the projection relationship between the point cloud data and the point cloud plan. In this way, a floor plan including wall outlines, door outlines and window outlines is obtained, with richer and more complete information, and the functions of shooting and floor plan generation are jointly completed on the mobile terminal, which helps to reduce labor costs and improve the accuracy of generating floor plans.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtual reality technology, and in particular to a method, device, equipment and medium for generating a floor plan for a terminal device. Background Art

[0002] In existing house model construction schemes, a terminal device usually uses Simultaneous Localization and Mapping (SLAM) technology to shoot a target house, obtain image depth information corresponding to the target house, and upload the obtained image depth information to a back-end device or server. The back-end production staff performs point stitching and three-dimensional modeling according to the image depth information to generate a panoramic view and / or floor plan corresponding to the target house.

[0003] However, from collecting image depth information at the front end to uploading it to the back end, and then having the back-end production staff perform point stitching and three-dimensional modeling based on the image depth information, the entire production cycle is relatively long and the labor production cost is high. In addition, SLAM positioning information is easily lost, and it is difficult for the back-end production staff to identify the integrity of the information, so the accuracy of point stitching and three-dimensional modeling is difficult to guarantee. Summary of the invention

[0004] Multiple aspects of the present application provide a floor plan generation method, apparatus, device and medium for a terminal device, which are used to jointly complete the capture of house information and the generation of floor plans on a mobile terminal. In the process of generating floor plans, the positions of walls, doors and windows in the house in the floor plan can be determined based on the result of coloring the point cloud data according to RGB information, so that the obtained floor plan information is richer and more complete.

[0005] The embodiment of the present application provides a method for generating a floor plan for a terminal device, comprising: obtaining point cloud data and a panoramic view corresponding to each spatial object in a target house, the point cloud data and the panoramic view are respectively obtained by a laser scanning device and an RGB camera that are communicatively connected to the terminal device, and the panoramic view includes walls, doors and / or windows of each spatial object; determining panoramic pixel coordinates corresponding to the point cloud data and RGB image information corresponding to the panoramic pixel coordinates in the panoramic view according to calibration parameters between the laser scanning device and the RGB camera; coloring the point cloud data according to the RGB image information; generating a point cloud plan corresponding to the target house based on the colored point cloud data, the point cloud plan including contour lines corresponding to the walls of each spatial object; and determining target point cloud data corresponding to the doors and / or windows of each spatial object; marking the door contour and / or window contour corresponding to the target point cloud data on the contour line of the point cloud plan according to the projection relationship between the point cloud data and the point cloud plan, and using the marked point cloud plan as the floor plan corresponding to the target house for display.

[0006] In an optional embodiment, the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic view are determined according to the calibration parameters between the laser scanning device and the RGB camera, including: converting each three-dimensional point cloud coordinate corresponding to the point cloud data into a corresponding camera coordinate in a camera coordinate system according to the calibration parameters between the laser scanning device and the RGB camera; and converting the camera coordinates into a corresponding spherical coordinate in a spherical coordinate system, and determining the corresponding panoramic pixel coordinates based on the correspondence between the spherical coordinates and the pixel coordinates; and determining the RGB image information corresponding to each panoramic pixel coordinate from the panoramic view.

[0007] In an optional embodiment, the method further includes: for any two points, performing point cloud registration according to the point cloud data respectively acquired at the two points and their corresponding RGB image information, so as to obtain a rotation and translation matrix between the two points.

[0008] In an optional embodiment, the point cloud plan view supports editing operations, and the method further includes: adjusting the shape of the target point cloud data in response to an adjustment operation performed on the target point cloud data on the point cloud plan view; and further performing point cloud registration based on the three-dimensional point cloud coordinates and their corresponding RGB image information corresponding to the target point cloud data before and after the adjustment of the shape, to obtain the corresponding rotation and translation matrices before and after the adjustment.

[0009] In an optional embodiment, the point cloud data is colorized according to the RGB image information, including: determining the point cloud range for each colorization process according to the display restriction conditions of the terminal device; acquiring target RGB image information corresponding to the point cloud range; and using a 3D rendering engine to draw texture information corresponding to the target RGB image information for the target point cloud data corresponding to the point cloud range, so as to color the target point cloud data.

[0010] In an optional embodiment, a point cloud plan view corresponding to the target house is generated based on the colored point cloud data, including: generating a three-dimensional point cloud model corresponding to the target house based on the colored point cloud data; and performing a planar projection on the three-dimensional point cloud model to obtain a point cloud plan view corresponding to the target house.

[0011] In an optional embodiment, the target point cloud data corresponding to the door body and / or window of each spatial object is determined, including: determining the three-dimensional point cloud coordinates corresponding to the target door body and / or target window of each spatial object according to the texture information corresponding to the three-dimensional point cloud model; and determining the target point cloud data corresponding to the target door body and / or target window of each spatial object according to the three-dimensional point cloud coordinates.

[0012] In an optional embodiment, based on the projection relationship from the point cloud data to the point cloud plan view, a door body contour and / or a window contour corresponding to the target point cloud data is marked on the contour line of the point cloud plan view, including: based on the projection relationship from the point cloud data to the point cloud plan view, determining a target position corresponding to the target point cloud data on the point cloud plan view, the target position being on the contour line of the point cloud plan view; performing a marking operation at a position corresponding to the target position on the point cloud plan view to mark the door body contour and / or window contour of each spatial object.

[0013] The embodiment of the present application also provides a floor plan generating device for a mobile terminal, comprising: an acquisition module, for acquiring point cloud data and a panoramic image corresponding to each spatial object in a target house, wherein the point cloud data and the panoramic image are respectively obtained by a laser scanning device and an RGB camera that are communicatively connected to the terminal device, and the panoramic image includes walls, doors and / or windows of each spatial object; a first determination module, for determining the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic image according to calibration parameters between the laser scanning device and the RGB camera; a processing module, for determining the panoramic pixel coordinates corresponding to the point cloud data according to the calibration parameters between the laser scanning device and the RGB camera; and a processing module for determining the panoramic pixel coordinates corresponding to the RGB image in the panoramic image according to the RGB image. GB image information is used to colorize the point cloud data; a generating module is used to generate a point cloud plan view corresponding to the target house based on the colored point cloud data, and the point cloud plan view includes contour lines corresponding to the walls of the various spatial objects; a second determining module is used to determine the number of target point clouds corresponding to the door bodies and / or windows of the various spatial objects; a marking module is used to mark the door body contours and / or window contours corresponding to the target point cloud data on the contour lines of the point cloud plan view according to the projection relationship from the point cloud data to the point cloud plan view, and use the marked point cloud plan view as the floor plan corresponding to the target house for display.

[0014] An embodiment of the present application also provides a terminal device, comprising: a processor and a memory, which is used to implement any step in the method when the processor executes the computer program.

[0015] An embodiment of the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor is caused to implement each step in the method.

[0016] In an embodiment of the present application, by acquiring the point cloud data and panoramic view of each spatial object in the target house, the RGB image information corresponding to the wall, door and / or window of each spatial object in the panoramic view can be determined; based on this, the point cloud data can be colored according to the RGB image information, and based on the colored point cloud data, the point cloud plan corresponding to the target house can be generated, and the target point cloud data corresponding to the door and / or window of each spatial object can be determined; further, according to the mapping relationship between the point cloud data and the point cloud plan, the door body outline and the window outline corresponding to the target point cloud data can be marked on the contour line of the corresponding wall in the point cloud plan. In this way, a floor plan including the wall outline, the door body outline and the window outline can be obtained, and the floor plan information is richer and more complete; and the method realizes the joint completion of the shooting and floor plan generation functions on the mobile terminal, which helps to reduce labor costs and improve the accuracy of generating floor plans. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 A flow chart of a method for generating a house floor plan provided in an embodiment of the present application;

[0019] Figure 2a A schematic diagram of a three-dimensional point cloud model corresponding to a target house provided in an embodiment of the present application;

[0020] Figure 2b A partial panoramic view supporting editing function provided in an embodiment of the present application;

[0021] Figure 2c A point cloud plan view lacking point cloud data provided in an embodiment of the present application;

[0022] Figure 2d A point cloud plan view after supplementing point cloud data provided in an embodiment of the present application;

[0023] Figure 2e A point cloud plane diagram with contour lines provided in an embodiment of the present application;

[0024] Figure 2f Another point cloud plane diagram with contour lines provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of the structure of a floor plan generating device provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0028] Since the existing floor plan generation scheme is that the front end is responsible for collecting house data, and the back end is responsible for point stitching and modeling, this process is not only time-consuming and labor-intensive, but also difficult to ensure accuracy. To this end, the embodiment of the present application provides a floor plan generation method for a mobile terminal, which can realize the functions of house information shooting and floor plan generation on the mobile terminal, which helps to reduce labor costs and improve the accuracy of floor plan generation; and in the process of generating floor plan, by collecting the panoramic view and point cloud data of the house, the point cloud data is colored according to the RGB information in the panoramic view, and the position of the wall, door, and window in the house can be determined; then, the colored point cloud data is used to generate the floor plan corresponding to the house, and the floor plan information is richer and more complete.

[0029] The following is a detailed description of the floor plan generation method provided in the embodiment of the present application in conjunction with the accompanying drawings.

[0030] Figure 1 A flow chart of a floor plan generation method provided in an embodiment of the present application, the method is applied to a mobile device, such as Figure 1 As shown, the method includes:

[0031] S1. Obtaining point cloud data and a panoramic image corresponding to each spatial object in the target house, the point cloud data and the panoramic image are respectively obtained by a laser scanning device and an RGB camera connected to the terminal device for communication, and the panoramic image includes walls, doors and / or windows of each spatial object;

[0032] S2. Determine the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic image according to the calibration parameters between the laser scanning device and the RGB camera;

[0033] S3, coloring the point cloud data according to the RGB image information;

[0034] S4. Based on the colored point cloud data, determine the target point cloud data corresponding to the door body and / or window of each spatial object;

[0035] S5. Generate a point cloud plan corresponding to the target house based on the colored point cloud data, wherein the point cloud plan includes contour lines corresponding to the walls of each spatial object;

[0036] S6. According to the projection relationship from the point cloud data to the point cloud plan, mark the door body outline and / or window outline corresponding to the target point cloud data on the contour line of the point cloud plan, and use the marked point cloud plan as the floor plan corresponding to the target house for display.

[0037] In the embodiment of the present application, by using a laser scanning device and an RGB camera that are connected to the terminal device for communication, the point cloud data and the panoramic view corresponding to each spatial object in the target house can be obtained respectively, and then the position information of the wall, door and / or window of each spatial object can be determined from the panoramic view. In the embodiment of the present application, the specific method of obtaining the point cloud data and the panoramic view corresponding to each spatial object is not limited. In an optional example, the laser scanning device can be used to laser scan each spatial object in turn to obtain the point cloud data corresponding to each spatial object, and the RGB camera can be used to shoot each spatial object to obtain the panoramic view corresponding to each spatial object; in another optional embodiment, the laser scanning device and the RGB camera can also be used to laser scan and panoramically shoot each spatial object at the same time to obtain the point cloud data and the panoramic view corresponding to the target house. Further optionally, when the laser scanning device and the RGB camera are used to laser scan and panoramically shoot each spatial object at the same time, the laser scanning device and the RGB camera shoot according to the set calibration parameters, and the calibration parameters reflect the relative posture relationship between the laser scanning device and the RGB camera. In the embodiments of the present application, the specific method for obtaining the calibration parameters is not limited. Optionally, the calibration parameters may be default calibration parameters, or calibration parameters set by the photographer according to the on-site environment of the target house, or calibration parameters generated in real time by a specific algorithm. The specific method may be determined according to actual needs.

[0038] Based on this, when the point cloud data and panoramic image corresponding to each spatial object are obtained, the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic image can be determined according to the calibration parameters between the laser scanning device and the RGB camera, so as to color the point cloud data according to the RGB image information. In this way, the colored point cloud data can be used to reflect the environmental information in each spatial object, wherein the environmental information includes but is not limited to the position information corresponding to the objects such as the wall, door, window, bed, table, chair, sofa, etc. in each spatial object. Further, based on the colored point cloud data, a point cloud plan corresponding to the target house can be generated, and the point cloud plan includes the contour lines corresponding to the walls of each spatial object, and the target point cloud data corresponding to the door and / or window of each spatial object are determined; further, according to the projection relationship between the point cloud data and the point cloud plan, the door outline and / or window outline corresponding to the target point cloud data can be marked on the contour line of the point cloud plan, and the marked point cloud plan is used as the floor plan corresponding to the target house, and the floor plan information corresponding to the target house can be clearly known from the floor plan.

[0039] In the embodiment of the present application, the specific method of determining the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic image is not limited. Optionally, each three-dimensional point cloud coordinate corresponding to the point cloud data can be converted into a corresponding camera coordinate in the camera coordinate system according to the calibration parameters between the laser scanning device and the RGB camera; optionally, the formula point2 = [RT] * point1 can be used to convert each three-dimensional point cloud coordinate point1 (x, y, z, l) corresponding to the point cloud data into a corresponding camera coordinate point2 in the camera coordinate system; wherein [RT] is the rotation and translation matrix corresponding to the position of the laser scanning device and the RGB camera, and the rotation and translation matrix can be determined by the calibration parameters between the laser scanning device and the RGB camera, and the specific determination method corresponds to the method of obtaining the calibration parameters, which is not limited here.

[0040] Furthermore, when the camera coordinates are obtained, the camera coordinates can be converted to the corresponding spherical coordinates in the spherical coordinate system to determine the corresponding panoramic pixel coordinates based on the corresponding relationship between the spherical coordinates and the pixel coordinates. Optionally, the camera coordinate point2 can be converted to the corresponding spherical coordinates in the spherical coordinate system by the formula lon=atan(x,z), lat=asin(y / point2.norm), and the panoramic pixel coordinates (u, v) corresponding to the spherical coordinates can be determined by the formula u=(0.5-lon / (2*π)), v=(0.5–lat / π); wherein, lon is the longitude of the spherical coordinates, and lat is the latitude of the spherical coordinates. Based on this, when the panoramic pixel coordinates corresponding to each point cloud data are obtained, the RGB image information (r, g, b) corresponding to each panoramic pixel coordinate can be determined from the panoramic image.

[0041] When laser scanning equipment and RGB cameras are used to scan and take panoramic photos of various spatial objects, multiple scans and photos will be taken in different spatial objects, or the same spatial position will be scanned and photographed at different points. Therefore, the accuracy of the acquired point cloud data and panoramic images can be corrected by the point cloud data and panoramic images acquired at different points. Taking the correction of point cloud data and panoramic images corresponding to different points at the same spatial position as an example, the embodiment of the present application does not limit the specific correction method. In an optional embodiment, the point cloud data and panoramic images corresponding to the same spatial position can be mapped to each other, that is, the three-dimensional point cloud coordinates corresponding to the point cloud data are mapped to panoramic pixel coordinates, and the panoramic pixel coordinates in the panoramic image are mapped to three-dimensional point cloud coordinates, so as to correct the three-dimensional point cloud coordinates and panoramic pixel coordinates before mapping according to the mapped three-dimensional point cloud coordinates and panoramic pixel coordinates.

[0042] In another optional embodiment, for the same spatial position, for the point cloud data and the panoramic image obtained at any two points, point cloud registration can be performed based on the point cloud data corresponding to the two points and their corresponding RGB image information to obtain the rotation and translation matrix between the two points, and then the panoramic image of the point cloud data set corresponding to the spatial position is corrected according to the obtained rotation and translation matrix. In this embodiment, the specific method of point cloud registration is not limited. Optionally, the nearest iteration algorithm (ICP, Iterative Closest Point) can be used for point cloud registration, and the normal distribution point cloud algorithm (Normal Distribution Transform, NDT) can also be used for point cloud registration. Of course, it is not limited to this and can be determined according to actual needs.

[0043] Further optionally, in order to obtain more accurate floor plan information, the point cloud plan in the embodiment of the present application supports an editing function, so that when the above-mentioned automatic correction effect is not ideal, the point cloud data can be further corrected by manually editing the point cloud plan. Optionally, the staff can perform adjustment operations on the target point cloud data in the point cloud plan that does not match the actual environmental information in each spatial object to correct the target point cloud data that does not meet the requirements. Based on this, in response to the adjustment operation performed on the target point cloud data on the point cloud plan, the shape of the target point cloud data can be adjusted. Based on this, the three-dimensional point cloud coordinates and their corresponding RGB image information corresponding to the target point cloud data before and after the shape adjustment can be further aligned to obtain the rotation and translation matrices corresponding to the adjustment before and after, and then the point cloud data corresponding to the adjustment position can be corrected according to the rotation and translation matrices corresponding to the adjustment before and after. The specific method for adjusting the point cloud data in the point cloud plan can be referred to the subsequent embodiments, which will not be described in detail here.

[0044] Based on the above, when the terminal device obtains accurate point cloud data and its corresponding GRB image information, it can colorize the point cloud data according to the RGB image information. In the embodiment of the present application, due to the limited display screen of the terminal device and the huge amount of point cloud data scanned for each spatial object, the display screen of the terminal device cannot display all the point cloud data at one time. Therefore, when coloring the point cloud data, the point cloud range for each coloring process can be determined according to the display restriction conditions of the terminal device, and the target RGB image information corresponding to the point cloud range can be obtained. Furthermore, a 3D rendering engine is used to draw texture information corresponding to the target RGB image information on the target point cloud data corresponding to the point cloud range, so as to color the target point cloud data. In the embodiment of the present application, the specific data corresponding to the display restriction conditions of the terminal device is not limited, and the display restriction conditions will be different depending on the size and resolution of the display screen. Accordingly, when the point cloud data is shaded, the type of 3D rendering engine used is not limited. Depending on the type of terminal device system, the 3D rendering engine used will also be different. If the terminal device is an Internet operating system (IOS), the SceneKit rendering engine can be used for shading; if the terminal device is an Android system (Android), the OpenGL ES (OpenGL for Embedded Systems) rendering engine can be used for shading. Of course, it is not limited to this.

[0045] In the embodiments of the present application, the point cloud range of each coloring process is not limited. For example, for the point cloud data corresponding to a spatial object, the point cloud data corresponding to the ceiling, the ground, and the surrounding walls can be determined therefrom, and the point cloud data corresponding to the ceiling, the ground, and the surrounding walls can be used as the point cloud range for each coloring process in turn, so that the point cloud data corresponding to the ceiling, the ground, and the surrounding walls can be colored in turn; for another example, for the point cloud data corresponding to each spatial object, the point cloud data corresponding to the ceiling and / or the ground can be determined therefrom, and the point cloud data corresponding to the ceiling and / or the ground can be used as the point cloud range for each coloring process, and only the point cloud data corresponding to the ceiling and / or the ground can be colored; for the surrounding walls, they can be determined based on the shape and height information corresponding to the colored ceiling and / or the ground, and then the surrounding walls can be colored uniformly without determining the point cloud data corresponding to the walls one by one, which helps to speed up the coloring efficiency.

[0046] Further, after the point cloud data is colored, a point cloud plan view corresponding to the target house can be generated based on the colored point cloud data. In the embodiment of the present application, the specific method of generating the point cloud plan view is not limited. Optionally, a three-dimensional point cloud model corresponding to the target house can be generated based on the colored point cloud data, and then a plane projection of the three-dimensional point cloud model can be performed to obtain a point cloud plan view corresponding to the target house. It should be noted that the embodiment of the present application does not limit the order of coloring the point cloud data and generating a three-dimensional point cloud model based on the point cloud data. As described in the above embodiment, the point cloud data can be colored first, and then the three-dimensional point cloud model corresponding to the target house can be generated based on the colored point cloud data; or the three-dimensional point cloud model corresponding to the target house can be generated based on the point cloud data first, and then the three-dimensional point cloud model can be colored.

[0047] Figure 2a It is a 3D point cloud model generated based on the point cloud data of each spatial object in the target house space, such as Figure 2a As shown, the corresponding positions of the ceiling, ground, and surrounding walls of each spatial object can be determined from the three-dimensional point cloud model. Based on this, if a three-dimensional point cloud model is generated first and then the three-dimensional point cloud model is colored, when the three-dimensional point cloud model is colored, the ceiling, ground, and surrounding walls of each spatial object in the three-dimensional point cloud model can be displayed in sequence on the display screen of the terminal device as the point cloud range for each coloring process, so that the ceiling, ground, and surrounding walls of each spatial object in the three-dimensional point cloud model can be colored in sequence; or, the ceiling and / or ground of each spatial object in the three-dimensional point cloud model can be displayed as the point cloud range for each coloring process, and the ceiling and / or ground of each spatial object can be colored, and the surrounding walls of each spatial object can be colored uniformly.

[0048] After the coloring process is performed, each spatial object in the three-dimensional point cloud model contains texture information corresponding to each spatial object in the panoramic view. Based on this, the three-dimensional point cloud coordinates corresponding to the target door body and / or target window of each spatial object can be determined according to the texture information corresponding to the three-dimensional point cloud model, so as to determine the target point cloud data corresponding to the target door body and / or target window of each spatial object according to the three-dimensional point cloud coordinates corresponding to the target door body and / or target window of each spatial object. Further, according to the projection relationship of the point cloud data to the point cloud plane, the target position corresponding to the target point cloud data can be determined on the point cloud plane, so as to perform a marking operation at the corresponding target position on the point cloud plane, marking the door body contour and / or window contour of each spatial object. Since the door body and / or window in each spatial object are installed in the wall, the target position of the target point cloud data projected on the point cloud plane is on the contour line corresponding to the wall. By performing the marking operation, the door body position and the window position can be distinguished on the contour line corresponding to the wall, so that the information of the floor plan is more complete and rich.

[0049] In the embodiment of the present application, since the target house may include objects such as furniture, when the laser scanning device performs laser scanning on the target house, there may be a point cloud data blind spot where the wall cannot be scanned, or the scanned objects such as furniture may be identified as walls. In this case, the point cloud data obtained by the laser scanning device may be missing, redundant, erroneous, and other problems. In addition, the panoramic image obtained by the RGB camera may also have errors. For example, the wall lines, door frames, window frames, etc. of the spatial objects are all straight lines, but they are rendered as curves in the panoramic image. In order to obtain accurate floor plan information before generating the floor plan, in the embodiment of the present application, in addition to correcting the point cloud data and the panoramic image by mapping the panoramic pixel coordinates to the three-dimensional point cloud coordinates and the point cloud registration in the above-mentioned embodiment, the embodiment of the present application can also correct the accuracy of the point cloud data and the panoramic image in the following manner, so as to obtain a floor plan that matches the actual information of the target house based on the post-corrected point cloud data and the panoramic image.

[0050] In the embodiment of the present application, in order to correct the panorama, the panorama provided by the embodiment of the present application supports the editing function, and the staff can select the wall lines, door frames, and window frames that do not meet the requirements in the panorama and adjust them to obtain a panorama that meets the requirements. Based on this, if there is a target door body and / or target window in the panorama whose horizontal width does not meet the requirements, the staff can select the target door body and / or target window in the panorama and perform a horizontal width adjustment operation on the target door body and / or target window. Figure 2b As shown in the figure, the staff can also manually adjust the door body outline and window body outline; since the door body outline and window body outline corresponding to the door body outline and window body outline on the point cloud plane after projection are a line segment, the line segment corresponding to the door body outline should correspond to the horizontal width of the door body, and the line segment corresponding to the window outline should correspond to the horizontal width of the window. Therefore, the door body outline and window body outline can be adjusted by adjusting the horizontal width of the door body and window in the panoramic view.

[0051] Furthermore, in response to an adjustment operation on the horizontal width of a target door body and / or a target window in the panoramic view, the corresponding three-dimensional point cloud coordinates in the three-dimensional point cloud model can be synchronously updated according to the panoramic pixel coordinates corresponding to the adjusted target door body and / or target window, so that after a planar projection of the three-dimensional point cloud model, the contour line of the corresponding target door body in the point cloud plane view corresponds to the horizontal width of the target door body in the panoramic view, and / or the contour line of the corresponding target window corresponds to the horizontal width of the target window in the panoramic view.

[0052] Since the laser scanning equipment may not be able to scan the part of the wall that is blocked by furniture such as tables, chairs, wardrobes, and beds when scanning various spatial objects, when generating a 3D point cloud model based on the point cloud data, there may be no corresponding point cloud data at the spatial position corresponding to this part of the wall, or the point cloud data corresponding to the scanned furniture such as tables, chairs, wardrobes, and beds may be determined as the point cloud data corresponding to this part of the wall, which leads to errors in the point cloud data and the generated 3D point cloud model is inaccurate. The generated 3D point cloud model and the projected point cloud plan are also inaccurate. Figure 2a It can be seen from the three-dimensional point cloud model shown that the overall contours corresponding to the walls of each spatial object can be identified through the three-dimensional point cloud model, but the real information of each spatial object may not be fully reflected in the three-dimensional point cloud model. Therefore, the point cloud plan obtained based on the projection of the three-dimensional point cloud model may also not match the real apartment structure corresponding to each spatial object. For example, the point cloud data that should be projected onto the point cloud plan in the three-dimensional point cloud model is not projected onto the point cloud plan; for another example, the spatial position without point cloud data in the three-dimensional point cloud model has a corresponding projection area on the point cloud plan; for another example, although the point cloud data corresponding to the wall in the three-dimensional point cloud model is projected onto the point cloud plan, its corresponding contour line does not correspond to the actual position of the wall, and so on.

[0053] In view of possible error situations, in the following embodiments, correction methods of erroneous point clouds in different situations will be described in conjunction with the accompanying drawings.

[0054] Case 1: Projection information of point cloud data is "missing" on the point cloud plane .

[0055] Figure 2c The point cloud plane image is obtained by plane projection of the three-dimensional point cloud model, such as Figure 2c As shown in the figure, there is at least one missing part in the point cloud plan, which does not meet the requirements of the house type and layout. Figure 2cFor example, the missing part in the image may be caused by the wall blocked by other objects not being scanned by the laser scanning device. Therefore, when generating a three-dimensional point cloud model based on the point cloud data obtained by scanning, a "missing" phenomenon will occur, and then the point cloud plane map obtained by projecting the three-dimensional point cloud model will also have "missing" parts. In view of this situation, the embodiment of the present application can also determine the panoramic pixel coordinates corresponding to the wall of each spatial object based on the panoramic map, and determine the corresponding three-dimensional point cloud coordinates in the three-dimensional point cloud model based on the mapping relationship between the panoramic pixel coordinates and the three-dimensional point cloud coordinates, and then determine whether the spatial position corresponding to the three-dimensional point cloud coordinates has corresponding point cloud data. If there is a first spatial position without point cloud data in the spatial position corresponding to the three-dimensional point cloud coordinates in the three-dimensional point cloud model, the point cloud data is supplemented at the corresponding first spatial position in the three-dimensional point cloud model, and the supplemented point cloud data is projected onto the point cloud plane map to correct the wall contour in the point cloud plane map. Figure 2d is the point cloud plane image obtained by projecting the 3D point cloud model after supplementing the point cloud data, such as Figure 2d As shown, after the point cloud data is supplemented in the 3D point cloud model, the point cloud plan obtained by projecting the 3D point cloud model meets the actual apartment requirements and can more realistically reflect the apartment effect of the target house.

[0056] In an embodiment of the present application, the point cloud plan supports an editing function. If there is a "missing" in the contour line of the corresponding wall in the point cloud plan, the staff can also perform a contour line adding operation on the point cloud plan for the position of the missing contour line. Optionally, the staff can determine the target position of the actual contour line in the point cloud plan based on the panoramic view, select the target position in the point cloud plan, and perform a contour line adding operation on the target position; further, in response to the contour line adding operation performed on the target position, a contour line can be added at the corresponding target position on the point cloud plan. In an embodiment of the present application, the specific method of adding contour lines at the target position is not limited. Optionally, when the target position selected by the staff is obtained and the contour line adding operation is performed on the target position, the contour line can be directly displayed on the point cloud plan to supplement the missing contour line; alternatively, the staff can also select a contour line component from the toolbar used to edit the point cloud plan, and drag the contour line component to the target position on the point cloud plan to supplement the missing contour line.

[0057] In the embodiment of the present application, the method of automatically adding a new contour line is not limited to the initial position of the new contour line on the point cloud plane. The initial position can be any position within the preset range of the target position, or it can be directly displayed at the target position; if the initial position is not at the target position, the staff can further perform movement and shape adjustment operations on the new contour line to move the new contour line to the target position to connect with the existing contour line end. Further, in the case where the staff selects a contour line component to add a contour line, the method of adding the contour line component is not limited. Optionally, the staff can first drag the selected contour line component to any position on the point cloud plane, and then move and shape adjust the contour line component dragged to the point cloud plane to add it to the target position and connect it with the existing contour line end. Further optionally, in order to quickly supplement the missing contour line, the embodiment of the present application provides a contour line endpoint adsorption function, that is, when the staff moves the contour line to the preset range at the point target position, the two ends of the new contour line can be automatically connected to the ends of the existing contour line, which helps to improve the speed and accuracy of contour line addition. The specific method of performing the moving operation-level morphological adjustment on the contour line can be found in the following embodiments, which will not be described in detail here.

[0058] Case 2: There is "extra" projection information on the point cloud plane .

[0059] Figure 2e It is a point cloud plane map obtained based on the point cloud data of each spatial object. Figure 2e It can be seen that the target house includes three spatial objects, namely Figure 2e The rectangle in the upper middle part corresponds to the spatial object, and the rectangles on the left and right sides of the lower part correspond to the spatial objects. When performing laser scanning, the laser scanning device will perform laser scanning on different spatial objects, or perform laser scanning on the same spatial position at different points; and the point cloud data obtained by the laser scanning device at different points for the same spatial position may also have slight errors, which may cause the point cloud data corresponding to the wall between adjacent spatial objects to be projected on the point cloud plane. The contour line is inaccurate. For example, Figure 2e As shown, the upper rectangular space object and the two lower rectangular space objects are adjacent space objects, and there should be only one wall separating them.

[0060] However, in Figure 2eIt can be seen from the point cloud plane image shown that there are two contour lines used to separate the upper rectangular space object from the two lower rectangular space objects. The upper rectangular space object is separated from the two lower rectangular space objects, which does not meet the actual requirements. Therefore, after the three-dimensional point cloud model is plane-projected, the target projection contours corresponding to each space object on the point cloud plane can be determined first, and the relative position relationship between each space object can be determined based on the panoramic view. Based on the relative position relationship, it is determined whether the target projection contours corresponding to each space object on the point cloud plane are consistent with the actual apartment type requirements of the target house; if it is determined that they are inconsistent, the position of the target projection contours corresponding to each space object on the point cloud plane is adjusted according to the relative position relationship between each space object, so that the edges of the target projection contours of each space object are aligned to obtain the contour line corresponding to the actual wall position.

[0061] In the embodiment of the present application, the specific method of adjusting the position of the target projection contour on the point cloud plane according to the relative position relationship of each spatial object is not limited. Optionally, the position of each target projection contour on the point cloud plane can be automatically adjusted according to the relative position relationship of each spatial object when projecting the three-dimensional point cloud model; in another optional embodiment, no adjustment is made when projecting the three-dimensional point cloud model, and the staff can manually adjust the contour lines that do not correspond to the wall positions on the point cloud plane to obtain contour lines corresponding to the wall positions of each spatial object. Figure 2f This is the point cloud plane after adjusting the contour line position, such as Figure 2f As shown, after the adjustment, the wall used to separate the upper rectangular space object and the two lower rectangular space objects only corresponds to one or two contour lines, which meets the actual requirements.

[0062] Since the laser scanning device may have errors when performing laser scanning on each spatial object, in the three-dimensional point cloud model generated according to the acquired point cloud data, there may be a situation where the spatial position in the spatial object that is not a wall is identified as a wall, that is, there may be "redundant" contour lines in the point cloud plane map obtained based on the projection of the three-dimensional point cloud model. Therefore, when correcting the point cloud data, in addition to the method of supplementing the point cloud data, the embodiment of the present application also provides a situation where the spatial position in each spatial object that is not a wall is identified as a wall, and the corresponding point cloud data is deleted in the three-dimensional point cloud model to correct the point cloud data. Optionally, the panoramic pixel coordinates corresponding to the spatial position that is not a wall in each spatial object can be determined according to the panoramic map, and the corresponding three-dimensional point cloud coordinates in the three-dimensional point cloud model can be determined according to the mapping relationship between the panoramic pixel coordinates and the three-dimensional point cloud coordinates, so as to determine whether there is point cloud data corresponding to the wall form at the second spatial position corresponding to the three-dimensional point cloud coordinates in the three-dimensional point cloud model; if so, the corresponding point cloud data is deleted to obtain point cloud data consistent with the actual apartment information. In the embodiment of the present application, the specific method of deleting the point cloud form at the second spatial position is not limited. Optionally, the three-dimensional point cloud coordinates corresponding to the second spatial position can be directly deleted, or the three-dimensional point cloud coordinates originally corresponding to the wall form at the second spatial position can be adjusted to three-dimensional point cloud coordinates corresponding to the ground form to correct the point cloud data.

[0063] In an embodiment of the present application, the timing of deleting the point cloud data at the second spatial position is not limited. Optionally, the deletion action can be performed before or during the planar projection of the three-dimensional point cloud model. In this way, the contour line obtained on the projected point cloud plane is the corrected contour line. In another optional embodiment, the point cloud data corresponding to the second spatial position can also be deleted after the three-dimensional point cloud model is planar projected, and when the second spatial position is determined, the point cloud data at the second spatial position and the corresponding contour line on the point cloud plane are deleted. Regarding the situation where point cloud data is deleted after a planar projection is performed on the three-dimensional point cloud model, the embodiments of the present application do not limit the specific method of performing the deletion action. Optionally, when the second spatial position is determined by the above method, the point cloud data at the second spatial position in the three-dimensional point cloud model can be automatically deleted, and the corresponding contour line can be deleted on the point cloud plane based on the projection relationship of the three-dimensional point cloud coordinates; in another optional embodiment, the staff can also determine the target position on the point cloud plane where no contour line should exist based on the panoramic view, and delete the contour line corresponding to the target position on the point cloud plane by manual deletion; based on this, in response to the deletion of the wheel library line corresponding to the target position on the point cloud plane, the point cloud data at the corresponding spatial position in the three-dimensional point cloud model is automatically deleted based on the projection relationship of the three-dimensional point cloud coordinates.

[0064] Case 3: There is "wrong" projection information on the point cloud plan .

[0065] In the embodiments of the present application, "wrong" projection information refers to point cloud data corresponding to walls, doors, windows and other objects in each spatial object that have been scanned, but point cloud data that is inconsistent with the actual form of the walls, doors, windows and other objects in each spatial object exists in the three-dimensional point cloud model, and / or, in the point cloud plan view obtained after plane projection of the three-dimensional point cloud model, there is projection information that is inconsistent with the projection form of the walls, doors, windows and other objects in each spatial object. For example, the wall in the spatial object is straight, but the point cloud form of the corresponding wall in the three-dimensional point cloud model is curved. In this case, it is necessary to adjust the contour lines that do not correspond to the wall position.

[0066] In an optional embodiment, a staff member may select a target contour line that does not correspond to the wall position from the point cloud plan and move it. Then, in response to the target contour line on the point cloud plan being selected, the initial position corresponding to the selected target contour line on the point cloud plan can be determined; further, in response to the move operation performed on the selected target contour line, the target position corresponding to when the move operation terminates can be obtained, and the selected target contour line can be moved from the initial position to the target position to adjust the position of the target contour line; wherein the move operation refers to the point cloud data corresponding to at least one end of the contour line and the point cloud data between the two ends being moved from the initial position to the target position.

[0067] In another optional embodiment, the staff can also adjust the morphology of the target contour line whose point cloud morphology does not meet the requirements. In response to performing a morphology adjustment operation on any part of the selected target contour line, the initial morphology corresponding to the target contour line of the adjusted part and the target morphology corresponding to the target contour line of the adjusted part at the end of the adjustment operation can be obtained, and the target contour line of the adjusted part can be adjusted from the initial morphology to the target morphology, and the overall morphology of the selected target contour line after adjustment is used as the morphology corresponding to the selected target contour line; wherein the morphology adjustment operation means that the point cloud data corresponding to the two ends of the contour line do not move, but the point cloud data between the two ends of the contour line are moved, for example, the originally curved contour line is adjusted to a straight contour line, but of course it is not limited to this.

[0068] Through the above-mentioned method, the erroneous point cloud data and the erroneous contour lines on the point cloud plan can be corrected before obtaining the point cloud plan, during the process of obtaining the point cloud plan, or after obtaining the point cloud plan, so that the floor plan information obtained based on this is more accurate. Of course, in order to more clearly and intuitively understand the layout of the target house and the function of each spatial object from the floor plan, the embodiment of the present application also supports marking the type of each spatial object in the target house on the point cloud plan to obtain a floor plan with more complete and rich information. Optionally, in the case of obtaining a point cloud plan, the type of each spatial object in the target house can be determined based on the panoramic view or the colored three-dimensional point cloud model, so as to mark the type of the projection area corresponding to each spatial object in the point cloud plan.

[0069] Based on the above, when accurate point cloud data is obtained, the updated point cloud data can also be input into the model making terminal, so that the model making terminal can make a three-dimensional model and floor plan model corresponding to the target house according to the updated point cloud data, so as to be applied to online house rental, sale, home improvement and other scenarios.

[0070] In an embodiment of the present application, by acquiring the point cloud data and panoramic view of each spatial object in the target house, the RGB image information corresponding to the wall, door and / or window of each spatial object in the panoramic view can be determined; based on this, the point cloud data can be colored according to the RGB image information, and based on the colored point cloud data, the point cloud plan corresponding to the target house can be generated, and the target point cloud data corresponding to the door and / or window of each spatial object can be determined; further, according to the mapping relationship between the point cloud data and the point cloud plan, the door body outline and the window outline corresponding to the target point cloud data can be marked on the contour line of the corresponding wall in the point cloud plan. In this way, a floor plan including the wall outline, the door body outline and the window outline can be obtained, and the floor plan information is richer and more complete; and the method realizes the joint completion of the shooting and floor plan generation functions on the mobile terminal, which helps to reduce labor costs and improve the accuracy of generating floor plans.

[0071] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps S1 to S6 can be device A; for another example, the execution subject of step S1 can be device A, and the execution subject of steps S2 to S6 can be device B; and so on.

[0072] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel, and the sequence numbers of the operations, such as S1, S2, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0073] Based on the above, the embodiment of the present application further provides a device for generating a house floor plan. For example, the device for generating a house floor plan can be implemented as a virtual device in a communication controller (Communication Control Unit, CCU), such as an application. Figure 3 As shown, the house floor plan generating device includes: an acquisition module 301, a first determination module 302, a processing module 303, a generation module 304, a second determination module 305 and a marking module 306; wherein the acquisition module 301 is used to obtain point cloud data and a panoramic image corresponding to each spatial object in the target house, the point cloud data and the panoramic image are respectively obtained by a laser scanning device and an RGB camera connected to the terminal device for communication, and the panoramic image includes walls, doors and / or windows of each spatial object; the first determination module 302 is used to determine the panoramic pixel coordinates corresponding to the point cloud data and the corresponding panoramic pixel coordinates in the panoramic image according to the calibration parameters between the laser scanning device and the RGB camera. RGB image information; the processing module 303 is used to colorize the point cloud data according to the RGB image information; the second determination module 304 is used to determine the target point cloud data corresponding to the door body and / or window body of each spatial object based on the colored point cloud data; the generation module 305 is used to generate a point cloud plan corresponding to the target house, and the point cloud plan includes the contour lines corresponding to the walls of each spatial object; the marking module 306 is used to mark the door body contour and / or window contour corresponding to the target point cloud data on the contour line of the point cloud plan according to the projection relationship from the point cloud data to the point cloud plan, and use the marked point cloud plan as the floor plan corresponding to the target house for display.

[0074] In an optional embodiment, when determining the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic view according to the calibration parameters between the laser scanning device and the RGB camera, the first determination module 302 is used to: convert each three-dimensional point cloud coordinate corresponding to the point cloud data into the corresponding camera coordinates in the camera coordinate system according to the calibration parameters between the laser scanning device and the RGB camera; and convert the camera coordinates into the corresponding spherical coordinates in the spherical coordinate system, and determine the corresponding panoramic pixel coordinates based on the correspondence between the spherical coordinates and the pixel coordinates; and determine the RGB image information corresponding to each panoramic pixel coordinate from the panoramic view.

[0075] In an optional embodiment, the first determination module 302 is further used to: for any two points, perform point cloud registration according to the point cloud data respectively acquired at the two points and their corresponding RGB image information to obtain a rotation and translation matrix between the two points.

[0076] In an optional embodiment, the point cloud plan supports editing operations, and the first determination module 302 is further used to: respond to adjustment operations performed on the target point cloud data on the point cloud plan, adjust the shape of the target point cloud data; and further perform point cloud registration based on the three-dimensional point cloud coordinates and their corresponding RGB image information corresponding to the target point cloud data before and after the shape adjustment, to obtain the corresponding rotation and translation matrices before and after the adjustment.

[0077] In an optional embodiment, when the processing module 303 performs coloring processing on the point cloud data according to the RGB image information, it is used to: determine the point cloud range for each coloring processing according to the display limitation conditions of the terminal device; obtain the target RGB image information corresponding to the point cloud range; and use a 3D rendering engine to draw texture information corresponding to the target RGB image information for the target point cloud data corresponding to the point cloud range, so as to perform coloring processing on the target point cloud data.

[0078] In an optional embodiment, when generating a point cloud plan view corresponding to a target house based on the colored point cloud data, the generation module 305 is used to: generate a three-dimensional point cloud model corresponding to the target house based on the colored point cloud data; and perform a planar projection on the three-dimensional point cloud model to obtain a point cloud plan view corresponding to the target house.

[0079] In an optional embodiment, when determining the target point cloud data corresponding to the door body and / or window of each spatial object, the second determination module 304 is used to: determine the three-dimensional point cloud coordinates corresponding to the target door body and / or target window of each spatial object according to the texture information corresponding to the three-dimensional point cloud model; and determine the target point cloud data corresponding to the target door body and / or target window of each spatial object according to the three-dimensional point cloud coordinates.

[0080] In an optional embodiment, when marking the door body contour and / or window contour corresponding to the target point cloud data on the contour line of the point cloud plan according to the projection relationship of the point cloud data to the point cloud plan, the marking module 306 is used to: determine the target position corresponding to the target point cloud data on the point cloud plan according to the projection relationship of the point cloud data to the point cloud plan, the target position being on the contour line of the point cloud plan; perform a marking operation at the corresponding target position on the point cloud plan to mark the door body contour and / or window contour of each spatial object.

[0081] It should be noted that, regarding the specific functions and implementation processes of each module in the above-mentioned device, reference can be made to the above-mentioned method embodiment, which will not be repeated here.

[0082] The present application also provides a terminal device, Figure 4 It is a schematic diagram of the structure of the terminal equipment, such as Figure 4 As shown, the terminal device includes: a processor 41 and a memory 42 storing a computer program; wherein the processor 41 and the memory 42 can be one or more.

[0083] The memory 42 is mainly used to store computer programs, which can be executed by the processor 41, so that the processor 41 controls the terminal device to realize corresponding functions, complete corresponding actions or tasks. In addition to storing computer programs, the memory 42 can also be configured to store various other data to support operations on the terminal device. Examples of such data include instructions for any application or method used to operate on the terminal device.

[0084] The memory 42 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0085] In the embodiment of the present application, the implementation form of the processor 41 is not limited, for example, it can be but not limited to a CPU, a GPU or an MCU. The processor 41 can be regarded as a control system of the terminal device, which can be used to execute the computer program stored in the memory 42 to control the terminal device to implement corresponding functions and complete corresponding actions or tasks. It is worth noting that, depending on the implementation form of the terminal device and the different scenarios in which it is located, the functions to be implemented, the actions or tasks to be completed will be different; accordingly, the computer programs stored in the memory 42 will also be different, and the processor 41 can control the terminal device to implement different functions and complete different actions or tasks by executing different computer programs.

[0086] In some optional embodiments, such as Figure 4 As shown, the terminal device may also include other components such as a display 43, a power supply component 44 and a communication component 45. Figure 4 Only some components are shown schematically, which does not mean that the terminal equipment only includes Figure 4 The components shown in the figure can also include other components according to different application requirements. For example, in the case of voice interaction requirements, Figure 4 As shown, the terminal device may further include an audio component 46. The components that may be included in the terminal device may depend on the product form of the terminal device and are not limited here.

[0087] In an embodiment of the present application, when the processor 41 executes the computer program in the memory 42, it is used to: obtain point cloud data and a panoramic view corresponding to each spatial object in the target house, the point cloud data and the panoramic view are respectively obtained by a laser scanning device and an RGB camera that are communicatively connected to the terminal device, and the panoramic view includes walls, doors and / or windows of each spatial object; determine the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic view according to the calibration parameters between the laser scanning device and the RGB camera; colorize the point cloud data according to the RGB image information; generate a point cloud plan view corresponding to the target house based on the colored point cloud data, the point cloud plan view includes contour lines corresponding to the walls of each spatial object; and determine the target point cloud data corresponding to the doors and / or windows of each spatial object; mark the door contour and / or window contour corresponding to the target point cloud data on the contour line of the point cloud plan view according to the projection relationship between the point cloud data and the point cloud plan view, and use the marked point cloud plan view as the floor plan corresponding to the target house for display.

[0088] In an optional embodiment, when the processor 41 determines the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic view according to the calibration parameters between the laser scanning device and the RGB camera, it is used to: convert each three-dimensional point cloud coordinate corresponding to the point cloud data into the corresponding camera coordinates in the camera coordinate system according to the calibration parameters between the laser scanning device and the RGB camera; and convert the camera coordinates into the corresponding spherical coordinates in the spherical coordinate system, and determine the corresponding panoramic pixel coordinates based on the correspondence between the spherical coordinates and the pixel coordinates; and determine the RGB image information corresponding to each panoramic pixel coordinate from the panoramic view.

[0089] In an optional embodiment, the processor 41 is further used to: for any two points, perform point cloud registration according to the point cloud data respectively acquired at the two points and their corresponding RGB image information to obtain a rotation and translation matrix between the two points.

[0090] In an optional embodiment, the point cloud plan supports editing operations, and the processor 41 is also used to: respond to adjustment operations performed on the target point cloud data on the point cloud plan, adjust the shape of the target point cloud data; and further perform point cloud registration based on the three-dimensional point cloud coordinates and their corresponding RGB image information corresponding to the target point cloud data before and after the shape adjustment, to obtain the corresponding rotation and translation matrices before and after the adjustment.

[0091] In an optional embodiment, when the processor 41 performs coloring processing on the point cloud data according to the RGB image information, it is used to: determine the point cloud range for each coloring processing according to the display limitation conditions of the terminal device; obtain the target RGB image information corresponding to the point cloud range; and use a 3D rendering engine to draw texture information corresponding to the target RGB image information for the target point cloud data corresponding to the point cloud range, so as to perform coloring processing on the target point cloud data.

[0092] In an optional embodiment, when the processor 41 generates a point cloud plan view corresponding to the target house based on the colored point cloud data, it is used to: generate a three-dimensional point cloud model corresponding to the target house based on the colored point cloud data; and perform a planar projection on the three-dimensional point cloud model to obtain a point cloud plan view corresponding to the target house.

[0093] In an optional embodiment, when determining the target point cloud data corresponding to the door body and / or window of each spatial object, the processor 41 is used to: determine the three-dimensional point cloud coordinates corresponding to the target door body and / or target window of each spatial object according to the texture information corresponding to the three-dimensional point cloud model; and determine the target point cloud data corresponding to the target door body and / or target window of each spatial object according to the three-dimensional point cloud coordinates.

[0094] In an optional embodiment, when the processor 41 marks the door body contour and / or window contour corresponding to the target point cloud data on the contour line of the point cloud plan according to the projection relationship of the point cloud data to the point cloud plan, it is used to: determine the target position corresponding to the target point cloud data on the point cloud plan according to the projection relationship of the point cloud data to the point cloud plan, the target position is on the contour line of the point cloud plan; perform a marking operation at the corresponding target position on the point cloud plan to mark the door body contour and / or window contour of each spatial object.

[0095] It should be noted that, regarding the specific functions of the processor in the above-mentioned terminal device, please refer to the above-mentioned method embodiment, which will not be repeated here.

[0096] Accordingly, an embodiment of the present application also provides a computer-readable storage medium storing a computer program, which, when executed, can implement the steps that can be executed by the terminal device in the above method embodiment.

[0097] The communication component in the above-mentioned embodiment is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0098] The display in the above-mentioned embodiment includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0099] The power supply assembly in the above embodiments provides power to various components of the device where the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply assembly is located.

[0100] The audio component in the above-mentioned figure embodiment can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.

[0101] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0102] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0103] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0104] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0105] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0106] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0107] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0108] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0109] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for generating a floor plan for a terminal device, characterized in that: include: Obtaining point cloud data and a panoramic image corresponding to each spatial object in the target house, wherein the point cloud data and the panoramic image are respectively obtained by a laser scanning device and an RGB camera that are communicatively connected to the terminal device, and the panoramic image includes walls and doors, or walls, doors, and windows of each spatial object; Determine, according to calibration parameters between the laser scanning device and the RGB camera, panoramic pixel coordinates corresponding to the point cloud data, and RGB image information corresponding to the panoramic pixel coordinates in the panoramic image; According to the RGB image information, texture information corresponding to the RGB image information is drawn on the point cloud data to perform coloring processing on the point cloud data to obtain colored point cloud data, wherein the colored point cloud data at least includes position information corresponding to walls and doors in each spatial object, or walls, doors and windows, and texture information corresponding to each spatial object; Based on the colored point cloud data, a three-dimensional point cloud model corresponding to the target house is generated, wherein each spatial object in the three-dimensional point cloud model has texture information corresponding to it; a planar projection is performed on the three-dimensional point cloud model to obtain a point cloud plane map corresponding to the target house, wherein the point cloud plane map includes contour lines corresponding to the walls of each spatial object; as well as Determine the three-dimensional point cloud coordinates corresponding to the target door body and the target window of each spatial object according to the texture information corresponding to each spatial object in the three-dimensional point cloud model; and determine the target point cloud data corresponding to the target door body and / or the target window of each spatial object according to the three-dimensional point cloud coordinates; According to the projection relationship from the point cloud data to the point cloud plan, determine the contour line corresponding to the wall where the target point cloud data is projected on the point cloud plan, mark the door body contour and / or window contour corresponding to the target point cloud data on the contour line on the point cloud plan where the target point cloud data is projected, and use the marked point cloud plan as the floor plan corresponding to the target house for display.

2. The method according to claim 1, characterized in that Determining the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic image according to the calibration parameters between the laser scanning device and the RGB camera, including: According to the calibration parameters between the laser scanning device and the RGB camera, each three-dimensional point cloud coordinate corresponding to the point cloud data is converted into a corresponding camera coordinate in the camera coordinate system; and Convert the camera coordinates into corresponding spherical coordinates in a spherical coordinate system, and determine corresponding panoramic pixel coordinates based on the corresponding relationship between the spherical coordinates and the pixel coordinates; and From the panoramic image, RGB image information corresponding to each panoramic pixel coordinate is determined.

3. The method according to claim 2, characterized in that The method further comprises: For any two points, point cloud registration is performed based on the point cloud data respectively acquired at the two points and their corresponding RGB image information to obtain a rotation and translation matrix between the two points.

4. The method according to claim 3, characterized in that: The point cloud plan view supports editing operations, and the method further includes: In response to an adjustment operation performed on the target point cloud data on the point cloud plane, adjusting the shape of the target point cloud data; and According to the three-dimensional point cloud coordinates and the corresponding RGB image information respectively corresponding to the target point cloud data before and after the shape adjustment, further point cloud registration is performed to obtain the corresponding rotation and translation matrices before and after the adjustment.

5. The method according to claim 1, characterized in that The point cloud data is subjected to coloring processing according to the RGB image information, including: Determining the point cloud range for each coloring process according to the display restriction condition of the terminal device; Acquire target RGB image information corresponding to the point cloud range; and A 3D rendering engine is used to draw texture information corresponding to the target RGB image information on the target point cloud data corresponding to the point cloud range, so as to perform coloring processing on the target point cloud data.

6. A floor plan generating device for a mobile terminal, characterized in that: include: An acquisition module is used to acquire point cloud data and a panoramic image corresponding to each spatial object in the target house, wherein the point cloud data and the panoramic image are respectively acquired by a laser scanning device and an RGB camera that are communicatively connected to the terminal device, and the panoramic image includes walls and doors, or walls, doors and windows of each spatial object; A first determination module is used to determine the panoramic pixel coordinates corresponding to the point cloud data and the RGB image information corresponding to the panoramic pixel coordinates in the panoramic image according to the calibration parameters between the laser scanning device and the RGB camera; A processing module, for drawing texture information corresponding to the RGB image information on the point cloud data according to the RGB image information, so as to perform coloring processing on the point cloud data to obtain colored point cloud data, wherein the colored point cloud data at least includes position information corresponding to walls and doors in each spatial object, or walls, doors and windows, and texture information corresponding to each spatial object; A generating module is used to generate a three-dimensional point cloud model corresponding to the target house based on the colored point cloud data, wherein each spatial object in the three-dimensional point cloud model has texture information corresponding thereto; and perform a plane projection on the three-dimensional point cloud model to obtain a point cloud plane map corresponding to the target house, wherein the point cloud plane map includes contour lines corresponding to the walls of each spatial object; A second determination module is used to determine the three-dimensional point cloud coordinates corresponding to the target door body and the target window of each spatial object according to the texture information corresponding to each spatial object in the three-dimensional point cloud model; and to determine the target point cloud data corresponding to the target door body and / or the target window of each spatial object according to the three-dimensional point cloud coordinates; A marking module is used to determine the contour line corresponding to the wall of the target point cloud data projected on the point cloud plan according to the projection relationship from the point cloud data to the point cloud plan, mark the door body contour and / or window contour corresponding to the target point cloud data on the contour line on the point cloud plan where the target point cloud data is projected, and use the marked point cloud plan as the floor plan corresponding to the target house for display.

7. A terminal device, characterized in that: include: A processor and a memory, when the processor executes a computer program, are used to implement the steps in the method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a terminal device, the electronic terminal device is enabled to perform the steps in the method as claimed in any one of claims 1 to 5.