A virtual map AI generation method and system

The mobile robot scans the geographical image data, performs registration, splicing and completion, generates a three-dimensional virtual point cloud, and constructs a triangular grid map, which solves the problems of low virtual map generation efficiency and large data volume in the existing technology, and achieves high efficiency. Virtual map construction.

CN118505922BActive Publication Date: 2024-10-01SHENZHEN SHANGMI NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410978590.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-01
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

The existing technology has low efficiency when generating three-dimensional virtual maps, and it is difficult to remove dynamic objects and impurities, resulting in missing image modules. Moreover, the amount of three-dimensional point cloud data is large, and the efficiency of constructing triangular patches is low.

Method used

The mobile robot scans the geographical image data, performs geographical image registration and splicing, identifies and removes dynamic objects, uses hidden representation vectors to complete the image, generates a three-dimensional virtual point cloud under real geographical coordinates, and constructs a virtual three-dimensional virtual point cloud through the three-dimensional virtual point cloud Maps use triangular grids instead of triangular patches to reduce the amount of data.

Benefits of technology

It improves the efficiency of virtual map generation, removes dynamic objects and impurities, reduces the amount of point cloud data, and improves the speed and quality of image construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505922B_ABST
    Figure CN118505922B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of deep learning technology, and discloses a virtual map AI generation method and system, the method comprising: performing geographic image registration between each geographic image data in geographic image data to obtain a registered geographic image, performing geographic image splicing between each registered geographic image in the registered geographic image to obtain a spliced ​​geographic image; detecting non-map targets in the spliced ​​geographic image; performing linear transformation on the image grid area to obtain a linear transformation vector, extracting a hidden representation vector in the linear transformation vector, and using the hidden representation vector to complete the de-redundant image to obtain a completed image; based on the robot coordinates and the camera shooting parameters, calculating the real geographic coordinates of the real geographic location from the completed image, generating a three-dimensional virtual point cloud under the real geographic coordinates; and using the three-dimensional virtual point cloud to construct a virtual three-dimensional map of the real geographic location. The present invention can improve the efficiency of virtual map AI generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning technology, and in particular to a virtual map AI generation method and system. Background Art

[0002] Virtual maps can be divided into two-dimensional plane maps and three-dimensional model maps. Currently, the generation of virtual maps is mostly based on data scanning vehicles or drones scanning environmental data, and then generating virtual maps.

[0003] At present, in the field of three-dimensional map generation, lane data is scanned by sensors, and then a three-dimensional point cloud of the lane data is generated, and the three-dimensional point cloud is fitted into a three-dimensional point cloud model. However, there are still some problems with the existing technology. For example, the scanned lane image data is mostly remote images, that is, the image only presents the fuzzy outline of the real world, and the image of the specific building environment and the ground environment is not specifically generated. Secondly, if a three-dimensional model of a specific building or ground is to be generated, it is inevitable to scan other dynamic objects or garbage other than the building and the ground. Third, after removing other dynamic objects or garbage other than the building and the ground from the image, it will lead to the loss of modules in the image. Fourth, the model construction amount of a large number of generated three-dimensional point clouds is large, because the data volume of the three-dimensional point cloud is large. Finally, the existing technology generally constructs the triangular facets of the point cloud based on the two-dimensional point cloud, and this construction method is inefficient. Therefore, the efficiency of virtual map AI generation is low. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a virtual map AI generation method and system, which can improve the efficiency of virtual map AI generation.

[0005] In a first aspect, the present invention provides a virtual map AI generation method, comprising:

[0006] Using a mobile robot to scan geographic image data at a real geographic location, performing geographic image registration between each geographic image data in the geographic image data to obtain a registered geographic image, and performing geographic image splicing between each registered geographic image in the registered geographic image to obtain a spliced ​​geographic image;

[0007] Identifying a dynamic object region in the stitched geographic image, detecting a non-map target in the stitched geographic image, and removing the dynamic object region and the non-map target from the stitched geographic image to obtain a de-redundant image;

[0008] Cutting the de-redundant image into image grid regions, performing linear transformation on the image grid regions to obtain linear transformation vectors, extracting hidden representation vectors in the linear transformation vectors, and completing the de-redundant image using the hidden representation vectors to obtain a completed image;

[0009] Acquire the robot coordinates of the mobile robot, collect the camera shooting parameters of the mobile robot, calculate the real geographic coordinates of the real geographic location from the completed image based on the robot coordinates and the camera shooting parameters, and generate a three-dimensional virtual point cloud under the real geographic coordinates;

[0010] A virtual three-dimensional map of the real geographical location is constructed using the three-dimensional virtual point cloud, and the virtual three-dimensional map is used as a virtual map AI generation result of the real geographical location.

[0011] In a possible implementation manner of the first aspect, performing geographic image registration on each geographic image data in the geographic image data to obtain a registered geographic image includes:

[0012] Dividing the geographic image data into a reference image and a target image;

[0013] constructing a reference coordinate system of the reference image;

