A method of constructing spatial data based on real scene three-dimensional
By establishing landmark points and spatial fusion modules in real-scene image processing, combined with the wide-angle range and moving path of the 3D scanner, the splicing error and overlap problems are solved, and accurate splicing of real-scene images and realistic reflection of virtual space are achieved.
Patent Information
- Application Number
- CN202410388627.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2044-04-01
AI Technical Summary
When the existing technology splices real-scene images into virtual space, splicing errors, missing or large overlapping areas are prone to occur, resulting in large errors between the virtual scene and the real-scene scene and the inability to accurately reflect the real space.
By acquiring multiple azimuth continuous images of the same real scene, performing numbering and pre-segmentation, establishing landmark points and performing calibration, using the spatial fusion module and contour recognition module for overlap detection and correction, combined with the wide-angle range and movement path of the 3D scanner, control Image size and overlap ensure the accuracy of the stitched image.
It achieves the accurate construction of the outline of the real scene, reduces the splicing error, improves the fidelity of the virtual space and the real scene, and ensures the accurate reflection of the virtual space.
Smart Images

Figure CN118097656B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing technology, and in particular relates to a method for constructing spatial data based on real-scene three-dimensional (3D) images, and specifically to a method for constructing spatial data based on real-scene three-dimensional (3D) images by using real-scene three-dimensional (3D) image processing technology. Background Art
[0002] When constructing virtual elements in a virtual space, in order to obtain a more realistic scene, it is often necessary to transplant the real scene into the virtual space. The traditional method basically uses a three-dimensional scanner to obtain the contour of the real scene, and then processes the real scene contour to obtain the virtual scene. However, for some large real scenes, they are generally spliced together by several images. When splicing, there are often large splicing errors, missing or large overlapping areas at the splicing docking positions, resulting in the use of existing image contours to reconstruct missing parts and remove overlaps in the later stage. These methods will cause the obtained virtual scene to have a large error with the real scene, so that the virtual space is not a realistic reflection of the real space. Summary of the invention
[0003] In view of this, the main purpose of the present invention is to provide a method for constructing spatial data based on real-scene three-dimensional, in which the stitching process involved from image acquisition to image processing can be accurately controlled so that the final real-scene outline is a reflection of the actual real scene.
[0004] The technical solution adopted by the invention is as follows:
[0005] The method for constructing spatial data based on real scene three-dimensional includes the following steps:
[0006] Acquire a plurality of continuous real scene images of the same real scene in multiple directions;
[0007] A plurality of continuous real scene images are numbered and pre-segmented to obtain a plurality of continuous segmented images, and any two continuous segmented images have overlapping areas;
[0008] Establishing at least one set of marking points in each of the overlapping areas, calibrating the marking points, and forming a plurality of continuous calibration images after the calibration is completed;
[0009] Inputting continuous calibration images into a spatial fusion module, activating multiple fusion templates in the spatial fusion module, sequentially loading continuous calibration images into the fusion templates, using a dynamic recognition frame set on the fusion template to perform overlapping detection and deviation correction on the marker points to obtain a fused image, and then inputting the fused image into a contour recognition module to obtain a real scene contour, and inputting the real scene contour into a spatial coordinate system;
[0010] The measured longitude and latitude coordinates of each of the marker points are obtained, the measured longitude and latitude coordinates of each of the marker points are matched to the spatial coordinate system, and the entire spatial coordinate system is traversed with reference to the measured longitude and latitude coordinates to obtain the spatial coordinate data of the real scene contour.
[0011] Furthermore, when acquiring real scene images, the wide-angle range of the three-dimensional scanner and the moving path around the real scene are set so that each real scene image has the same set size and any two consecutive real scene images have overlapping parts within the set range.
[0012] Furthermore, during the pre-segmentation, a segmentation module is used to segment each of the real scene images into segmented images with overlapping areas of the same size at both ends.
[0013] Furthermore, the segmentation module has:
[0014] Comparison unit;
[0015] Segmentation unit;
[0016] A logic control unit; and a segmentation matrix, wherein the segmentation matrix is composed of a plurality of segmentation templates, and each segmentation template has a scanning sliding frame at both ends;
[0017] Inputting a plurality of continuous real scene images into the segmentation template through the logic control unit, and enabling the scanning sliding frame to scan, frame and extract the overlapping area of the real scene images in the segmentation template to obtain a plurality of continuous overlapping image parts, and inputting the overlapping image parts into the comparison unit for comparison under the control of the logic control unit to determine the edge distribution of the overlapping image parts corresponding to the two continuous real scene images;
[0018] According to the edge distribution of the overlapping image parts corresponding to the two continuous real scene images, the segmentation unit is controlled by the logic control unit to segment the overlapping image parts, so that the overlapping image parts corresponding to the two continuous real scene images have a completely overlapping part within a set range;
[0019] The completely overlapping parts are sequentially inputted into the corresponding segmentation template under the control of the logic control unit, and the overlapping parts are spliced onto the corresponding real scene image by activating the scanning sliding frame to obtain the segmented image.
[0020] Furthermore, the middle part of the segmentation template is a positioning part, and a central axis is provided in the positioning part, and the placement of the real scene image is determined by the central axis.
[0021] Furthermore, a configuration unit is also provided in the segmentation module, and the configuration unit uses the configuration rules set therein to perform specification configuration on the segmentation template.
[0022] Furthermore, at least one set of marker points is established in each of the overlapping areas by using a marker model.
[0023] Furthermore, the spatial fusion module has:
[0024] A fusion part, wherein the fusion part has a plurality of fusion templates;
[0025] A template combination unit, which forms a layout track for combining the fusion templates after scaling the movement path of the 3D scanner around the real scene, and sequentially lays out the fusion templates according to the layout track;
[0026] The template configuration unit sets the dynamic recognition frame on the fusion template by using the same configuration rule as the configuration unit.
[0027] Furthermore, the fusion portion has:
[0028] A fusion management unit for loading consecutive calibration images into a fusion template;
[0029] A fusion control unit is used to control the dynamic recognition frame to perform overlap detection and deviation correction on the marker points.
[0030] Furthermore, the recognition module has a plurality of contour recognition units, and the contour recognition units and the fusion template have the same layout form.
[0031] The present application actually constructs a moving path around the real scene, controls the size of each real scene image by setting the wide-angle range of the three-dimensional scanner and setting a matrix transformation on the moving path according to the wide-angle range of the three-dimensional scanner, and avoids the subsequent reconstruction of the defective part by setting the overlapping part. At the same time, the overlapping part can be completely controlled by the moving path and the matrix transformation set thereon. In post-processing, it is only necessary to remove one overlapping part and retain the other real scene image to obtain a spliced and fused image. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The following drawings are only used to illustrate and explain the present invention, and are not used to limit the scope of the present invention, wherein:
[0033] Figure 1 is a flow chart of the method of the present invention;
[0034] Figure 2 The figure is a flow chart of the method for performing overlap detection and deviation correction on the marker points in the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution, design method and advantages of the present invention more clear, the present invention is further described in detail by specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0036] Reference Figure 1 to Figure 2 The present invention provides a method for constructing spatial data based on real-scene three-dimensional space, comprising the following steps:
[0037] Acquire a plurality of continuous real scene images of the same real scene in multiple directions;
[0038] A plurality of continuous real scene images are numbered and pre-segmented to obtain a plurality of continuous segmented images, and any two continuous segmented images have overlapping areas;
[0039] Establishing at least one set of marking points in each of the overlapping areas, calibrating the marking points, and forming a plurality of continuous calibration images after the calibration is completed;
[0040] Inputting continuous calibration images into a spatial fusion module, activating multiple fusion templates in the spatial fusion module, sequentially loading continuous calibration images into the fusion templates, using a dynamic recognition frame set on the fusion template to perform overlapping detection and deviation correction on the marker points to obtain a fused image, and then inputting the fused image into a contour recognition module to obtain a real scene contour, and inputting the real scene contour into a spatial coordinate system;
[0041] The measured longitude and latitude coordinates of each of the marker points are obtained, the measured longitude and latitude coordinates of each of the marker points are matched to the spatial coordinate system, and the entire spatial coordinate system is traversed with reference to the measured longitude and latitude coordinates to obtain the spatial coordinate data of the real scene contour.
[0042] In some embodiments, when acquiring real-scene images, the wide-angle range of the three-dimensional scanner and the moving path around the real scene are set so that each real-scene image has the same set size and any two consecutive real-scene images have overlapping parts within the set range.
[0043] In some embodiments, the 3D scanner can be a photographic 3D scanner with a bracket, or it can be a photographic 3D scanner mounted on a drone. The specific use can be determined according to the actual situation. The following implementation method is given as an example in the present application. When the height, width and length of the real scene are within the set range, such as the height, width and length are not more than 30 meters, and there are no obstacles around, a photographic 3D scanner with a bracket can be used to establish a circular trajectory for taking pictures with the real scene as the center. After setting the wide-angle range of the 3D scanner, several equal points are set on the circular trajectory, for example, every 10° is used as a point (the wide-angle range of the 3D scanner should be greater than 10°, such as 12°) to capture a real scene image. For some large buildings, you can use a camera-type 3D scanner mounted on a drone. The specific method is the same as above. The difference is that when performing auxiliary distance measurement, you can use the UWB (Ultra Wideband) ranging method. Install a UWB (Ultra Wideband) ranging module on the drone and place a UWB (Ultra Wideband) ranging module roughly at the center of the top of the building. The two-way ranging method can be used to determine the distance between the two. At the same time, when using the camera-type 3D scanner mounted on the drone for auxiliary photography, it should be kept at the same height. Existing drones can be used to achieve fixed point, fixed height and automatic suspension functions for assistance.
[0044] In some embodiments, the moving path of the 3D scanner around the real scene is controlled so that any two consecutive real scene images have overlapping parts; for example, in the above embodiment, when the wide-angle range of the 3D scanner is set to 12° (with the real scene as a reference), the angle of the photo point is actually set to 10°, then the extra 2° framing range is the overlapping part of the two consecutive real scene images, and there is an extra 1° framing range on each side.
[0045] In some embodiments, during the pre-segmentation, a segmentation module is used to segment each of the real scene images into segmented images with overlapping areas of the same size at both ends.
[0046] In some embodiments, the present application actually controls the size of each real-scene image by constructing a moving path that moves around the real scene, setting the wide-angle range of the three-dimensional scanner, and setting a matrix transformation on the moving path according to the wide-angle range of the three-dimensional scanner, and by setting the overlapping part, avoiding the subsequent reconstruction of the defective part. At the same time, the overlapping part can be completely controlled by the moving path and the matrix transformation set thereon. In post-processing, it is only necessary to remove one overlapping part and retain the other real-scene image to obtain a spliced and fused image.
[0047] In some embodiments, the segmentation module has:
[0048] Comparison unit;
[0049] Segmentation unit;
[0050] A logic control unit; and a segmentation matrix, wherein the segmentation matrix is composed of a plurality of segmentation templates, and each segmentation template has a scanning sliding frame at both ends;
[0051] Inputting a plurality of continuous real scene images into the segmentation template through the logic control unit, and enabling the scanning sliding frame to scan, frame and extract the overlapping area of the real scene images in the segmentation template to obtain a plurality of continuous overlapping image parts, and inputting the overlapping image parts into the comparison unit for comparison under the control of the logic control unit to determine the edge distribution of the overlapping image parts corresponding to the two continuous real scene images;
[0052] According to the edge distribution of the overlapping image parts corresponding to the two continuous real scene images, the segmentation unit is controlled by the logic control unit to segment the overlapping image parts, so that the overlapping image parts corresponding to the two continuous real scene images have a completely overlapping part within a set range;
[0053] The completely overlapping parts are sequentially inputted into the corresponding segmentation template under the control of the logic control unit, and the overlapping parts are spliced onto the corresponding real scene image by activating the scanning sliding frame to obtain the segmented image.
[0054] In some embodiments, the middle portion of the segmentation template is a positioning portion, a central axis is provided in the positioning portion, and the placement of the real scene image is determined by the central axis, wherein the positioning portion is the portion where the overlapping area is removed.
[0055] In some embodiments, a configuration unit is further provided in the segmentation module, and the configuration unit uses the configuration rules provided therein to perform specification configuration on the segmentation template.
[0056] In some embodiments, the configuration rule includes determining the size of the segmentation template according to a set size, and setting the size of the scanning sliding box according to the size of the overlapping portion.
[0057] In some embodiments, the configuration rule has:
[0058] A first configuration part is used to determine the size of the split template according to a set size, and to determine the center axis of the split template, and to determine that the split template is configured as a positioning part according to the center axis;
[0059] The second configuration part is used to determine the size of the scanning sliding frame on the segmentation template according to the overlapping part of the set range.
[0060] In some embodiments, at least one set of landmark points is established in each of the overlapping regions by a landmark model.
[0061] In some embodiments, at least one set of the marker points is set laterally along the overlapping area.
[0062] In some embodiments, the landmark model has:
[0063] There are several neural network units, and each neural network unit has a corresponding matching feature library.
[0064] In some embodiments, the feature library is composed of an image material library marked by experts according to the type of material in the image. The image material library is set according to different materials, such as buildings, with different colored decorative panels on the building, gaps between adjacent buildings, purlins on the building, etc. as marking points.
[0065] In some embodiments, the spatial fusion module has:
[0066] A fusion part, wherein the fusion part has a plurality of fusion templates;
[0067] A template combination unit, which forms a layout track for combining the fusion templates after scaling the movement path of the 3D scanner around the real scene, and sequentially lays out the fusion templates according to the layout track;
[0068] The template configuration unit sets the dynamic recognition frame on the fusion template by using the same configuration rule as the configuration unit.
[0069] In some embodiments, the fusion portion has:
[0070] A fusion management unit for loading consecutive calibration images into a fusion template;
[0071] A fusion control unit is used to control the dynamic recognition frame to perform overlap detection and deviation correction on the marker points.
[0072] In some embodiments, the dynamic recognition frame uses the following method to perform overlap detection and deviation correction on the marker points:
[0073] Ⅰ: extracting and comparing two consecutive calibration images using the dynamic recognition frame to determine whether the same landmarks on the two consecutive calibration images overlap;
[0074] II: If there is overlap, execute step III; if there is no overlap, mark the marker points set on two consecutive calibration images in sequence according to the same marking rule, and make each marker point have a display symbol, and correspond the same marker points calibrated by the marking rule with the display symbol to achieve the purpose of overlapping and correcting the calibration images;
[0075] III: Fusing the calibration images in the form of the fusion template combination to form a fusion image.
[0076] In some embodiments, the dynamic identification frame is composed of a number of square frames arranged in equal proportions, each square frame is represented as a position point, and each position point has a display symbol;
[0077] Furthermore, the display symbols of the same position points in different dynamic identification frames are the same.
[0078] In some embodiments, the recognition module has a plurality of contour recognition units, and the contour recognition units have the same layout as the fusion template.
[0079] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for constructing spatial data based on real-scene three-dimensional space, characterized in that: The steps include: Acquire a plurality of continuous real scene images of the same real scene in multiple directions; A plurality of continuous real scene images are numbered and pre-segmented to obtain a plurality of continuous segmented images, and any two continuous segmented images have overlapping areas; Establishing at least one set of marking points in each of the overlapping areas, calibrating the marking points, and forming a plurality of continuous calibration images after the calibration is completed; Inputting continuous calibration images into a spatial fusion module, activating multiple fusion templates in the spatial fusion module, sequentially loading continuous calibration images into the fusion templates, using a dynamic recognition frame set on the fusion template to perform overlapping detection and deviation correction on the marker points to obtain a fused image, and then inputting the fused image into a contour recognition module to obtain a real scene contour, and inputting the real scene contour into a spatial coordinate system; Obtain the measured longitude and latitude coordinates of each of the marker points, match the measured longitude and latitude coordinates of each of the marker points to the spatial coordinate system, and traverse the entire spatial coordinate system with the measured longitude and latitude coordinates as a reference to obtain the spatial coordinate data of the real scene contour; The spatial fusion module has: A fusion part, wherein the fusion part has a plurality of fusion templates; A template combination unit, which forms a layout track for combining the fusion templates after scaling the movement path of the 3D scanner around the real scene, and sequentially lays out the fusion templates according to the layout track; A template configuration unit, configured to set a dynamic recognition frame on the fusion template by using the same configuration rule as the configuration unit; The fusion portion has: A fusion management unit for loading consecutive calibration images into a fusion template; A fusion control unit is used to control the dynamic recognition frame to perform overlap detection and deviation correction on the marker points.
2. The method for constructing spatial data based on real scene three-dimensional according to claim 1, characterized in that: When acquiring real scene images, the wide-angle range of the three-dimensional scanner and the moving path around the real scene are set so that each real scene image has the same set size and any two consecutive real scene images have overlapping parts within the set range.
3. The method for constructing spatial data based on real scene three-dimensional according to claim 1, characterized in that: During the pre-segmentation, a segmentation module is used to segment each of the real scene images into segmented images with overlapping areas of the same size at both ends.
4. The method for constructing spatial data based on real scene three-dimensional according to claim 3, characterized in that: in, The segmentation module has: Comparison unit; Segmentation unit; A logic control unit; and a segmentation matrix, wherein the segmentation matrix is composed of a plurality of segmentation templates, and each segmentation template has a scanning sliding frame at both ends; Inputting a plurality of continuous real scene images into the segmentation template through the logic control unit, and enabling the scanning sliding frame to scan, frame and extract the overlapping area of the real scene images in the segmentation template to obtain a plurality of continuous overlapping image parts, and inputting the overlapping image parts into the comparison unit for comparison under the control of the logic control unit to determine the edge distribution of the overlapping image parts corresponding to the two continuous real scene images; According to the edge distribution of the overlapping image parts corresponding to the two continuous real scene images, the segmentation unit is controlled by the logic control unit to segment the overlapping image parts, so that the overlapping image parts corresponding to the two continuous real scene images have a completely overlapping part within a set range; The completely overlapping parts are sequentially inputted into the corresponding segmentation template under the control of the logic control unit, and the overlapping parts are spliced onto the corresponding real scene image by activating the scanning sliding frame to obtain the segmented image.
5. The method for constructing spatial data based on real scene three-dimensional according to claim 4, characterized in that: The middle part of the segmentation template is a positioning part, and a central axis is arranged in the positioning part, and the placement of the real scene image is determined by the central axis.
6. The method for constructing spatial data based on real scene three-dimensional according to claim 4, characterized in that: The segmentation module is also provided with a configuration unit, and the configuration unit uses the configuration rules set therein to perform specification configuration on the segmentation template.
7. The method for constructing spatial data based on real scene three-dimensional according to claim 1, characterized in that: At least one set of marker points is established in each of the overlapping areas by using a marker model.
8. The method for constructing spatial data based on real scene three-dimensional according to claim 1, characterized in that: The recognition module has a plurality of contour recognition units, and the contour recognition units have the same layout as the fusion template.