[0014] Acquire a first reference coordinate of the reference image and a second reference coordinate of the reference image in the reference coordinate system, and acquire a first target coordinate of the target image;

[0015] Based on the first reference coordinate and the second reference coordinate, the first target coordinate is converted into the second target coordinate in the reference coordinate system using the following formula:

[0016] ;

[0017] in, represents the second target coordinates, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, represents the number of pixel columns of matching pairs in the geographic image data, represents the number of rows of pixels that match pairs in the geographic image data, represents the first target coordinates, Indicates the coordinates of the pixel point in the first row and first column that constitutes a matching point pair between the target image and the reference image. Indicates the first row of the matching point pair between the target image and the reference image. Column pixel coordinates, Indicates the first matching point pair between the target image and the reference image. Line Column pixel coordinates, Indicates the first matching point pair between the target image and the reference image. Line Column pixel coordinates, represents the first reference coordinate, Represents the coordinates of the pixel point in the first row and first column that constitutes a matching point pair between the reference image and the target image. Indicates the first row of the matching point pair between the reference image and the target image. Column pixel coordinates, Indicates the first matching point between the reference image and the target image. Line Column pixel coordinates, Indicates the first matching point between the reference image and the target image. Line Column pixel coordinates, represents the coordinate mapping matrix between the first reference coordinate and the first target coordinate, represents the second reference coordinate, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express coordinates in the reference coordinate system;

[0018] The registered geographic image is determined using the second target coordinates.

[0019] In a possible implementation manner of the first aspect, performing geographic image stitching between each of the registered geographic images to obtain a stitched geographic image includes:

[0020] identifying image overlap regions and image non-overlap regions between each of the registered geographic images;

[0021] Based on the image overlapping area and the image non-overlapping area, geographic image stitching is performed between each of the registered geographic images using the following formula to obtain a stitched geographic image:

[0022] ;

[0023] in, represents a mosaic of geographic images, represents the concatenation function, a reference registered geo-image representing the non-overlapping regions of the images in the registered geo-image, The target registered geo-image representing the non-overlapping regions of the images in the registered geo-image, represents the coordinate mapping matrix between the first reference coordinate and the first target coordinate, and represents the weight parameter, Represents the stitching result of the image overlapping areas in the registered geographic image.

[0024] In a possible implementation manner of the first aspect, detecting a non-map target in the stitched geographic image includes:

[0025] Calculating a geographic grayscale map of the stitched geographic image;

[0026] Calculating the grayscale gradient in the geographic grayscale map using a preset Sobel operator to obtain a geographic gradient map;

[0027] The geographic gradient map is segmented using a preset threshold segmentation method. Figure 2 Value, and get the binary gradient map;

[0028] Fill the target area in the binary gradient image using a preset image morphology to obtain a filled target area;

[0029] Calculate the center point of the target filling area;

[0030] Calculating a boundary-center distance between a region boundary of the filling target region and a center point of the region;

[0031] When there is a coincidence between two boundary-center distances in the boundary-center distances, determining whether the boundary-center distances are on the same straight line;

[0032] When the boundary-center distance is on the same straight line, determining that the filling target area is not the non-map target;

[0033] When the boundary-center distances are not on the same straight line, determining whether every two boundary-center distances in the boundary-center distances are consistent, and when every two boundary-center distances in the boundary-center distances are consistent, determining that the filling target area is not the non-map target;

[0034] When there is inconsistency between every two boundary-center distances in the boundary-center distances, the filling target area is determined to be the non-map object.

[0035] In a possible implementation manner of the first aspect, performing a linear transformation on the image grid area to obtain a linear transformation vector includes:

[0036] The image grid area is position-encoded using the following formula to obtain a position encoding vector:

[0037] ;

[0038] in, represents the position encoding vector, represents the position encoding layer, represents the i-th image grid area;

[0039] The image grid area is linearly mapped using the following formula to obtain a linear mapping vector:

[0040] ;

[0041] in, represents a linear mapping vector, represents a linear mapping layer, represents the i-th image grid area;

[0042] The position encoding vector and the linear mapping vector are concatenated using the following formula to obtain a linear transformation vector:

[0043] ;

[0044] in, represents the linear transformation vector, represents the position encoding vector, represents a linear mapping vector, Represents the concatenation function.

[0045] In a possible implementation manner of the first aspect, the step of using the hidden representation vector to complete the de-redundant image to obtain a completed image includes:

[0046] Based on the hidden representation vector, the completed image is generated using the following formula:

[0047] ;

[0048] in, represents the completed image, represents the fully connected layer, represents the sequence labeling model based on the self-attention mechanism, represents the hidden representation vector.

[0049] In a possible implementation manner of the first aspect, calculating the real geographic coordinates of the real geographic location from the completed image based on the robot coordinates and the camera shooting parameters includes:

[0050] Calculating a robot-position distance between the mobile robot and the real geographical location using the camera shooting parameters;

[0051] The real geographic coordinates of the real geographic location at the robot-location distance are calculated using the robot coordinates.

[0052] In a possible implementation manner of the first aspect, generating the three-dimensional virtual point cloud under the real geographic coordinates includes:

[0053] Calculate the real geographical distance between every two real geographical coordinates under the real geographical coordinates;

[0054] Based on the real geographical distance, the three-dimensional virtual point cloud under the real geographical coordinates is calculated using the following formula:

[0055] ;

[0056] in, Represents a three-dimensional virtual point cloud, Represents the real geographic coordinates, Indicates the reduction ratio from the real world to the virtual world. express The real geographical distance to other real geographical coordinates, represents the distance threshold, Indicates compliance of The number of Indicates the quantity threshold.

[0057] In a possible implementation of the first aspect, constructing a virtual three-dimensional map of the real geographical location by using the three-dimensional virtual point cloud includes:

[0058] Calculating a virtual point cloud distance between each three-dimensional virtual point cloud in the three-dimensional virtual point cloud;

[0059] Selecting the shortest point cloud distance from the virtual point cloud distances, and obtaining the point cloud distance endpoint of the shortest point cloud distance from the three-dimensional virtual point cloud;

[0060] Based on the point cloud distance endpoints, the angle of the triangle with the shortest point cloud distance as the side is calculated using the following formula:

[0061] ;

[0062] in, represents the angle of a triangle, Indicates the point cloud distance from the left endpoint. represents the oth point cloud in the three-dimensional virtual point cloud except the point cloud distance endpoint, Indicates the right endpoint of the point cloud distance endpoint. Indicated by point The vector of the line segment formed, Indicated by point The vector of the line segment formed, express The length of the vector, express The length of the vector;

[0063] Based on the triangle angle, the point cloud to be connected is selected from the three-dimensional virtual point cloud using the following formula:

[0064] ;

[0065] ;

[0066] in, Indicates the point cloud to be connected. A function representing the triangle side corresponding to the triangle angle, , , represents the coordinates of one end of the triangle side, , , represents the coordinates of the other end of the triangle side, , , represents the unknown variable, Indicates the distance endpoint of the point cloud is removed from the 3D virtual point cloud. Any remaining point cloud other than Indicates that Substitute the coordinates of into the function of the triangle side to get the sign of the value, express The minimum corresponding The sign of the value obtained by substituting the coordinates of the triangle into the function of the side of the triangle;

[0067] The point cloud to be connected is used to construct a virtual three-dimensional map corresponding to the three-dimensional virtual point cloud.

[0068] In a second aspect, the present invention provides a virtual map AI generation system, the system comprising:

[0069] An image stitching module is used to scan geographic image data at a real geographic location using a mobile robot, perform geographic image registration between each geographic image data in the geographic image data to obtain a registered geographic image, and perform geographic image stitching between each registered geographic image in the registered geographic image to obtain a stitched geographic image;

[0070] An image de-redundancy module, used for identifying a dynamic object region in the stitched geographic image, detecting a non-map target in the stitched geographic image, and removing the dynamic object region and the non-map target from the stitched geographic image to obtain a de-redundancy image;

[0071] An image completion module, used for cutting the de-redundant image into image grid regions, performing linear transformation on the image grid regions to obtain linear transformation vectors, extracting hidden representation vectors in the linear transformation vectors, and completing the de-redundant image using the hidden representation vectors to obtain a completed image;

[0072] a point cloud generation module, configured to obtain the robot coordinates of the mobile robot, collect the camera shooting parameters of the mobile robot, calculate the real geographic coordinates of the real geographic location from the supplemented image based on the robot coordinates and the camera shooting parameters, and generate a three-dimensional virtual point cloud under the real geographic coordinates;

[0073] A result construction module is used to construct a virtual three-dimensional map of the real geographical location using the three-dimensional virtual point cloud, and use the virtual three-dimensional map as the virtual map AI generation result of the real geographical location.

[0074] Compared with the prior art, the technical principle and beneficial effects of this solution are:

[0075] The embodiment of the present invention stitches geographic images between each of the registered geographic images to stitch images of the same area taken at different angles into an image that can display a 360-degree angle of the same area. Further, the embodiment of the present invention detects non-map targets in the stitched geographic images to identify whether there are impurities other than buildings and roads in the stitched geographic images. Further, the embodiment of the present invention completes the de-redundant image by using the hidden representation vector to complete the missing image when the module in the image is missing after other dynamic objects or garbage other than buildings and the ground are removed from the image. Further, the embodiment of the present invention generates a three-dimensional virtual point cloud under the real geographic coordinates to filter the point cloud data and reduce the amount of point cloud data. The embodiment of the present invention constructs a virtual three-dimensional map of the real geographic location by using the three-dimensional virtual point cloud to convert triangular facets constructed by other technologies into triangular meshes constructed by the present invention. The triangular mesh can greatly reduce the amount of data when constructing triangular facets, thereby improving the efficiency of map construction. Therefore, the virtual map AI generation method and system proposed in the embodiment of the present invention can improve the efficiency of virtual map AI generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0077] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0078] Figure 1 A flowchart of a virtual map AI generation method provided by an embodiment of the present invention;

[0079] Figure 2 A module diagram of a virtual map AI generation system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0080] 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.

[0081] The embodiment of the present invention provides a virtual map AI generation method, and the execution subject of the virtual map AI generation method includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the virtual map AI generation method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0082] See also Figure 1 FIG. 1 is a flow chart of a virtual map AI generation method provided by an embodiment of the present invention. Figure 1 The virtual map AI generation method described in the invention includes:

[0083] S1. Use a mobile robot to scan geographic image data at a real geographic location, perform geographic image registration between each geographic image data in the geographic image data to obtain a registered geographic image, and perform geographic image splicing between each registered geographic image in the registered geographic image to obtain a spliced ​​geographic image.

[0084] Furthermore, the process of using the mobile robot to scan geographic image data at a real geographic location refers to using the mobile robot to scan lane image data in a 360-degree direction on the lane, where 360 ​​degrees refers to the rotation angle of the mobile robot.

[0085] In one embodiment of the present invention, the geographic image registration is performed between each geographic image data in the geographic image data to obtain a registered geographic image, including: dividing the geographic image data into a reference image and a target image; constructing a reference coordinate system for the reference image; obtaining a first reference coordinate of the reference image and a second reference coordinate of the reference image in the reference coordinate system, and obtaining a first target coordinate of the target image; based on the first reference coordinate and the second reference coordinate, converting the first target coordinate into a second target coordinate in the reference coordinate system using the following formula:

[0086] ;

[0087] ;

[0088] in, represents the second target coordinates, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, represents the number of pixel columns of matching pairs in the geographic image data, represents the number of rows of pixels that match pairs in the geographic image data, represents the first target coordinates, Indicates the coordinates of the pixel point in the first row and first column that constitutes a matching point pair between the target image and the reference image. Indicates the first row of the matching point pair between the target image and the reference image. Column pixel coordinates, Indicates the first matching point pair between the target image and the reference image. Line Column pixel coordinates, Indicates the first matching point pair between the target image and the reference image. Line Column pixel coordinates, represents the first reference coordinate, Represents the coordinates of the pixel point in the first row and first column that constitutes a matching point pair between the reference image and the target image. Indicates the first row of the matching point pair between the reference image and the target image. Column pixel coordinates, Indicates the first matching point between the reference image and the target image. Line Column pixel coordinates, Indicates the first matching point between the reference image and the target image. Line Column pixel coordinates, represents the coordinate mapping matrix between the first reference coordinate and the first target coordinate, represents the second reference coordinate, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express coordinates in the reference coordinate system;

[0089] The registered geographic image is determined using the second target coordinates.

[0090] Among them, the reference image refers to the first image in the geographic image data, the target image refers to all remaining images except the reference image, the reference coordinate system refers to the common coordinate system that needs to be uniformly mapped for the geographic image data, the first reference coordinate refers to the coordinate of the pixel point in the reference image, and the first target coordinate refers to the coordinate of the pixel point in the target image.

[0091] Furthermore, the process of determining the registered geographic image using the second target coordinates refers to using a set of pixel points formed by the second target coordinates as the registered geographic image.

[0092] Furthermore, the embodiment of the present invention performs geographic image stitching between each of the registered geographic images to stitch images of the same area taken at different angles into an image that can display a 360-degree angle of the same area.

[0093] In one embodiment of the present invention, the step of performing geographic image stitching between each of the registered geographic images to obtain a stitched geographic image includes: identifying an image overlap area and an image non-overlap area between each of the registered geographic images; and based on the image overlap area and the image non-overlap area, performing geographic image stitching between each of the registered geographic images to obtain a stitched geographic image using the following formula to obtain a stitched geographic image:

[0094] ;

[0095] in, represents a mosaic of geographic images, represents the concatenation function, a reference registered geo-image representing the non-overlapping regions of the images in the registered geo-image, The target registered geo-image representing the non-overlapping regions of the images in the registered geo-image, represents the coordinate mapping matrix between the first reference coordinate and the first target coordinate, and represents the weight parameter, Represents the stitching result of the image overlapping areas in the registered geographic image.

[0096] S2, identifying a dynamic object region in the stitched geographic image, detecting a non-map target in the stitched geographic image, and removing the dynamic object region and the non-map target from the stitched geographic image to obtain a de-redundant image.

[0097] Furthermore, the process of identifying the dynamic object area in the stitched geographic image can be implemented by an inter-frame difference method.

[0098] Furthermore, the embodiment of the present invention detects non-map objects in the stitched geographic image to identify whether there are impurities other than buildings and roads in the stitched geographic image.

[0099] The non-map targets refer to impurities other than buildings and roads.

[0100] In one embodiment of the present invention, the detecting of non-map targets in the spliced ​​geographic image includes: calculating a geographic grayscale map of the spliced ​​geographic image; calculating the grayscale map gradient in the geographic grayscale map using a preset Sobel operator to obtain a geographic gradient map; performing gradient segmentation on the geographic gradient map using a preset threshold segmentation method; Figure 2 The method comprises the following steps: performing image morphology to fill a target area in the binary gradient image, and obtaining a filled target area; calculating a region center point of the filled target area; calculating a border-center distance between a region border of the filled target area and the region center point; when two border-center distances in the border-center distances are consistent, determining whether the border-center distances are on the same straight line; when the border-center distances are on the same straight line, determining that the filled target area is not the non-map target; when the border-center distances are not on the same straight line, determining whether every two border-center distances in the border-center distances are consistent; when every two border-center distances in the border-center distances are consistent, determining that the filled target area is not the non-map target; when every two border-center distances in the border-center distances are inconsistent, determining that the filled target area is the non-map target.

[0101] Furthermore, the process of removing the dynamic object region and the non-map target from the stitched geographic image to obtain a de-redundant image refers to a process of removing pixel regions corresponding to the dynamic object region and the non-map target.

[0102] S3, cutting the de-redundant image into image grid regions, performing linear transformation on the image grid regions to obtain linear transformation vectors, extracting hidden representation vectors in the linear transformation vectors, and using the hidden representation vectors to complete the de-redundant image to obtain a completed image.

[0103] Furthermore, the process of cutting the de-redundant image into image grid areas refers to the process of equally dividing the de-redundant image into a plurality of grid areas.

[0104] In one embodiment of the present invention, performing a linear transformation on the image grid area to obtain a linear transformation vector includes: performing position encoding on the image grid area using the following formula to obtain a position encoding vector:

[0105] ;

[0106] in, represents the position encoding vector, represents the position encoding layer, represents the i-th image grid area;

[0107] The image grid area is linearly mapped using the following formula to obtain a linear mapping vector:

[0108] ;

[0109] in, represents a linear mapping vector, represents a linear mapping layer, represents the i-th image grid area;

[0110] The position encoding vector and the linear mapping vector are concatenated using the following formula to obtain a linear transformation vector:

[0111] ;

[0112] in, represents the linear transformation vector, represents the position encoding vector, represents a linear mapping vector, Represents the concatenation function.

[0113] Furthermore, the embodiment of the present invention completes the de-redundant image by using the hidden representation vector, so as to complete the missing image when the missing modules in the image are caused by removing other dynamic objects or garbage except buildings and the ground from the image.

[0114] In one embodiment of the present invention, the method of using the hidden representation vector to complete the de-redundant image to obtain the completed image includes: generating the completed image based on the hidden representation vector using the following formula:

[0115] ;

[0116] in, represents the completed image, represents the fully connected layer, represents the sequence labeling model based on the self-attention mechanism, represents the hidden representation vector.

[0117] S4. Acquire the robot coordinates of the mobile robot, collect the camera shooting parameters of the mobile robot, calculate the real geographic coordinates of the real geographic location from the completed image based on the robot coordinates and the camera shooting parameters, and generate a three-dimensional virtual point cloud under the real geographic coordinates.

[0118] In the embodiment of the present invention, the camera shooting parameter refers to the focal length of the camera, and the robot coordinates refer to the GPS coordinates of the robot.

[0119] In one embodiment of the present invention, calculating the real geographic coordinates of the real geographic location from the completed image based on the robot coordinates and the camera shooting parameters includes: using the camera shooting parameters to calculate the robot-position distance between the mobile robot and the real geographic location; and using the robot coordinates to calculate the real geographic coordinates of the real geographic location at the robot-position distance.

[0120] Furthermore, the process of calculating the robot-position distance between the mobile robot and the real geographic location using the camera shooting parameters refers to the process of calculating the distance using focal length and image scaling ratio, and the process of calculating the real geographic coordinates of the real geographic location at the robot-position distance using the robot coordinates refers to determining the GPS coordinates of the real geographic location using the relative position between the real geographic location and the robot coordinates.

[0121] Furthermore, the embodiment of the present invention generates a three-dimensional virtual point cloud under the real geographic coordinates for screening point cloud data to reduce the amount of point cloud data.

[0122] In one embodiment of the present invention, the generating of the three-dimensional virtual point cloud under the real geographic coordinates includes: calculating the real geographic distance between every two real geographic coordinates under the real geographic coordinates; and calculating the three-dimensional virtual point cloud under the real geographic coordinates based on the real geographic distance using the following formula:

[0123] ;

[0124] in, represents a three-dimensional virtual point cloud, Represents the real geographic coordinates, Indicates the reduction ratio from the real world to the virtual world. express The real geographical distance to other real geographical coordinates, represents the distance threshold, Indicates compliance of The number of Indicates the quantity threshold.

[0125] S5. Use the three-dimensional virtual point cloud to construct a virtual three-dimensional map of the real geographical location, and use the virtual three-dimensional map as a virtual map AI generation result of the real geographical location.

[0126] The embodiment of the present invention constructs a virtual three-dimensional map of the real geographical location by utilizing the three-dimensional virtual point cloud, so as to convert triangular facets constructed by other technologies into the triangular mesh constructed by the present invention. The triangular mesh can greatly reduce the amount of data when constructing triangular facets, thereby improving the efficiency of map construction.

[0127] In one embodiment of the present invention, the use of the three-dimensional virtual point cloud to construct the virtual three-dimensional map of the real geographical location includes: calculating the virtual point cloud distance between each three-dimensional virtual point cloud in the three-dimensional virtual point cloud; selecting the shortest point cloud distance from the virtual point cloud distances, and obtaining the point cloud distance endpoint of the shortest point cloud distance from the three-dimensional virtual point cloud; based on the point cloud distance endpoints, calculating the angle of a triangle with the shortest point cloud distance as a side using the following formula:

[0128] ;

[0129] in, represents the angle of a triangle, Indicates the point cloud distance from the left endpoint. represents the oth point cloud in the three-dimensional virtual point cloud except the point cloud distance endpoint, Indicates the right endpoint of the point cloud distance endpoint. Indicated by point The vector of the line segment formed, Indicated by point The vector of the line segment formed, express The length of the vector, express The length of the vector;

[0130] Based on the triangle angle, the point cloud to be connected is selected from the three-dimensional virtual point cloud using the following formula:

[0131] ;

[0132] ;

[0133] in, Indicates the point cloud to be connected. A function representing the triangle side corresponding to the triangle angle, , , represents the coordinates of one end of the triangle side, , , represents the coordinates of the other end of the triangle side, , , represents the unknown variable, Indicates the distance endpoint of the point cloud is removed from the 3D virtual point cloud. Any remaining point cloud other than Indicates that Substitute the coordinates of into the function of the triangle side to get the sign of the value, express The minimum corresponding The sign of the value obtained by substituting the coordinates of the triangle into the function of the side of the triangle;

[0134] The point cloud to be connected is used to construct a virtual three-dimensional map corresponding to the three-dimensional virtual point cloud.

[0135] Furthermore, the process of constructing a virtual three-dimensional map corresponding to the three-dimensional virtual point cloud using the point cloud to be connected refers to gradually screening the point cloud to be connected each time through the above-mentioned process of selecting the point cloud to be connected from the three-dimensional virtual point cloud, and connecting the triangles corresponding to the triangle angles with the point cloud to be connected in sequence according to the order of screening until all the point clouds are connected, and the virtual three-dimensional map can be obtained.

[0136] It can be seen that the embodiment of the present invention stitches geographic images between each of the registered geographic images to stitch images of the same area taken at different angles into an image that can display 360 degrees of the same area. Further, the embodiment of the present invention detects non-map targets in the stitched geographic images to identify whether there are impurities other than buildings and roads in the stitched geographic images. Further, the embodiment of the present invention uses the hidden representation vector to complete the de-redundant image to complete the missing image when the module in the image is missing after other dynamic objects or garbage other than buildings and the ground are removed from the image. Further, the embodiment of the present invention generates a three-dimensional virtual point cloud under the real geographic coordinates to filter the point cloud data and reduce the amount of point cloud data. The embodiment of the present invention constructs a virtual three-dimensional map of the real geographic location by using the three-dimensional virtual point cloud to convert triangular facets constructed by other technologies into triangular meshes constructed by the present invention. The triangular mesh can greatly reduce the amount of data when constructing triangular facets, thereby improving the efficiency of map construction. Therefore, the virtual map AI generation method and system proposed in the embodiment of the present invention can improve the efficiency of virtual map AI generation.

[0137] like Figure 2The figure shows a functional module diagram of the virtual map AI generation system of the present invention.

[0138] The virtual map AI generation system 200 of the present invention can be installed in an electronic device. According to the functions implemented, the virtual map AI generation system can include an image stitching module 201, an image de-redundancy module 202, an image completion module 203, a point cloud generation module 204 and a result construction module 205. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0139] In the embodiment of the present invention, the functions of each module / unit are as follows:

[0140] The image stitching module 201 is used to use a mobile robot to scan geographic image data at a real geographic location, perform geographic image registration between each geographic image data in the geographic image data to obtain a registered geographic image, and perform geographic image stitching between each registered geographic image in the registered geographic image to obtain a stitched geographic image;

[0141] The image de-redundancy module 202 is used to identify the dynamic object area in the stitched geographic image, detect the non-map target in the stitched geographic image, and remove the dynamic object area and the non-map target from the stitched geographic image to obtain a de-redundancy image;

[0142] The image completion module 203 is used to cut the de-redundant image into image grid regions, perform linear transformation on the image grid regions to obtain linear transformation vectors, extract hidden representation vectors from the linear transformation vectors, and use the hidden representation vectors to complete the de-redundant image to obtain a completed image;

[0143] The point cloud generation module 204 is used to obtain the robot coordinates of the mobile robot, collect the camera shooting parameters of the mobile robot, calculate the real geographic coordinates of the real geographic location from the supplemented image based on the robot coordinates and the camera shooting parameters, and generate a three-dimensional virtual point cloud under the real geographic coordinates;

[0144] The result construction module 205 is used to construct a virtual three-dimensional map of the real geographical location using the three-dimensional virtual point cloud, and use the virtual three-dimensional map as the virtual map AI generation result of the real geographical location.

[0145] In detail, each module in the virtual map AI generation system 200 in the embodiment of the present invention is used in the same manner as described above. Figure 1The virtual map AI generation method described in the present invention has the same technical means and can produce the same technical effects, so I will not go into details here.

[0146] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A virtual map AI generation method, characterized in that: The method comprises: Using a mobile robot to scan geographic image data at a real geographic location, performing geographic image registration between each geographic image data in the geographic image data to obtain a registered geographic image, and performing geographic image splicing between each registered geographic image in the registered geographic image to obtain a spliced ​​geographic image; Identifying a dynamic object region in the stitched geographic image, detecting a non-map target in the stitched geographic image, and removing the dynamic object region and the non-map target from the stitched geographic image to obtain a de-redundant image; Cutting the de-redundant image into image grid regions, performing linear transformation on the image grid regions to obtain linear transformation vectors, extracting hidden representation vectors in the linear transformation vectors, and completing the de-redundant image using the hidden representation vectors to obtain a completed image; Acquire the robot coordinates of the mobile robot, collect the camera shooting parameters of the mobile robot, calculate the real geographic coordinates of the real geographic location from the completed image based on the robot coordinates and the camera shooting parameters, and generate a three-dimensional virtual point cloud under the real geographic coordinates; A virtual three-dimensional map of the real geographical location is constructed using the three-dimensional virtual point cloud, and the virtual three-dimensional map is used as a virtual map AI generation result of the real geographical location.

2. The method according to claim 1, characterized in that The step of performing geographic image registration on each of the geographic image data to obtain a registered geographic image comprises: Dividing the geographic image data into a reference image and a target image; constructing a reference coordinate system of the reference image; Acquire a first reference coordinate of the reference image and a second reference coordinate of the reference image in the reference coordinate system, and acquire a first target coordinate of the target image; Based on the first reference coordinate and the second reference coordinate, the first target coordinate is converted into the second target coordinate in the reference coordinate system using the following formula: ; in, represents the second target coordinates, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, represents the number of pixel columns of matching pairs in the geographic image data, represents the number of rows of pixels that match pairs in the geographic image data, represents the first target coordinates, Indicates the coordinates of the pixel point in the first row and first column that constitutes a matching point pair between the target image and the reference image. Indicates the first row of the matching point pair between the target image and the reference image. Column pixel coordinates, Indicates the first matching point pair between the target image and the reference image. Line Column pixel coordinates, Indicates the first matching point pair between the target image and the reference image. Line Column pixel coordinates, represents the first reference coordinate, Represents the coordinates of the pixel point in the first row and first column that constitutes a matching point pair between the reference image and the target image. Indicates the first row of the matching point pair between the reference image and the target image. Column pixel coordinates, Indicates the first matching point pair between the reference image and the target image. Line Column pixel coordinates, Indicates the first matching point pair between the reference image and the target image. Line Column pixel coordinates, represents the coordinate mapping matrix between the first reference coordinate and the first target coordinate, represents the second reference coordinate, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express The coordinates in the reference coordinate system, express coordinates in the reference coordinate system; The registered geographic image is determined using the second target coordinates.

3. The method according to claim 1, characterized in that The step of performing geographic image stitching between each of the registered geographic images to obtain a stitched geographic image includes: identifying image overlap regions and image non-overlap regions between each of the registered geographic images; Based on the image overlapping area and the image non-overlapping area, geographic image stitching is performed between each of the registered geographic images using the following formula to obtain a stitched geographic image: ; in, represents a mosaic of geographic images, represents the concatenation function, a reference registered geo-image representing the non-overlapping regions of the images in the registered geo-image, The target registered geo-image representing the non-overlapping regions of the images in the registered geo-image, represents the coordinate mapping matrix between the first reference coordinate and the first target coordinate, and represents the weight parameter, Represents the stitching result of the image overlapping areas in the registered geographic image.

4. The method according to claim 1, characterized in that: The detecting of non-map objects in the stitched geographic image comprises: Calculating a geographic grayscale map of the stitched geographic image; Calculating the grayscale gradient in the geographic grayscale map using a preset Sobel operator to obtain a geographic gradient map; Binarizing the geographic gradient map using a preset threshold segmentation method to obtain a binary gradient map; Fill the target area in the binary gradient image using a preset image morphology to obtain a filled target area; Calculate the center point of the target filling area; Calculating a boundary-center distance between a region boundary of the filling target region and a center point of the region; When there is a coincidence between two boundary-center distances in the boundary-center distances, determining whether the boundary-center distances are on the same straight line; When the boundary-center distance is on the same straight line, determining that the filling target area is not the non-map target; When the boundary-center distances are not on the same straight line, determining whether every two boundary-center distances in the boundary-center distances are consistent, and when every two boundary-center distances in the boundary-center distances are consistent, determining that the filling target area is not the non-map target; When there is inconsistency between every two boundary-center distances in the boundary-center distances, the filling target area is determined to be the non-map object.

5. The method according to claim 1, characterized in that The linear transformation of the image grid area to obtain a linear transformation vector includes: The image grid area is position-encoded using the following formula to obtain a position encoding vector: ; in, represents the position encoding vector, represents the position encoding layer, represents the i-th image grid area; The image grid area is linearly mapped using the following formula to obtain a linear mapping vector: ; in, represents a linear mapping vector, represents a linear mapping layer, represents the i-th image grid area; The position encoding vector and the linear mapping vector are concatenated using the following formula to obtain a linear transformation vector: ; in, represents the linear transformation vector, represents the position encoding vector, represents a linear mapping vector, Represents the concatenation function.

6. The method according to claim 1, characterized in that The method of using the hidden representation vector to complete the de-redundant image to obtain a completed image includes: Based on the hidden representation vector, the completed image is generated using the following formula: ; in, represents the completed image, represents the fully connected layer, represents the sequence labeling model based on the self-attention mechanism, represents the hidden representation vector.

7. The method according to claim 1, characterized in that The calculating the real geographic coordinates of the real geographic location from the completed image based on the robot coordinates and the camera shooting parameters includes: Calculating a robot-position distance between the mobile robot and the real geographical location using the camera shooting parameters; The real geographic coordinates of the real geographic location at the robot-location distance are calculated using the robot coordinates.

8. The method according to claim 1, characterized in that The generating of the three-dimensional virtual point cloud under the real geographic coordinates comprises: Calculate the real geographical distance between every two real geographical coordinates under the real geographical coordinates; Based on the real geographical distance, the three-dimensional virtual point cloud under the real geographical coordinates is calculated using the following formula: ; in, Represents a three-dimensional virtual point cloud, Represents the real geographic coordinates, Indicates the reduction ratio from the real world to the virtual world. express The real geographical distance to other real geographical coordinates, represents the distance threshold, Indicates compliance of The number of Indicates the quantity threshold.

9. The method according to claim 1, characterized in that: The method of constructing a virtual three-dimensional map of the real geographical location by using the three-dimensional virtual point cloud comprises: Calculating a virtual point cloud distance between each three-dimensional virtual point cloud in the three-dimensional virtual point cloud; Selecting the shortest point cloud distance from the virtual point cloud distances, and obtaining the point cloud distance endpoint of the shortest point cloud distance from the three-dimensional virtual point cloud; Based on the point cloud distance endpoints, the angle of the triangle with the shortest point cloud distance as the side is calculated using the following formula: ; in, represents the angle of a triangle, Indicates the point cloud distance from the left endpoint. represents the oth point cloud in the three-dimensional virtual point cloud except the point cloud distance endpoint, Indicates the right endpoint of the point cloud distance endpoint. Indicated by point The vector of the line segment formed, Indicated by point The vector of the line segment formed, express The length of the vector, express The length of the vector; Based on the triangle angle, the point cloud to be connected is selected from the three-dimensional virtual point cloud using the following formula: ; in, Indicates the point cloud to be connected. A function representing the triangle side corresponding to the triangle angle, , , represents the coordinates of one end of the triangle side, , , represents the coordinates of the other end of the triangle side, , , represents the unknown variable, Indicates the distance endpoint of the point cloud is removed from the 3D virtual point cloud. Any remaining point cloud other than Indicates that Substitute the coordinates of into the function of the triangle side to get the sign of the value, express The minimum corresponding The sign of the value obtained by substituting the coordinates of the triangle into the function of the side of the triangle; The point cloud to be connected is used to construct a virtual three-dimensional map corresponding to the three-dimensional virtual point cloud.

10. A virtual map AI generation system, characterized in that: The system comprises: An image stitching module is used to scan geographic image data at a real geographic location using a mobile robot, perform geographic image registration between each geographic image data in the geographic image data to obtain a registered geographic image, and perform geographic image stitching between each registered geographic image in the registered geographic image to obtain a stitched geographic image; An image de-redundancy module, used for identifying a dynamic object region in the stitched geographic image, detecting a non-map target in the stitched geographic image, and removing the dynamic object region and the non-map target from the stitched geographic image to obtain a de-redundancy image; An image completion module, used for cutting the de-redundant image into image grid regions, performing linear transformation on the image grid regions to obtain linear transformation vectors, extracting hidden representation vectors in the linear transformation vectors, and completing the de-redundant image using the hidden representation vectors to obtain a completed image; a point cloud generation module, configured to obtain the robot coordinates of the mobile robot, collect the camera shooting parameters of the mobile robot, calculate the real geographic coordinates of the real geographic location from the supplemented image based on the robot coordinates and the camera shooting parameters, and generate a three-dimensional virtual point cloud under the real geographic coordinates; A result construction module is used to construct a virtual three-dimensional map of the real geographical location using the three-dimensional virtual point cloud, and use the virtual three-dimensional map as the virtual map AI generation result of the real geographical location.