Cloud technology-based positioning method and device
By retrieving point cloud data in the three-dimensional model database for image positioning, the problem of deploying tags in the positioning area in the existing technology is solved, and the positioning efficiency and accuracy are improved.
Patent Information
- Application Number
- PCT/CN2023/136261
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-14
- Filing Date
- 2023-12-04
- Publication Date
- 2024-10-24
AI Technical Summary
Existing image positioning methods rely on deploying positioning tags within the positioning area, resulting in a complicated and inefficient positioning process.
Using a positioning method based on cloud technology, image positioning is performed by retrieving point cloud data that matches the similarity of the image data to be positioned in the three-dimensional model database, reducing the amount of data processing and improving positioning efficiency and convenience.
It achieves image positioning without deploying positioning tags in the positioning area, improves positioning efficiency and accuracy, and simplifies the processing process.
Smart Images

Figure CN2023136261_24102024_PF_FP_ABST
Abstract
Description
Positioning method and device based on cloud technology Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a positioning method and device based on cloud technology. Background Art
[0002] Object positioning is often performed using methods such as network positioning, satellite positioning, or image positioning. In the image positioning scenario, it is necessary to take a picture within a set area, and then perform positioning based on the picture. However, the picture needs to contain a positioning tag (such as an image QR code) deployed in the area in advance, and the positioning tag is used to indicate the determined position of the positioning tag in the area. According to the positioning tag in the picture, the relative position of the position of the taken picture and the positioning tag can be determined, and then the position of the taken picture within the area can be obtained based on the relative position and the determined position of the positioning tag. Since the image positioning method relies on the positioning tags deployed in the area, the positioning tags need to be deployed in the set area before image positioning is performed, which is highly complex. Therefore, how to provide a more convenient positioning method has become a problem that needs to be solved urgently.
[0003] Summary of the Invention
[0004] The present application provides a positioning method and device based on cloud technology to solve the problem that image positioning relies on positioning tags deployed in the area contained in the image, resulting in complex image positioning and low positioning efficiency.
[0005] In the first aspect, the present application provides a positioning method based on cloud technology. The positioning method can be applied to a positioning system or to a computing device that supports the positioning system to implement the positioning method, for example, the computing device can be a server or a terminal. The positioning method includes: acquiring image data to be positioned, and retrieving the image data to be positioned in a three-dimensional model database to obtain first point cloud data that matches the similarity with the image data to be positioned. Furthermore, based on the points with position information in the first point cloud data, the image data to be positioned is aligned to obtain the first position corresponding to the image data to be positioned. The image data to be positioned includes an image or a video, and the three-dimensional model database includes a plurality of point cloud data obtained by sampling a three-dimensional model of the location to which the image data to be positioned belongs, and the point cloud data is used to indicate: points with position information within the sampling area in the three-dimensional model.
[0006] In the present application, first point cloud data that matches the similarity of the image data to be located is retrieved from the three-dimensional model database, so that point cloud data corresponding to the partial area that matches the image data to be located is determined from the entire three-dimensional model database. Then, the first point cloud data is used to align with the image data to be located, so that image positioning is performed using the point cloud data of the partial area in the three-dimensional model, which reduces the amount of data to be processed and thus improves positioning efficiency. Moreover, since each point in the point cloud data has position information, the first pose corresponding to the image data to be located can be directly derived using the first point cloud data, thus avoiding the problem of deploying positioning tags in the positioning area before performing image positioning, which leads to a complicated processing process, thereby improving the convenience of positioning and further improving positioning efficiency.
[0007] For example, the location to which the image data to be positioned belongs may be the entire building or a partial area of the building determined by the user. The first pose includes the position and angle of the image data to be positioned in the three-dimensional model.
[0008] In one possible implementation, the positioning method further includes: receiving a sampling density parameter, and dividing the sampling area of the three-dimensional model data of the location to which the image data to be located belongs into multiple sub-sampling areas based on the sampling density parameter, and then sampling point cloud data in the multiple sub-sampling areas respectively to obtain a three-dimensional model database.
[0009] In the present application, by dividing the sampling area of the three-dimensional model into multiple sub-sampling areas, and then obtaining the point cloud data in the three-dimensional model database corresponding to each sub-sampling area, it is beneficial to use multiple small-scale point cloud data for processing when searching and aligning according to the image to be positioned, that is, using a small-scale data to search and align from multiple small-scale data. This avoids the problem of using the point cloud data corresponding to the sampling area of the entire three-dimensional model to process when aligning the image data to be positioned, that is, using a small-scale data to align from the entire large-scale data, which will reduce the registration efficiency and accuracy. This improves the efficiency and accuracy of aligning the image data to be positioned using the semantic data corresponding to each sub-sampling area.
[0010] In a possible scenario, the positioning method further includes: rendering the multiple sub-sampling areas respectively to obtain image data and semantic data corresponding to each sub-sampling area in the three-dimensional model database.
[0011] In one possible implementation, registering the image data to be positioned based on points with position information in the first point cloud data to obtain a first pose corresponding to the image data to be positioned includes: generating a processing interface corresponding to the first point cloud data, receiving a trigger operation from a user on the processing interface, and then, in response to the trigger operation, determining the point cloud data to be registered selected by the user from the first point cloud data. Registering the image data to be positioned based on points with position information in the point cloud data to be registered to obtain a first pose corresponding to the image data to be positioned.
[0012] In the present application, due to the user's triggering operation on the processing interface corresponding to the first point cloud data, the point cloud data to be registered is determined from the first point cloud data, thereby reducing the amount of point cloud data during subsequent registration, thereby reducing the amount of processed data and improving positioning efficiency.
[0013] For example, the processing interface may include a distribution heat map of the first point cloud data, which indicates the density of points with location information of the first point cloud data located in the three-dimensional model at the location of the image data to be located. The distribution heat map also indicates the density of the viewpoints corresponding to the first point cloud data in the three-dimensional model.
[0014] For another example, the processing interface may be the first point cloud data or image data corresponding to the first point cloud data.
[0015] For another example, the processing interface may be the position of the viewpoint corresponding to the first point cloud data in the three-dimensional model.
[0016] In one possible implementation, the positioning method further includes: upon receiving a user-triggered comparative display instruction, displaying the rendered image data of the 3D model at the first pose and the image data to be positioned comparatively. Alternatively, upon receiving a user-triggered separate display instruction, displaying the rendered image data of the 3D model at the first pose or the image data to be positioned separately.
[0017] In this application, since both the image data to be positioned and the rendered image data correspond to the first pose, the rendered image data and the image data to be positioned partially overlap. By comparing or separately displaying the image data to be positioned and the rendered image data, the difference between the image data to be positioned and the rendered image data can be obtained, which not only enables visualization but also facilitates the user to determine the progress of the task.
[0018] In one possible implementation, the three-dimensional model database further includes image data corresponding to the point cloud data, the image data being used to indicate a planar image within a sampling area in the three-dimensional model of the location to which the image data to be located belongs. After registering the image data to be located based on points having positional information in the first point cloud data to obtain a first pose corresponding to the image data to be located, the positioning method further includes extracting first multi-level features of the image data to be located and second multi-level features of the planar image corresponding to the first point cloud data, and then calibrating the first pose to obtain a second pose based on the first multi-level features and the second multi-level features. The multi-level features are used to indicate a combination of features obtained after passing through feature extraction networks with different numbers of layers.
[0019] In this application, by optimizing the first posture to obtain the second posture, a more accurate position and angle of the image data to be positioned in the three-dimensional model is achieved, and more precise positioning of the image data to be positioned is achieved, thereby improving the accuracy of positioning.
[0020] In one possible implementation, the three-dimensional model database also includes semantic data corresponding to the point cloud data, and the semantic data is used to indicate: semantic information within a sampling area in the three-dimensional model of the location to which the image data to be located belongs, and the image data to be located is retrieved in the three-dimensional model database to obtain first point cloud data that matches the similarity with the image data to be located, including: determining the semantic information of the image data to be located, retrieving the semantic information of the image data to be located in the three-dimensional model database, and obtaining first semantic data that matches the similarity with the semantic information of the image data to be located, and then determining the first point cloud data corresponding to the first semantic data based on the relationship between the point cloud data and the semantic data.
[0021] In this application, a 3D model database is searched based on the semantic information of the image data to be located. This allows for retrieval based on the type of content in the image data to be located and its relative positional characteristics within the image data to obtain point cloud data that matches the image data to be located. This avoids using all point cloud data for image point cloud registration, reduces the computational effort involved, and thus increases the speed of image point cloud registration and positioning efficiency.
[0022] In one possible implementation, the image data to be located is retrieved from a three-dimensional model database to obtain first point cloud data that matches the similarity with the image data to be located, including: determining point cloud information of the image data to be located, retrieving point cloud information of the image data to be located from the three-dimensional model database, and obtaining first point cloud data that matches the similarity with the point cloud information of the image data to be located.
[0023] In this application, a 3D model database is retrieved based on the point cloud information of the image data to be located, and points with location information in the point cloud information are matched with points with location information in multiple point cloud data included in the 3D model database to obtain the first point cloud data. This means that data matching a single small range of data is retrieved from multiple small ranges of data, reducing the computational complexity of point cloud registration and thereby increasing the speed of point cloud registration. Furthermore, since both the point cloud information and the point cloud data contain points with location information, matching based on each point can increase the speed of point cloud data registration, thereby improving positioning efficiency.
[0024] In a second aspect, the present application provides a cloud-based positioning device, which is applied to a computing device or a computing device that supports the positioning system to implement the positioning method. The positioning device includes various modules for executing the positioning method in the first aspect or any optional implementation of the first aspect. For example, the positioning device includes an acquisition module, a retrieval module, and a registration module. Among them:
[0025] The acquisition module is used to acquire the image data to be located, wherein the image data to be located includes pictures or videos.
[0026] The retrieval module is configured to retrieve the image data to be located from a 3D model database to obtain first point cloud data that has a similarity match with the image data to be located. The 3D model database includes a plurality of point cloud data obtained by sampling a 3D model of the location to which the image data to be located belongs. The point cloud data indicates points with location information within the sampling area of the 3D model.
[0027] The registration module is used to register the image data to be positioned based on the points with position information in the first point cloud data to obtain the first position corresponding to the image data to be positioned.
[0028] In one possible implementation, the apparatus further includes a sampling module configured to receive a sampling density parameter, divide a sampling area of the three-dimensional model of the location to which the image data to be located belongs into a plurality of sub-sampling areas based on the sampling density parameter, and sample point cloud data in each of the plurality of sub-sampling areas to obtain a three-dimensional model database.
[0029] In one possible implementation, the above-mentioned registration module is specifically used to generate a processing interface corresponding to the first point cloud data and receive a trigger operation of the processing interface by the user; in response to the trigger operation, the point cloud data to be registered selected by the user from the first point cloud data is determined, and the image data to be positioned is registered according to the points with position information in the point cloud data to be registered to obtain the first pose corresponding to the image data to be positioned.
[0030] In one possible implementation, the processing interface includes a distribution heat map of the first point cloud data, which is used to indicate the density of points with location information of the first point cloud data in the three-dimensional model of the location to which the image data to be located belongs.
[0031] In one possible implementation, the positioning device further includes a display module. The display module is configured to, upon receiving a user-triggered comparative display instruction, display the rendered image data of the 3D model at the first pose and the image data to be positioned comparatively; or, upon receiving a user-triggered separate display instruction, display the rendered image data of the 3D model at the first pose or the image data to be positioned separately.
[0032] In one possible implementation, the 3D model database also includes image data corresponding to the point cloud data, the image data being used to indicate a planar image within a sampling area of the 3D model at the location to which the image data to be located belongs. The device also includes a calibration module. The calibration module is used to extract first multi-level features of the image data to be located and second multi-level features of the planar image corresponding to the first point cloud data, and to calibrate the first pose to obtain a second pose based on the first multi-level features and the second multi-level features. The multi-level features are used to indicate a feature combination obtained after passing through a feature extraction network with different layers.
[0033] In one possible implementation, the three-dimensional model database also includes semantic data corresponding to the point cloud data, and the semantic data is used to indicate: semantic information within a sampling area in the three-dimensional model of the location to which the image data to be located belongs. The above-mentioned retrieval module is specifically used to determine the semantic information of the image data to be located, retrieve the semantic information of the image data to be located in the three-dimensional model database, and obtain first semantic data that matches the similarity of the semantic information of the image data to be located; and, based on the correspondence between the point cloud data and the semantic data, determine the first point cloud data corresponding to the first semantic data.
[0034] In a possible implementation, the retrieval module is specifically used to determine the point cloud information of the image data to be located, retrieve the point cloud information of the image data to be located in the three-dimensional model database, and obtain the first point cloud data that matches the point cloud information of the image data to be located in similarity.
[0035] In a third aspect, the present application provides a computing device cluster, comprising at least one computing device, each computing device including a processor and a memory. The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the method disclosed in the first aspect and any possible implementation of the first aspect.
[0036] In a fourth aspect, the present application provides a computer program product comprising instructions, which, when executed by a computer device cluster, enables the computer device cluster to implement the method disclosed in the first aspect and any possible implementation manner of the first aspect.
[0037] In a fifth aspect, the present application provides a computer-readable storage medium comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method disclosed in the first aspect and any possible implementation of the first aspect.
[0038] The beneficial effects of the second to fifth aspects above can be referred to the description of the first aspect or any implementation of the first aspect, and will not be repeated here. Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] FIG1 is a schematic diagram of the structure of a neural network provided by this application;
[0040] FIG2 is a schematic diagram of the structure of a convolutional neural network provided by this application;
[0041] FIG3 is a schematic diagram of a computer system provided by the present application;
[0042] FIG4 is a flow chart of the positioning method provided by this application;
[0043] FIG5 is a flow chart of the first pose optimization method provided by this application;
[0044] FIG6 is a display interface diagram 1 provided by this application;
[0045] FIG7 is a second display interface diagram provided by this application;
[0046] FIG8 is a flowchart of the image positioning method provided by the present application;
[0047] FIG9 is a flow chart of the video positioning method provided by this application;
[0048] FIG10 is a second flow chart of the image positioning method provided by this application;
[0049] FIG11 is a schematic diagram of the camera structure provided by this application;
[0050] FIG12 is a structural diagram of a cloud-based positioning device provided by the present application;
[0051] FIG13 is a second structural diagram of a positioning device based on cloud technology provided by the present application;
[0052] FIG14 is a schematic diagram of the structure of a computing device provided in this application. DETAILED DESCRIPTION
[0053] To facilitate understanding, the technical terms involved in this application are first introduced.
[0054] Building Information Model (BIM) is a method of establishing a virtual three-dimensional model of a construction project and using digital technology to provide the three-dimensional model with a complete and actual construction project information database. The construction project information database not only contains geometric information, professional attributes and status information describing the building components, but also contains status information of non-component objects (such as space and motion behavior). In other words, in this application, the BIM is used to determine the image data of the three-dimensional model of the construction project, the semantic information of each component in the three-dimensional model (i.e., the semantic data corresponding to the three-dimensional model), and the point cloud information (i.e., the point cloud data corresponding to the three-dimensional model).
[0055] Augmented reality (AR) is a technology that cleverly integrates virtual information with the real environment. It simulates computer-generated text, images, 3D models, music, and videos, and then applies them to the real environment. The virtual information and the real environment complement each other, thereby enhancing the real environment.
[0056] A visual positioning system (VPS) calculates the position of a camera or a webcam in a real environment through visual information (images captured by the camera or a webcam).
[0057] Structure from motion (SfM) is a technique that can recover the position of the camera or video camera that captured multiple images or videos offline. In this application, SfM is used to construct image point cloud data from multiple images or videos and calculate the relative pose between images.
[0058] Simultaneous localization and mapping (SLAM) is a technology that can recover the positions of the camera or camera that captured multiple images or videos online from multiple images or videos, and incrementally build maps based on these multiple images or videos. In this application, SLAM is used to construct image point cloud data from multiple images or videos and calculate the relative pose between images.
[0059] Semantic graph, image data used to represent the type of content in an image and the relative positions of multiple contents.
[0060] Point cloud data refers to a dataset of points within a specific coordinate system. This point cloud data includes the coordinate information of each point. In BIM, each point in the point cloud can be assigned object type information based on the semantic information of each component.
[0061] A neural network can be composed of neurons, which can be represented by x s The output of this operation unit satisfies the following formula 1.
[0062] Where, s = 1, 2, ... n, n is a natural number greater than 1, W s is x s The weight of the neuron, b is the bias of the neuron. f is the activation function of the neuron, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neuron into the output signal. The output signal of the activation function can be used as the input of the next layer, and the activation function can be a sigmoid function. A neural network is a network formed by connecting multiple single neurons mentioned above, that is, the output of one neuron can be the input of another neuron. The input of each neuron can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neurons. The weight represents the strength of the connection between different neurons. The weight determines the influence of the input on the output. A weight close to 0 means that changing the input does not change the output. A negative weight means that increasing the input reduces the output.
[0063] As shown in Figure 1, Figure 1 is a schematic diagram of the structure of a neural network provided by the present application. The neural network 100 includes N processing layers, where N is an integer greater than or equal to 3. The first layer of the neural network 100 is the input layer 110, which is responsible for receiving input signals, and the last layer of the neural network 100 is the output layer 130, which is responsible for outputting the processing results of the neural network. The other layers excluding the first and last layers are intermediate layers 140, and these intermediate layers 140 together constitute the hidden layer 120. Each intermediate layer 140 in the hidden layer 120 can both receive input signals and output signals. The hidden layer 120 is responsible for the processing of the input signal. Each layer represents a logical level of signal processing. Through multiple layers, the data signal can be processed by multiple levels of logic.
[0064] In some feasible embodiments, the input signal of the neural network can be a signal in various forms such as a video signal, a voice signal, a text signal, an image signal or a temperature signal. The video signal or image signal can be various sensor signals such as an image signal recorded or photographed by a camera (image sensor). The input signal of the neural network also includes various other computer-processable engineering signals, which are not listed here one by one. If a neural network is used to perform deep learning on the image signal, the quality of the image processed by the neural network can be improved.
[0065] A convolutional neural network (CNN) is a deep neural network with a convolutional architecture. A CNN consists of a feature extractor consisting of convolutional layers and subsampling layers. This feature extractor can be viewed as a filter, and the convolution process can be thought of as convolving an input image or feature map with a trainable filter. A convolutional layer is the layer of neurons in a CNN that performs convolution on the input signal. Within a CNN's convolutional layer, a neuron may only connect to a subset of neurons in adjacent layers. A convolutional layer can output several feature maps, which are intermediate results of the CNN's computational process. Neurons in the same feature map share weights, specifically the convolution kernel. Shared weights can be understood as extracting image information in a position-independent manner. In other words, the statistical information from one part of the image is the same as from other parts. This means that image information learned in one part can also be applied to other parts. Therefore, the same learned image information is available at all locations in the image. In the same convolutional layer, multiple convolution kernels can be used to extract different image information. Generally speaking, the more convolution kernels there are, the richer the image information reflected by the convolution operation.
[0066] Convolution kernels can be initialized as matrices of random size, and during the training process of the convolutional neural network, the convolution kernels can be learned to obtain reasonable weights. In addition, the direct benefit of shared weights is that they reduce the number of connections between the layers of the convolutional neural network, while also reducing the risk of overfitting.
[0067] For example, as shown in FIG2 , which is a schematic diagram of the structure of a convolutional neural network provided by the present application, the convolutional neural network 200 may include an input layer 210 , a convolutional layer / pooling layer 220 (wherein the pooling layer is optional), and a multi-layer perceptron 230 .
[0068] The convolution / pooling layer 220 may include, for example, layers 221 to 226. In one example, layer 221 may be a convolutional layer, layer 222 may be a pooling layer, layer 223 may be a convolutional layer, layer 224 may be a pooling layer, layer 225 may be a convolutional layer, and layer 226 may be a pooling layer. In another example, layers 221 and 222 may be convolutional layers, layer 223 may be a pooling layer, layers 224 and 225 may be convolutional layers, and layer 226 may be a pooling layer. The output of a convolutional layer may serve as the input to a subsequent pooling layer, or as the input to another convolutional layer to continue the convolution operation.
[0069] Taking convolutional layer 221 as an example, the internal working principle of a convolutional layer is introduced.
[0070] Convolution layer 221 may include multiple convolution operators, also known as kernels. In image processing, a convolution operator functions as a filter that extracts specific information from an input image matrix. A convolution operator is essentially a weight matrix, which is typically predefined. The size of this weight matrix is related to the size of the image. It is important to note that the depth dimension of the weight matrix is the same as the depth dimension of the input image. During the convolution operation, the weight matrix extends across the entire depth of the input image. Therefore, convolution with a single weight matrix produces a convolution output with a single depth dimension. However, in most cases, a single weight matrix is not used. Instead, multiple weight matrices of the same size (rows × columns) are applied, i.e., multiple homogeneous matrices. The outputs of each weight matrix are stacked to form the depth dimension of the convolved image. Different weight matrices can be used to extract different features from an image. For example, one weight matrix can be used to extract edge information, another weight matrix can be used to extract specific colors, and yet another weight matrix can be used to blur unwanted noise in the image. The multiple weight matrices have the same size (row × column), and the feature maps extracted by the multiple weight matrices of the same size also have the same size. The multiple feature maps of the same size extracted are then merged to form the output of the convolution operation.
[0071] The weight values in these weight matrices need to be obtained through a lot of training in practical applications. The weight matrices formed by the weight values obtained through training can be used to extract information from the input image, so that the convolutional neural network 200 can make correct predictions.
[0072] When convolutional neural network 200 has multiple convolutional layers, the initial convolutional layers (e.g., layer 221) often extract more general features, which can also be called low-level features. As the depth of convolutional neural network 200 increases, the features extracted by later convolutional layers (e.g., layer 226) become increasingly complex, such as high-level semantic features. Features with higher semantics are more applicable to the problem being solved.
[0073] Because it's often necessary to reduce the number of training parameters, pooling layers are often periodically introduced after convolutional layers. In the example of convolutional / pooling layer 220 in Figure 2, layers 221 through 226 can be composed of a single convolutional layer followed by a single pooling layer, or multiple convolutional layers followed by one or more pooling layers. During image processing, the sole purpose of a pooling layer is to reduce the spatial size of an image. A pooling layer can include an average pooling operator and / or a max pooling operator, which are used to subsample the input image to produce a smaller image. The average pooling operator calculates the average value of pixel values within a specific range as the average pooling result. The max pooling operator takes the pixel with the largest value within a specific range as the max pooling result. Furthermore, just as the size of the weight matrix used in the convolutional layer should be related to the image size, the operators in the pooling layer should also be related to the image size. The output image size after processing by the pooling layer can be smaller than the size of the image input to the pooling layer. Each pixel in the output image of the pooling layer represents the average or maximum value of the corresponding subregion of the image input to the pooling layer.
[0074] After being processed by the convolution layer / pooling layer 220, the convolution neural network 200 is still insufficient to output the required output information. Because as mentioned above, the convolution layer / pooling layer 220 extracts features and reduces the parameters brought by the input image. However, in order to generate the final output information (the required class information or other relevant information), the convolution neural network 200 needs to use a multi-layer perceptron 230 to generate one or a group of outputs of the required number of classes. Therefore, the multi-layer perceptron 230 may include multiple hidden layers (layers 231, 232 to 23n as shown in Figure 2) and an output layer 240. The parameters contained in the multiple hidden layers can be pre-trained based on relevant training data of a specific task type. For example, the task type may include image recognition, image classification, image super-resolution reconstruction, etc.
[0075] After the multiple hidden layers in the multi-layer perceptron 230, that is, the last layer of the entire convolutional neural network 200 is the output layer 240. The output layer 240 has a loss function similar to the classification cross entropy, which is specifically used to calculate the prediction error. Once the forward propagation of the entire convolutional neural network 200 (as shown in Figure 2, the propagation from layer 210 to layer 240 is forward propagation) is completed, the back propagation (as shown in Figure 2, the propagation from layer 240 to layer 210 is back propagation) will begin to update the weight values and biases of the aforementioned layers to reduce the loss of the convolutional neural network 200 and the error between the result output by the convolutional neural network 200 through the output layer and the ideal result.
[0076] It should be noted that the convolutional neural network 200 shown in Figure 2 is only an example of a convolutional neural network. In specific applications, the convolutional neural network can also exist in the form of other network models, such as U-Net, 3D Morphable Face Model (3DMM) and Residual Network (ResNet).
[0077] In order to perform positioning based on images, the above shows that positioning tags are deployed in the area to be positioned, and positioning can only be performed based on taking images with the positioning tags.
[0078] In another possible implementation, SLAM is used for positioning based on the above positioning tags.
[0079] For example, using a mobile device's traditional monocular camera to capture images, combined with the aforementioned positioning tags, we can determine the initial positioning of the mobile device. SLAM positioning within a small scene is performed using the traditional monocular camera, the mobile device's built-in radar, and the gyroscope accelerometer.
[0080] For example, SLAM can capture data on building corners, edges, and other locations, creating corresponding point cloud data. This point cloud data is then matched to the building's corresponding BIM using feature matching and coordinate system alignment to determine the corresponding location.
[0081] Because the above solution still relies on positioning tags, the positioning process is complex and inefficient. Furthermore, the field of view of traditional monocular cameras is narrow, capturing less image information and being easily obscured. Directly matching images captured by traditional monocular cameras with the entire BIM results in excessively large amounts of matching data, low matching efficiency, and, consequently, low positioning efficiency.
[0082] In order to more effectively perform positioning based on images, the present application provides a positioning method based on cloud technology, which is applicable to computing devices. The method includes: obtaining image data to be positioned, and retrieving the image data to be positioned in a three-dimensional model database to obtain first point cloud data that matches the similarity of the image data to be positioned. Furthermore, based on the points with position information in the first point cloud data, the image data to be positioned is aligned to obtain the first position corresponding to the image data to be positioned. The image data to be positioned includes a picture or a video, and the three-dimensional model database includes a plurality of point cloud data obtained by sampling a three-dimensional model of the location to which the image data to be positioned belongs. The point cloud data is used to indicate: points with position information within a sampling area in the three-dimensional model.
[0083] In the present application, first point cloud data that matches the similarity of the image data to be located is retrieved from the three-dimensional model database, so that point cloud data corresponding to the partial area that matches the image data to be located is determined from the entire three-dimensional model database. Then, the first point cloud data is used to align with the image data to be located, so that image positioning is performed using the point cloud data of the partial area in the three-dimensional model, which reduces the amount of data to be processed and thus improves positioning efficiency. Moreover, since each point in the first point cloud data has position information, the first position corresponding to the image data to be located can be directly obtained using the first point cloud data, thus avoiding the problem of deploying positioning tags in the positioning area before performing image positioning, which leads to a complicated processing process, thereby improving the convenience of positioning and further improving positioning efficiency.
[0084] Next, the positioning method provided by this application is described in detail with reference to the accompanying drawings.
[0085] First, referring to FIG3 , FIG3 is a schematic diagram of a computer system provided in this application. As shown in FIG3 , the computer system includes: at least one computing device 310, which is configured to determine, based on acquired image data to be positioned, a first pose of the image data to be positioned in a three-dimensional model, i.e., a pose of a shooting point corresponding to the image data to be positioned within a positioning region corresponding to the three-dimensional model.
[0086] In one possible scenario, the computing device 310 may be a server, a personal desktop computer, a laptop computer, a smart phone, etc. The server may be a centralized server or a distributed server.
[0087] In a possible example, the computer system further includes a terminal 320 , a terminal 330 , and a terminal 340 .
[0088] The terminal 320 among the terminals 320, 330 and 340 is taken as an example for description. The terminal 320 may be a terminal server, a smart phone, a notebook computer, a tablet computer, a personal desktop computer or a smart camera.
[0089] The terminal 320 and the computing device 310 can communicate with each other via wired means, such as Ethernet, optical fiber, and a peripheral component interconnect express (PCIe) bus provided in a computer system for connecting the computing device 310 and the terminal 320. Wireless communication can also be achieved, such as the Internet, wireless fidelity (WIFI), and ultra-wide band (UWB) technology.
[0090] It should be noted that Figure 3 is merely an example provided by this application. The computer system may also include more computing devices 310 or more terminals. Furthermore, the internal components of the computing device 310 may include one or more processors, as well as a power supply, hard drive, optical drive, chassis, cooling system, and other input / output controllers and interfaces that support the processors, which are not shown in Figure 3. This application does not limit the form or quantity of the processors or the hardware supporting the processors.
[0091] In combination with the above-mentioned computer system, the method provided in this embodiment can be applied in positioning scenarios. Specifically, the method of this embodiment can be applied in scenarios such as positioning navigation, task progress comparison, and pipe network operation and maintenance. In each scenario, the computing device 310 executes the method provided in this application, which can be specifically as follows: the computing device 310 obtains the image data to be positioned taken by the camera or camera in the positioning area, and based on the image data to be positioned, retrieves the three-dimensional model database corresponding to the area to be positioned, and obtains the first point cloud data that matches the similarity with the image data to be positioned. The computing device 310 uses the image data to be positioned to align the first point cloud data, and obtains the first position of the image data to be positioned in the three-dimensional model, that is, the first position of the shooting point corresponding to the image data to be positioned in the positioning area.
[0092] For example, the camera or camera may be an internal component of the computing device 310, or an external component connected to the computing device 310. The connection method may be a wired connection or a wireless connection. The details of the wired connection and the wireless connection can be referred to the description of the communication method between the terminal 320 and the computing device 310 in FIG3 above, and will not be repeated here.
[0093] In a possible example, the computing device 310 may further optimize the first pose to obtain the second pose. The content of the computing device 310 optimizing the first pose to obtain the second pose may be referred to as shown in FIG5 below and will not be described in detail here.
[0094] In the positioning navigation scenario, the computing device 310 plans a navigation route according to the first posture or the second posture and the target position, and then the computing device 310 moves according to the navigation route.
[0095] In the task progress comparison scenario, after the computing device 310 obtains the first or second pose, it renders image data of the 3D model at the first pose. The computing device 310 displays the rendered image data and the image data to be positioned, and then compares the missing portion of the image data to be positioned with the rendered image data to determine the task progress corresponding to the image data to be positioned.
[0096] In a pipe network operation and maintenance scenario, after the computing device 310 obtains the first or second pose, it renders image data of the 3D model at that first pose. The computing device 310 displays this rendered image data along with the image data to be located, allowing the specific location of the pipe network represented by the rendered image to be determined within the image data to be located. This facilitates operation and maintenance personnel in locating the pipe network in the real environment and improves processing efficiency.
[0097] Regarding the computing device 310 constructing point cloud data in a three-dimensional model database, a possible implementation is provided below.
[0098] The computing device 310 receives the sampling density parameter input by the user and, based on the sampling density parameter, divides the sampling area of the 3D model corresponding to the location (the positioning area) of the image data to be positioned into multiple sub-sampling areas. The computing device 310 then samples point cloud data from each of the multiple sub-sampling areas to obtain point cloud data in the 3D model database.
[0099] The point cloud data is used to indicate points with position information within a sampling area in a three-dimensional model.
[0100] For example, if a sampling density parameter of 1 is received, it indicates that the sampling area of the 3D model is divided into a plurality of sub-sampling areas according to the sampling density parameter. For example, the sub-sampling areas may be sampling areas corresponding to virtual viewpoints (viewpoints) or areas of a three-dimensional regular shape (cube or cuboid).
[0101] Regarding the computing device 310 determining the point cloud data of the three-dimensional model, three possible examples are provided below:
[0102] In Example 1, the computing device 310 uniformly samples the structure of the three-dimensional model at each viewpoint according to the determined sampling areas corresponding to the multiple viewpoints to obtain point cloud data.
[0103] Example 2: The computing device 310 generates a depth map corresponding to the three-dimensional model, then samples the depth map to obtain point cloud data of the entire three-dimensional model, and then divides the point cloud data of the entire three-dimensional model into multiple point cloud data according to the positions and angles of multiple viewpoints, that is, one viewpoint corresponds to one point cloud data.
[0104] Example 3: The computing device 310 segments the point cloud data of the entire three-dimensional model obtained in Example 2, that is, divides the point cloud data of the entire three-dimensional model into multiple point cloud data according to the stereo regular size determined by the density parameter.
[0105] In one possible scenario, the density of points in the point cloud data is determined by the computing device 310 according to the image point cloud density configured by the user. This application does not limit the image point cloud density and the viewpoint density.
[0106] In a possible implementation, the 3D model database may further include image data or semantic data corresponding to the point cloud data. The following provides possible examples of image data or semantic data for constructing a 3D model.
[0107] The computing device 310 acquires a BIM and samples multiple viewpoints in the BIM, each of which has different positions and angles in the BIM. The computing device 310 renders the BIM at each viewpoint to obtain image data or semantic data corresponding to each viewpoint.
[0108] The image data is used to indicate a planar image within a sampling area in a three-dimensional model, and the semantic data is used to indicate semantic information within the sampling area in a three-dimensional model.
[0109] For example, the computing device 310 obtains a BIM constructed by the user on the terminal 320. The density of the plurality of viewpoints in the BIM can be set by the user. For example, the computing device 310 receives a sampling density parameter set by the user as greater than 1 viewpoint per unit area. This application does not limit this density, and it can be 1 or greater than or equal to 2 viewpoints per unit area.
[0110] The following provides a possible example for the computing device 310 to determine semantic data.
[0111] When computing device 310 renders the BIM at each viewpoint, it uses ray tracing during the rendering process to determine the objects in the 3D model that intersect with the rays corresponding to the pixels. Based on the object type, computing device 310 obtains information about the corresponding pixel's type and its relative position to adjacent pixels, thereby determining semantic data. Semantic information represents the object's type and relative position.
[0112] For example, the computing device 310 may display the content of the semantic data in different colors according to different types of information of the object. In this application, different colors are represented by different fills.
[0113] Regarding the computing device 310 determining image data, a possible example is provided below.
[0114] When the computing device 310 renders the BIM at each viewpoint, it determines the color value of each pixel within the sampling area corresponding to the viewpoint based on ray tracing during the rendering process. The computing device 310 then obtains a planar image within the sampling area based on the color value of each pixel.
[0115] In this application, the computing device 310 divides the sampling area of the 3D model into multiple sub-sampling areas, and then obtains image data, point cloud data, and semantic data corresponding to each sub-sampling area. This facilitates the computing device 310 to utilize multiple small-area point cloud data for retrieval and registration based on the image to be located. In other words, one small area of data is used to retrieve and register data from multiple small areas. This improves the efficiency and accuracy of the computing device 310 in retrieving and registering the image data to be located using the image data, point cloud data, and semantic data corresponding to each sub-sampling area.
[0116] It is worth noting that the image data, semantic data or point cloud data included in the above-mentioned 3D model database correspond one to one. For example, the image data, point cloud data and semantic data at the same viewpoint correspond to each other.
[0117] This application describes a possible implementation of a cloud-based positioning method, which can be applied to the computer system shown in Figure 3. Figure 4 is a flow chart of the positioning method provided by this application. This positioning method is described using a computing device executing the positioning method as an example. The computing device may be computing device 310 in Figure 3. The positioning method includes the following steps S410 to S430.
[0118] S410 : The computing device 310 obtains image data to be located.
[0119] The image data to be located includes pictures or videos.
[0120] In a possible scenario, the image data to be positioned includes an image with depth information, that is, the image is a depth image.
[0121] The display angle of the image data to be positioned, i.e., the shooting angle, is given as an example. The shooting angle of the image data to be positioned can be 360 degrees. In other words, the image data to be positioned is a panoramic image. This application does not limit the shooting angle, and it can also be 60 degrees, 90 degrees, 100 degrees, etc.
[0122] Regarding the computing device 310 acquiring the image data to be positioned, two possible examples are provided below.
[0123] In example 1, the computing device 310 obtains image data to be positioned captured by a camera.
[0124] Example 2: The computing device 310 obtains the image data to be located sent by the terminal 320 , the terminal 330 , or the terminal 340 .
[0125] S420 : The computing device 310 searches the image data to be positioned in the three-dimensional model database to obtain first point cloud data that matches the image data to be positioned in similarity.
[0126] The three-dimensional model database is a database of the location (positioning area) to which the image data to be positioned belongs.
[0127] Exemplarily, the three-dimensional model database may be the three-dimensional model database described by the point cloud data in the aforementioned construction of the three-dimensional model database.
[0128] In one possible example, the positioning area may be an entire building or a portion of a building specified by the user. For example, the positioning area may be a five-story building or the first and second floors of the five-story building. For the three-dimensional model database of the positioning area to which the image data to be positioned belongs, please refer to the possible scenarios shown in FIG. 8 below, which will not be described in detail here.
[0129] With respect to determining the first point cloud data that matches the similarity with the image data to be located, a possible example is provided below. The computing device 310 retrieves multiple point cloud data in the three-dimensional model database based on the image data to be located and the retrieval model, and determines the first point cloud data whose similarity with the image data to be located meets the first condition.
[0130] For example, the retrieval model includes a point cloud retrieval model and a semantic retrieval model. The retrieval model can be a neural network, etc., which is used to determine the similarity between the image features of the image to be located and the point cloud data in the 3D model database, and then select one or more point cloud data whose similarity meets a first condition as the first point cloud data. The first condition can be to select one or more point cloud data with the highest similarity as the first point cloud data; or, to select one or more point cloud data with a similarity greater than a set threshold as the first point cloud data.
[0131] Regarding the computing device 310 retrieving the image data to be located in the three-dimensional model database and obtaining the first point cloud data that matches the similarity with the image data to be located, the following provides a possible implementation method: the computing device 310 determines the image feature corresponding to the image data to be located, and retrieves the point cloud data from multiple point cloud data whose similarity with the image feature meets the first condition as the first point cloud data.
[0132] The image feature is used to indicate: the type of content in the image data to be located and the position of the content in the image data to be located.
[0133] Exemplarily, the computing device 310 retrieves point cloud data whose similarity with the image feature satisfies a first condition from a plurality of point cloud data according to the image feature corresponding to the image data to be located and the retrieval model, as the first point cloud data.
[0134] For example, the image feature includes semantic information or point cloud information. The semantic information may be a semantic map, and the point cloud information may be image point cloud data.
[0135] When the image feature is semantic information, computing device 310 uses a semantic retrieval model to retrieve first semantic data from the 3D model database whose similarity to the semantic information satisfies a first condition. Computing device 310 then determines the viewpoint corresponding to the first semantic data and uses the point cloud data at that viewpoint as the first point cloud data.
[0136] When the image feature is semantic information, the computing device 310 searches the three-dimensional model database for the first semantic data whose similarity with the semantic information satisfies the first condition. For example, reference may be made to the content of FIG. 8 below, which will not be described in detail here.
[0137] When the image feature is point cloud information, the computing device 310 uses the point cloud retrieval model to retrieve first point cloud data in the three-dimensional model database whose similarity with the point cloud information satisfies a first condition.
[0138] When the image feature is point cloud information, the computing device 310 retrieves the content of the first point cloud data in the three-dimensional model database whose similarity with the point cloud information meets the first condition. Please refer to the content of Figure 9 or Figure 10 below and will not be repeated here.
[0139] In an embodiment of the present application, the computing device 310 uses the image features of the image data to be positioned to retrieve the three-dimensional model database to obtain the first point cloud data, thereby avoiding the subsequent alignment of the image data to be positioned with all the point cloud data in the three-dimensional model database, reducing the amount of data processed, and thereby increasing the speed of subsequent alignment and improving the positioning efficiency of the image data to be positioned.
[0140] S430 : The computing device 310 registers the image data to be positioned using the first point cloud data to obtain the first position corresponding to the image data to be positioned.
[0141] The first position includes the position (x1, y1, z1) of the image data to be positioned in the positioning area, and the angle (a1, b1, c1) of the image data to be positioned in the positioning area.
[0142] Regarding the registration of the first point cloud data and the image data to be positioned by the computing device 310 , two possible implementations are provided below.
[0143] In a first possible implementation, if the first point cloud data includes one point cloud data, or the computing device 310 is configured not to perform point cloud data screening, the computing device 310 aligns all point cloud data included in the first point cloud data with the image data to be positioned.
[0144] In a second possible implementation, if the first point cloud data includes multiple point cloud data, the computing device 310 may generate a processing interface for the first point cloud data, receive a user trigger operation on the processing interface, and then, in response to the trigger operation, determine the point cloud data to be registered selected by the user from the first point cloud data. The computing device 310 then registers the image data to be positioned using the point cloud data to be registered.
[0145] The following provides three possible examples of how to process the interface.
[0146] Example 1: The processing interface is the position of the viewpoint corresponding to the first point cloud data in the three-dimensional model.
[0147] Example 2: The processing interface is a distribution heat map obtained based on the position of the viewpoint corresponding to the first point cloud data in the three-dimensional model. The distribution heat map indicates the density of points with location information in the three-dimensional model located in the positioning area of the first point cloud data, that is, the density of the viewpoint corresponding to the first point cloud data in the three-dimensional model.
[0148] For example, in the distribution heat map, darker areas indicate that the viewpoints corresponding to the first point cloud data are more densely packed at that location, lighter areas indicate that the viewpoints corresponding to the first point cloud data are more discrete at that location, and colorless or white areas indicate that there are no viewpoints corresponding to the first point cloud data.
[0149] Example 3: The processing interface is the first point cloud data or the image data of the first point cloud data at a corresponding viewpoint.
[0150] For example, the trigger operation is a click or slide operation performed by the user on the computing device 310 or on a front end corresponding to the computing device 310. In response to the trigger operation, the computing device 310 determines whether the user selects one or more first point cloud data not to be registered, or selects one or more first point cloud data to be registered, thereby ultimately obtaining the point cloud data to be registered.
[0151] In the present application, due to the user's triggering operation on the processing interface corresponding to the first point cloud data, the point cloud data to be registered is determined from the first point cloud data, thereby reducing the amount of point cloud data during subsequent registration, thereby reducing the amount of data processed by the computing device 310 and improving positioning efficiency.
[0152] Regarding the above registration process, taking the registration of the image data to be positioned and the point cloud data to be registered as an example, the registration of the image data to be positioned and the point cloud data to be registered or the first point cloud data is described.
[0153] The computing device 310 uses the registration model to register the image data to be positioned and the point cloud data to be registered, obtaining the positional relationship between the points in the image data to be positioned and the point cloud data to be registered. Based on this positional relationship and the positional information of each point in the point cloud data, the computing device 310 obtains the first pose of the image data to be positioned.
[0154] If point cloud registration is performed using a point cloud data to be registered and the image data to be positioned, the computing device 310 can directly obtain the first position corresponding to the image data to be positioned.
[0155] If point cloud registration is performed using multiple point cloud data to be registered and image data to be positioned, two examples of determining the first pose are shown below.
[0156] In example 1, the computing device 310 uses the position and angle corresponding to the point cloud data to be registered that has the highest registration similarity with the image data to be positioned as the first pose.
[0157] In Example 2, the computing device 310 performs a weighted summation based on the positions and angles corresponding to the plurality of point cloud data to be registered to obtain a first pose. The weights of the positions and angles corresponding to the point cloud data to be registered are determined based on the similarity between the point cloud data to be registered and the image data to be positioned in S420.
[0158] For example, if the similarities between the three point cloud data to be registered and the image data to be positioned are 0.8, 0.7, and 0.6, respectively, then the weights assigned to them are 0.5, 0.3, and 0.2, respectively. The above assignments are only examples and should not be construed as limiting the present application. In other examples of the present application, other assignment rules may be used, such as assigning weights of 0.6, 0.3, and 0.1 to the three point cloud data to be registered, respectively.
[0159] Exemplarily, the registration model includes a point cloud registration model and an image point cloud registration model. The point cloud registration model determines the positional relationship between two point cloud data sets. The image point cloud registration model determines the positional relationship between point cloud data sets and an image. The aforementioned positional relationships can be relative poses between point cloud data sets or between an image and point cloud data sets.
[0160] Regarding the process of the computing device 310 utilizing the registration model, two possible examples are provided below.
[0161] In Example 1, the computing device 310 uses an image point cloud registration model to perform image point cloud registration on the image data to be positioned and the point cloud data to be registered, and obtains the first pose corresponding to the image data to be positioned.
[0162] The computing device 310 utilizes the image point cloud registration model to perform image point cloud registration on the image data to be positioned and the point cloud data to be registered, and obtains a representation of the first pose corresponding to the image data to be positioned. For this, reference may be made to the content of S840 in FIG8 below, which will not be elaborated here.
[0163] In Example 2, the computing device 310 uses a point cloud registration model to perform point cloud registration on the image point cloud data corresponding to the image data to be positioned and the point cloud data to be registered, and obtains the first pose corresponding to the image data to be positioned.
[0164] The computing device 310 utilizes the point cloud registration model to perform point cloud registration on the image point cloud data corresponding to the image data to be positioned and the point cloud data to be registered, and obtains a representation of the first pose corresponding to the image data to be positioned. For details, please refer to the content of S930 in FIG9 below, which will not be described in detail here.
[0165] With respect to the first pose, the present application also provides a possible implementation method for optimizing the first pose, and the three-dimensional model database also includes image data corresponding to the point cloud data, and the image data is used to indicate: a plane image within a sampling area in the three-dimensional model of the location to which the image data to be located belongs. As shown in Figure 5, Figure 5 is a flow chart of the first pose optimization method provided by the present application, and Figure 5 shows a method for a computing device to optimize the first pose obtained by the above positioning method. Taking the execution of the first pose optimization method by a computing device as an example for explanation, the computing device may be the computing device 310 in Figure 3, and the method includes the following steps S510 and S520.
[0166] S510 : The computing device 310 determines first multi-level features of the image data to be located and second multi-level features of the planar image corresponding to the first point cloud data.
[0167] Among them, multi-level features are used to indicate: feature combinations obtained after passing through feature extraction networks with different numbers of layers.
[0168] For example, as shown in Figure 5, computing device 310 inputs the image data to be positioned and the planar image from the viewpoint corresponding to the first point cloud data into a feature extraction network model. Each time the image data to be positioned and the planar image corresponding to the first point cloud data pass through a layer of the feature extraction network, a set of features is output. Computing device 310 combines the features output from each layer to generate first and second multi-level features.
[0169] For example, the feature extraction network model may include a multi-layer feature extraction network, and the feature extraction network may be a convolutional layer.
[0170] Taking the computing device 310 determining the first multi-level features of the image data to be located as an example, the determination of the first multi-level features and the second multi-level features will be described.
[0171] The computing device 310 inputs the image data to be located into a feature extraction network model with three sets of convolutional layers. After the image data to be located passes through the first set of convolutional layers (convolutional layer 501, activation layer 502, pooling layer 503), a first-level feature is output. In addition, the first-level feature is processed by the second set of convolutional layers (convolutional layer 504, activation layer 505, pooling layer 506) to output a second-level feature. The second-level feature is then processed by the third set of convolutional layers (convolutional layer 507, activation layer 508, pooling layer 509) to obtain a third feature. The computing device fuses the aforementioned first-level features, second-level features, and third-level features to obtain a first multi-level feature.
[0172] Among them, the shallow features (such as primary features or secondary features) have high resolution and contain more location information and detailed information of the image content, but have less semantic information and more interference information. The deep features (such as tertiary features) have stronger semantic information and less interference information, but have lower resolution and lack of detailed information. The above activation layer can use the Relu activation function, and the pooling layer can use maxpooling.
[0173] It is worth noting that the number of layers and structure of the above feature extraction network model are only examples and should not be construed as limiting the present application. In other cases, the network model may include 5 or 6 groups of convolutional layers, or the structure of the above feature extraction network model may not include activation layers or pooling layers, or the activation layer may use softmax and the pooling layer may use average pooling.
[0174] S520: The computing device 310 calibrates the first pose according to the first multi-level features and the second multi-level features to obtain a second pose.
[0175] The computing device 310 uses a coarse alignment network and a fine alignment network to process the first multi-level features and the second multi-level features to continuously optimize the first pose to obtain a second pose. The second pose includes the position (x2, y2, z2) of the image data to be positioned in the three-dimensional model, and the angle (a2, b2, c2) of the image data to be positioned in the three-dimensional model. The second pose also indicates the position and angle of the shooting point of the image data to be positioned in the positioning area corresponding to the three-dimensional model.
[0176] Taking a layer in a multi-layer rough alignment network as an example, computing device 310 calculates the residual weights of the first and second multi-level features, as well as the residual features of the first and second multi-level features. Computing device 310 uses these residual weights, residual features, and attenuation coefficients to perform linear regression to obtain a deviation value for the first pose. Based on this deviation value and the first pose, computing device 310 obtains the output of the layer, namely the optimized position and angle.
[0177] For example, using one layer of a multi-layer fine-grained alignment network as an example, the computing device 310 uses the optimized positions and angles as input to the next layer of the fine-grained alignment network. Based on these optimized positions and angles, the computing device 310 projects the point cloud from the first point cloud data onto the first multi-level features of the image data to be positioned. The computing device 310 calculates the error between the first multi-level features and the second multi-level features of the image data to be positioned, onto which the point cloud is projected. Based on this error, it determines a deviation value, which is then used to obtain further optimized positions and angles. The computing device 310 repeats these steps until the error converges, resulting in a second pose.
[0178] In the present application, the computing device 310 optimizes the first posture to obtain the second posture, thereby obtaining a more accurate position and angle of the shooting point corresponding to the image data to be located in the positioning area, achieving more precise positioning of the image data to be located, and improving the accuracy of positioning.
[0179] In one possible embodiment, the computing device 310 may optimize the first pose using the image data corresponding to the point cloud data to be registered to obtain the second pose. The details of how the computing device 310 optimizes the first pose using the image data corresponding to the point cloud data to be registered to obtain the second pose can be found in FIG. 5 above and are not further described here.
[0180] This application also shows the following three scenarios for using the positioning results (the first pose or the second pose mentioned above).
[0181] Example 1: In a positioning scenario, the computing device 310 uses the positioning result to perform positioning navigation.
[0182] For example, the computing device 310 continuously obtains positioning results during movement to determine in real time the position of the shooting point corresponding to the computing device 310 in the positioning area corresponding to the three-dimensional model, thereby implementing positioning navigation for the computing device 310.
[0183] For example, computing device 310 is a robot. After obtaining positioning results, the robot can determine its position within the positioning area. Based on this position and the robot's desired destination, the robot can determine a navigation route and navigate according to this route. During navigation, the robot also determines its position within the positioning area in real time to continuously correct its motion parameters or optimize the navigation route.
[0184] Example 2: In a task progress comparison scenario, the computing device 310 uses the positioning result to perform task progress comparison.
[0185] The computing device 310 renders an image of the 3D model at the location of the positioning result to obtain rendered image data. The rendered image indicates the final form of the task.
[0186] In a possible scenario, when the computing device 310 receives a separate display instruction triggered by the user, the rendered image data of the three-dimensional model at the positioning result and the image data to be positioned are displayed separately.
[0187] For example, let's use the construction project as an example, as shown in Figure 6 , which is a display interface diagram provided by this application. In Figure 6 a, computing device 310 displays the image data to be positioned and the rendered image separately. The rendered image data shows the final completed form of the construction project. Compared to the rendered image data, the image data to be positioned shows an incomplete "column," meaning that some columns in the construction project have not been cast.
[0188] In another possible scenario, when the computing device 310 receives a comparison display instruction triggered by the user, the rendered image data of the three-dimensional model at the positioning result and the image data to be positioned are compared and displayed.
[0189] As shown in Figure 6b, the computing device 310 compares and displays the image data to be positioned and the rendered image data. The dotted line in Figure 6b indicates that there are unfinished "pillars" in the image data to be positioned, which can clearly compare the progress of the construction project corresponding to the image data to be positioned.
[0190] In the present application, since both the image data to be positioned and the rendered image data correspond to the first pose, or both the image data to be positioned and the rendered image data correspond to the second pose, the rendered image data and the image data to be positioned partially overlap. The computing device 310 can obtain the difference between the image data to be positioned and the rendered image data based on the missing portion of the image data to be positioned displayed separately or in comparison with the rendered image data, thereby achieving visualization and facilitating the user to determine the progress of the task.
[0191] In one possible embodiment, computing device 310 may only display rendered image data.
[0192] Example 3: In a pipe network operation and maintenance scenario, the computing device 310 uses the positioning result to perform pipe network operation and maintenance.
[0193] For example, computing device 310 renders rendered image data of the 3D model at the location of the positioning result, and displays the rendered image data separately or in comparison with the image data to be positioned, based on a separate display instruction or a comparative display instruction triggered by the user. The rendered image data indicates the pipe network layout corresponding to the 3D model in the real environment.
[0194] For example, the pipe network within a building is illustrated in Figure 7, which is the second display interface provided by this application. As shown in Figure 7a, the computing device 310 displays the image data to be located and the rendered image data, respectively. The rendered image data illustrates the pipe network layout within the building. For example, the dotted box shown in Figure 7a represents the pipe network.
[0195] As shown in b of FIG. 7 , the computing device 310 compares and displays the image data to be located and the rendered image data, thereby accurately determining the position of the pipeline network in the image data to be located, facilitating troubleshooting by operation and maintenance personnel.
[0196] In the present application, the computing device 310 can obtain the pipeline network hidden in the image data to be located and the specific location of the pipeline network in the image data to be located by displaying the rendered image and the image data to be located, so as to facilitate the operation and maintenance personnel to perform operation and maintenance management of the pipeline network.
[0197] On the basis of the flowchart of the positioning method shown in FIG4 , if the image data to be positioned is a single image (image a), the above-mentioned image features are semantic information, and the three-dimensional model database also includes semantic data corresponding to each viewpoint of the three-dimensional model under multiple viewpoints, and the semantic data has a one-to-one correspondence with the point cloud data. The present application provides a possible implementation method of image positioning, as shown in FIG8 , which is a flowchart of the image positioning method provided by the present application. For example, the semantic information of the image data to be positioned can be called a semantic graph a, the first semantic data that matches the similarity with the semantic information of the image data to be positioned can be called semantic data a, and the first point cloud data corresponding to the first semantic data can be called point cloud data a. For example, a computing device executing the image positioning method is used for illustration. The computing device can be the computing device 310 in FIG3 , and the method includes the following steps S810 to S840.
[0198] S810 : The computing device 310 identifies the type of content in image a and the position of the content in image a to obtain a semantic graph a.
[0199] The computing device 310 uses an image semantic segmentation model to identify the type of content in image a and the relative position of the content in image a, and obtains a semantic map a corresponding to image a. Different colors in the semantic map a are represented by different fills.
[0200] For example, the image semantic segmentation model may be a fully convolutional network (FCN), U-Net, or deeplabv3+ model.
[0201] The FCN network structure includes fully convolutional layers, deconvolutional layers, and a skip layer. The skip layer is a cross-layer connection structure that combines fine-grained information from shallow layers of the network with coarse-grained information from deep layers to achieve accurate segmentation tasks. The U-Net network structure includes an encoder layer for feature extraction and a decoder layer for upsampling.
[0202] S820 , the computing device 310 retrieves semantic data a from the three-dimensional model database whose similarity to the semantic graph a satisfies a first condition.
[0203] The three-dimensional model database is a database of the positioning area to which the image a belongs.
[0204] The computing device 310 uses a semantic retrieval model to retrieve multiple semantic data in the three-dimensional model database and obtain one or more semantic data a whose similarity with the semantic graph a meets the first condition.
[0205] Exemplarily, the first condition is to use the top K semantic data with the highest similarity as semantic data a.
[0206] The computing device 310 uses the semantic retrieval model to determine the similarity between the semantic graph a and each semantic data in the multiple semantic data based on the type of content in the semantic graph a and the relative position of the content, and takes the top K semantic data with the highest similarity to the semantic graph a as semantic data a.
[0207] For example, the semantic retrieval model may be a hash algorithm, a self-supervising fine-grained region similarities (SFRS) image retrieval model based on contrastive learning, or a classification algorithm-based image retrieval model (CosPlace) model.
[0208] This hash algorithm uses a feature extraction model to extract image features and maps them to the vertices of a hypercube, converting floating-point coded vectors into 0.1 two-dimensional vectors. The distance between the two-dimensional vectors is then determined to determine the similarity between the two images. This distance can be either the Hamming distance or the Euclidean distance.
[0209] In one possible scenario, the plurality of semantic data in the 3D model database retrieved by the computing device 310 is determined in advance by the user. In other words, the user determines and retrieves the plurality of semantic data corresponding to the plurality of viewpoints from all viewpoints in the 3D model data.
[0210] For example, consider a 3D model of a five-story building, with multiple viewpoints sampled for each floor. Computing device 310 receives the first and second floors of the five floors configured by the user. Therefore, during retrieval, only the semantic data corresponding to the multiple viewpoints included in the first and second floors will be utilized. This avoids searching the entire five-story building, reduces the amount of data to be retrieved, and improves retrieval efficiency.
[0211] S830 , the computing device 310 determines the point cloud data a under the viewpoint corresponding to the semantic data a.
[0212] Exemplarily, the 3D model database can be the aforementioned 3D model database that constructs descriptions of point cloud data, semantic data, or image data. Because the 3D model database includes image data, semantic data, and point cloud data corresponding to multiple viewpoints in the 3D model, or image data and semantic data from the same viewpoint, it corresponds to the point cloud data obtained by slicing. Therefore, the computing device 310 can determine the corresponding image data a and point cloud data a in the 3D model database based on the semantic data a.
[0213] S840: The computing device 310 performs image point cloud registration using the image a and the point cloud data a to obtain the first position corresponding to the image a.
[0214] Exemplarily, the computing device 310 performs image point cloud registration on the image a using the image point cloud registration model and the point cloud data a to determine the first pose corresponding to the image a.
[0215] The image-point cloud registration model can be a DeepI2P model, for example. The DeepI2P model transforms the registration problem into a classification and inverse camera projection optimization problem. The classification neural network in DeepI2P is used to label the relative position interval of each point in the point cloud's projection relative to the camera. These labeled points are then fed into the inverse camera projection solver in DeepI2P to estimate the relative pose, ultimately yielding the aforementioned first pose.
[0216] In this application, computing device 310 searches a 3D model database based on semantic graph a of image a, performing a search based on the type of content in image a and the relative positional characteristics of that content within image a to obtain point cloud data that matches image a. This avoids computing device 310 using all point cloud data for image point cloud registration, reduces the computational effort involved, and thereby increases the speed of image point cloud registration and positioning efficiency.
[0217] Based on the flowchart of the positioning method shown in Figure 4, if the image data to be positioned is a video, the image data to be positioned can be referred to as video data. This application also provides two possible implementations of video positioning.
[0218] In one possible implementation, as shown in Figure 9, which is a flow chart of the video positioning method provided by this application, the aforementioned image features may also include point cloud information (image point cloud data a), and point cloud data whose similarity to the point cloud information satisfies the first condition may be referred to as point cloud data b. This video positioning method is described using a computing device executing the method as an example. The computing device may be computing device 310 in Figure 3. The method includes the following steps S910 to S930.
[0219] S910 , the computing device 310 constructs image point cloud data a corresponding to the video data.
[0220] The computing device 310 uses SfM or SLAM to construct a point cloud corresponding to the content in the video data, thereby obtaining image point cloud data a.
[0221] Taking SLAM as an example, SLAM and SfM are explained. The computing device 310 uses SLAM to determine the repeated map features (such as corners, pillars, etc.) in multiple images of video data to locate its own position, and then incrementally generates a point cloud based on its own position, thereby determining the relative pose of each frame of the video data, that is, the relative pose between each point, thereby obtaining image point cloud data a.
[0222] In one possible scenario, the computing device 310 determines a signal-to-noise ratio of the image point cloud data a, and determines the number of point cloud data b to be retrieved in a subsequent search based on the signal-to-noise ratio.
[0223] For example, the above signal-to-noise ratio is the peak signal-to-noise ratio (PSNR) of the complete image point cloud data. The larger the signal-to-noise ratio, the fewer the number of point cloud data b that need to be retrieved subsequently. The smaller the signal-to-noise ratio, the more the number of point cloud data b that need to be retrieved subsequently.
[0224] S920 , the computing device 310 retrieves point cloud data b from the three-dimensional model database whose similarity to the image point cloud data a satisfies a first condition.
[0225] The computing device 310 uses the point cloud retrieval model to retrieve point cloud data b that matches the image point cloud data a from the plurality of point cloud data in the three-dimensional model database.
[0226] Exemplarily, the point cloud retrieval model is a DCP (deep closest point) model. The computing device 310 uses the DCP model to determine the similarity between multiple point cloud data in the three-dimensional model data and the image point cloud data a, and selects the top K point cloud data with the highest similarity to the image point cloud data a as point cloud data b.
[0227] In one possible scenario, the point cloud data in the 3D model database retrieved by the computing device 310 is determined in advance by the user. In other words, the user determines multiple point cloud data from all the point cloud data in the 3D model database to retrieve.
[0228] S930. The computing device 310 performs point cloud registration on the image point cloud data a using the point cloud data b to obtain the first position corresponding to the video data.
[0229] The computing device 310 performs point cloud registration on the image point cloud data a using the point cloud registration model and the point cloud data b to determine the pose corresponding to each frame image in the video data, that is, the movement trajectory of the video data.
[0230] Two possible examples are provided below for the point cloud registration model.
[0231] In Example 1, the point cloud registration model can be a rigid registration algorithm. Rigid registration means that given two point sets, the registration generates a rigid transformation that maps one point set to the other. A rigid transformation is defined as a transformation that does not change the distance between any two points. Generally, such transformations only include translation and rotation. Examples of such rigid registration algorithms include the iterative closest point (ICP) algorithm.
[0232] In Example 2, the point cloud registration model can be a non-rigid registration algorithm. Non-rigid registration means that given two point sets, non-rigid registration produces a non-rigid transformation that maps one point set to the other. Non-rigid transformations include affine transformations, such as scaling and shearing, and can also involve other nonlinear transformations. Examples of such non-rigid registration algorithms include the KC (kernel correlation) algorithm.
[0233] In this application, the computing device 310 searches the 3D model database based on the image point cloud data a of the video data, and matches the points with position information in the image point cloud data a with the points with position information in the multiple point cloud data included in the 3D model database to obtain point cloud data b. That is, data that matches one small range of data is retrieved from multiple small ranges of data. This reduces the computational complexity of point cloud registration and thereby increases the speed of point cloud registration. In addition, since both the image point cloud data a and the point cloud data have points with position information, the computing device 310 can increase the speed of point cloud registration by matching based on each point, thereby improving positioning efficiency.
[0234] In another possible implementation, computing device 310 uses the first frame of image in the video data to determine a semantic graph b for the first frame of image, and retrieves semantic data (semantic data b) from the 3D model data whose similarity to the semantic graph b satisfies a first condition. Computing device 310 determines point cloud data (point cloud data c) corresponding to semantic data b, and performs point cloud registration between the first frame of image and point cloud data c to obtain the position and shooting angle corresponding to the first frame of image in the video data within the positioning area.
[0235] The computing device 310 then uses SfM or SLAM to construct image point cloud data corresponding to the video data, and then obtains the relative pose between each point in the image point cloud data.
[0236] The computing device 310 can obtain the first position corresponding to each frame image in the video data according to the position and shooting angle corresponding to the first frame image and the relative position and pose of each point in the video data.
[0237] For the content of the computing device 310 determining the position and shooting angle of the first frame image in the corresponding three-dimensional model, please refer to the content shown in Figure 8 above, and for the computing device 310 determining the expression of the relative posture of each frame in the video data, please refer to the content of S910 in Figure 9 above, which will not be repeated here.
[0238] Based on the flowchart of the positioning method shown in FIG4 , if the image data to be positioned is a single image and the single image has depth information, the above-mentioned image features may also include point cloud information. The present application also provides a possible implementation method of image positioning, as shown in FIG10 , which is a flowchart of the image positioning method provided by the present application. The image data to be positioned may be referred to as image b, the point cloud information of the image to be positioned may be referred to as image point cloud data b, and the point cloud data whose similarity to the point cloud information meets the first condition may be referred to as point cloud data d. Taking the execution of the image positioning method by a computing device as an example for explanation, the computing device may be the computing device 310 in FIG3 , and the method includes the following steps S1010 to S1040.
[0239] S1010 , the computing device 310 acquires image b.
[0240] Regarding the computing device 310 acquiring the image b, two possible examples are shown below.
[0241] In example 1, the computing device 310 may acquire the image b using a panoramic depth camera.
[0242] In Example 2, the computing device 310 obtains an image b using a panoramic camera and a depth camera (red, green, blue, deep camera, RGBD camera).
[0243] As shown in Figure 11, which is a schematic diagram of the camera structure provided by this application, it shows an imaging system consisting of a panoramic camera plus a multi-RGBD-rig. In other words, an imaging system in which multiple RGBD cameras are arranged around the panoramic camera. The computing device 310 uses the panoramic camera and the RGBD camera to acquire a panoramic image and multiple depth images, respectively. The computing device 310 stitches the multiple depth images together to obtain a panoramic depth image, and uses the panoramic image to calibrate the panoramic depth image, thereby obtaining image b.
[0244] S1020 , the computing device 310 constructs image point cloud data b corresponding to the image b.
[0245] Regarding the construction of image point cloud data b corresponding to image b by the computing device 310 , two possible examples are provided below.
[0246] Example 1: The computing device 310 constructs corresponding image point cloud data b based on the depth information contained in the image b.
[0247] In Example 2, the computing device 310 uses the panoramic camera to obtain a panoramic image, uses the multiple RGBD cameras to extract point clouds of the surrounding environment, and stitches the point clouds corresponding to the multiple RGBD cameras to obtain a panoramic point cloud.
[0248] Computing device 310 uses the image point cloud registration model to perform image point cloud registration on the panoramic point cloud and the panoramic image to filter out abnormal point clouds in the panoramic point cloud. Computing device 310 also transforms the panoramic point cloud after filtering out abnormal point clouds into the coordinate system of the panoramic camera to achieve coordinate correspondence between the panoramic image and the panoramic point cloud after filtering out abnormal point clouds, thereby obtaining the image point cloud data b.
[0249] S1030 , the computing device 310 retrieves point cloud data d from the three-dimensional model database whose similarity to the image point cloud data b satisfies a first condition.
[0250] S1040. The computing device 310 performs point cloud registration using the image point cloud data b and the point cloud data d to obtain the first pose.
[0251] For the contents of S1030 and S1040 executed by the computing device 310, reference may be made to the description of S920 and S930 shown in FIG9 , which will not be described in detail here.
[0252] In this embodiment of the present application, since image b contains depth information, image point cloud data b can be directly constructed based on image b. This allows searching the 3D model database based on image point cloud data b to obtain point cloud data d. This avoids the need for computing device 310 to perform point cloud registration using all point cloud data, reducing the computational complexity of point cloud registration, thereby increasing the speed of point cloud registration and improving positioning efficiency.
[0253] In another embodiment of the present application, the interaction between a computing device 310 and a terminal 320 is used as an example for explanation. The computing device 310 is a cloud server. The terminal 320 collects image data to be positioned using a camera or a video camera and sends the image data to be positioned to the computing device 310. The computing device 310 searches the three-dimensional model database based on the acquired image data to be positioned to obtain first point cloud data that matches the similarity of the image data to be positioned. The first point cloud data is then used to perform point cloud registration on the image data to be positioned to obtain the first pose corresponding to the image data to be positioned. The first rendered image data of the three-dimensional model at the first pose can be displayed on the terminal 320.
[0254] In a possible scenario, the computing device 310 optimizes the first pose to obtain a second pose, and may further display second rendered image data of the three-dimensional model at the second pose on the terminal 320 .
[0255] For the description of the above-mentioned calculation device 310 determining the first pose or the second pose, please refer to the contents shown in Figures 4 to 10 above, and will not be repeated here.
[0256] Regarding the terminal 320 displaying the first rendered image data of the three-dimensional model at the first pose, or the second rendered image data of the three-dimensional model at the second pose, two possible examples are provided below.
[0257] In Example 1, after computing device 310 obtains a first pose or a second pose, computing device 310 sends the first pose or the second pose to terminal 320. Terminal 320 renders an image of the 3D model at the first pose or the second pose to obtain first rendered image data or second rendered image data. Terminal 320 may compare or separately display the first rendered image data with the image data to be positioned, or compare or separately display the second rendered image data with the image data to be positioned.
[0258] In Example 2, the computing device 310 renders an image of the three-dimensional model at the first pose or the second pose to obtain first rendered image data or second rendered image data, and sends the first rendered image data or the second rendered image data to the terminal 320. The terminal 320 displays the first rendered image data and the image data to be positioned separately or in comparison, or displays the second rendered image data and the image data to be positioned separately or in comparison.
[0259] In a possible scenario, the terminal 320 will also only display the image data to be located.
[0260] The positioning method provided by the present application has been described in detail above with reference to Figures 1 to 10 . The positioning device provided by the present application will now be described with reference to Figure 12 , which is a schematic diagram of the structure of a cloud-based positioning device provided by the present application. Positioning device 1200 can be used to implement the functions of computing device 310 in the above method embodiment, thereby also achieving the beneficial effects of the above method embodiment.
[0261] As shown in FIG12 , the positioning device 1200 includes an acquisition module 1210, a retrieval module 1220, and a registration module 1230. The positioning device 1200 is used to implement the functions of the computing device 310 in the method embodiments corresponding to FIG1 to FIG10 . In one possible example, the specific process of the positioning device 1200 for implementing the above positioning method includes the following process:
[0262] The acquisition module 1210 is configured to acquire image data to be located, where the image data to be located includes pictures or videos.
[0263] Retrieval module 1220 is configured to retrieve the image data to be located from a 3D model database to obtain first point cloud data that has a similarity match with the image data to be located. The 3D model database includes a plurality of point cloud data obtained by sampling a 3D model of the location to which the image data to be located belongs. The point cloud data indicates points with location information within a sampling area in the 3D model.
[0264] The registration module 1230 is used to register the image data to be positioned based on the points with position information in the first point cloud data to obtain the first position corresponding to the image data to be positioned.
[0265] To further implement the functions of the method embodiments shown in Figures 1 to 10 above, the present application also provides a positioning device, as shown in Figure 13 , which is a second structural diagram of a cloud-based positioning device provided by the present application. The positioning device 1200 further includes a sampling module 1240 , a display module 1250 , and a calibration module 1260 .
[0266] Among them, the sampling module 1240 is used to receive a sampling density parameter, divide the sampling area of the three-dimensional model of the location to which the image data to be located belongs into multiple sub-sampling areas according to the sampling density parameter, and sample point cloud data in the multiple sub-sampling areas respectively to obtain a three-dimensional model database.
[0267] The display module 1250 is used to compare and display the rendered image data of the three-dimensional model at the first pose and the image data to be positioned when a comparative display instruction triggered by the user is received; and to separately display the rendered image data of the three-dimensional model at the first pose or the image data to be positioned when a separate display instruction triggered by the user is received.
[0268] Calibration module 1260 is configured to extract first multi-level features from the image data to be located, and second multi-level features from the planar image corresponding to the first point cloud data, and to calibrate the first pose to obtain a second pose based on the first and second multi-level features. The multi-level features indicate feature combinations obtained after passing through feature extraction networks with different layers. The 3D model database also includes image data corresponding to the point cloud data, indicating a planar image within a sampling area within the 3D model of the location to which the image data to be located belongs.
[0269] In a possible example, the acquisition module 1210 , the retrieval module 1220 , the registration module 1230 , the sampling module 1240 , the display module 1250 , and the calibration module 1260 may all be implemented through software or hardware.
[0270] For example, the following describes the implementation of the acquisition module 1210 by taking the acquisition module 1210 as an example. Similarly, the implementation of the retrieval module 1220, the registration module 1230, the sampling module 1240, the display module 1250, and the calibration module 1260 can refer to the implementation of the acquisition module 1210.
[0271] As an example of a software functional unit, the acquisition module 1210 may include code running on a computing instance, wherein the computing instance may be a physical host (computing device) or the like.
[0272] For example, the computing instance may be one or more hosts. For example, the acquisition module 1210 may include code running on multiple hosts. It should be noted that the multiple hosts used to run the code may be distributed in the same region or in different regions.
[0273] For example, multiple hosts running the code may be distributed in the same availability zone (AZ) or in different AZs, with each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0274] Similarly, the multiple hosts used to run the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0275] As an example of a hardware functional unit, the acquisition module 1210 may include at least one computing device, such as a server. Alternatively, the acquisition module 1210 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0276] The multiple computing devices included in acquisition module 1210 can be distributed in the same region or in different regions. The multiple computing devices included in acquisition module 1210 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in acquisition module 1210 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.
[0277] It should be noted that, in other embodiments, the acquisition module 1210 can be used to execute any step in the positioning method, the retrieval module 1220 can be used to execute any step in the positioning method, and the registration module 1230 can be used to execute any step in the positioning method. The steps that the acquisition module 1210, the retrieval module 1220, and the registration module 1230 are responsible for implementing can be specified as needed. The full functions of the software update device are realized by respectively implementing different steps in the positioning method through the acquisition module 1210, the retrieval module 1220, and the registration module 1230.
[0278] It is worth noting that the computing device 310 of the aforementioned embodiment may correspond to the positioning device 1200, and may correspond to the corresponding subject corresponding to Figures 4 to 10 of the method according to the embodiment of the present application, and the operations and / or functions of each module in the positioning device 1200 are respectively for implementing the corresponding processes of each method of the corresponding embodiment in Figures 4 to 10. For the sake of brevity, they will not be repeated here.
[0279] In addition, the positioning device 1200 shown in Figure 12 or Figure 13 can also be implemented by a communication device, where the communication device may refer to the computing device 310 in the aforementioned embodiment, or, when the communication device is a chip or chip system applied to the computing device 310, the positioning device 1200 can also be implemented by the chip or chip system.
[0280] An embodiment of the present application further provides a chip system, which includes a control circuit and an interface circuit. The interface circuit is used to obtain the image data to be located, and the control circuit is used to implement the function of the computing device 310 in the above method according to the image data to be located.
[0281] In a possible design, the chip system further includes a memory for storing program instructions and / or data. The chip system can be composed of a chip or include a chip and other discrete devices.
[0282] The present application also provides a computing device. As shown in FIG14 , FIG14 is a schematic diagram of the structure of a computing device provided by the present application. The computing device 1400 includes a bus 1402, a processor 1404, a memory 1406, and a communication interface 1408. The processor 1404, the memory 1406, and the communication interface 1408 communicate with each other via the bus 1402. The computing device 1400 can be a server or a terminal device. It is worth noting that the present application does not limit the number of processors and memories in the computing device 1400.
[0283] Bus 1402 may be, but is not limited to, a PCIe bus, a universal serial bus (USB), an inter-integrated circuit bus (I2C), an EISA bus, a USB, a CXL, or a CCIX bus. Bus 1402 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, FIG14 shows only one line, but this does not imply that there is only one bus or only one type of bus. Bus 1402 may include a path for transmitting information between various components of computing device 1400 (e.g., memory 1406, processor 1404, and communication interface 1408).
[0284] The processor 1404 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0285] The memory 1406 may include volatile memory, such as random access memory (RAM). The memory 1406 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0286] The memory 1406 stores executable program codes, and the processor 1404 executes the executable program codes to respectively implement the functions of the aforementioned acquisition module, retrieval module, and registration module, thereby implementing the aforementioned positioning method. That is, the memory 1406 stores instructions for executing the positioning method.
[0287] Alternatively, the memory 1406 stores executable code, and the processor 1404 executes the executable code to respectively implement the functions of the aforementioned acquisition module, retrieval module, and registration module, thereby implementing the positioning method. In other words, the memory 1406 stores instructions for executing the positioning method.
[0288] The communication interface 1408 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1400 and other devices or a communication network.
[0289] The embodiment of the present application further provides a computing device cluster, which includes at least one computing device 1400. The memory 1406 of one or more computing devices 1400 in the computing device cluster may store the same instructions for executing the positioning method.
[0290] The computing device 1400 may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device 1400 may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0291] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network, which may be a wide area network or a local area network.
[0292] The present application also provides a computer program product including instructions. This computer program product can be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to perform a positioning method.
[0293] The present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device, or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute the positioning method.
[0294] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is performed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instruction can be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a tape; it can also be an optical medium, such as a digital video disc (DVD); it can also be a semiconductor medium, such as a solid state drive (SSD).
[0295] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A positioning method based on cloud technology, characterized in that: The method comprises: Acquire image data to be located, where the image data to be located includes a picture or a video; Retrieving the image data to be located in a three-dimensional model database to obtain first point cloud data that matches the similarity of the image data to be located; wherein the three-dimensional model database includes a plurality of point cloud data obtained by sampling a three-dimensional model of a location to which the image data to be located belongs, and the point cloud data is used to indicate: points with position information within a sampling area in the three-dimensional model; Based on the points with position information in the first point cloud data, the image data to be located is registered to obtain the first position corresponding to the image data to be located.
2. The method according to claim 1, characterized in that The method further comprises: Receive sampling density parameters; According to the sampling density parameter, a sampling area of the three-dimensional model of the location to which the image data to be located belongs is divided into a plurality of sub-sampling areas; Point cloud data are sampled for each of the plurality of sub-sampling areas to obtain the three-dimensional model database.
3. The method according to claim 1 or 2, characterized in that: The registering the image data to be located based on the points with position information in the first point cloud data to obtain the first pose corresponding to the image data to be located includes: Generate a processing interface corresponding to the first point cloud data; Receiving a trigger operation of the user on the processing interface; In response to the trigger operation, determining the point cloud data to be registered selected by the user from the first point cloud data; The image data to be positioned is aligned according to the points with position information in the point cloud data to be aligned, so as to obtain the first position pose corresponding to the image data to be positioned.
4. The method according to claim 3, characterized in that The processing interface includes a distribution heat map of the first point cloud data, which is used to indicate: the density of points with location information of the first point cloud data in the three-dimensional model of the location to which the image data to be located belongs.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When receiving a comparison display instruction triggered by a user, comparing and displaying the rendered image data of the three-dimensional model at the first pose and the image data to be positioned; When a separate display instruction triggered by a user is received, the rendered image data of the three-dimensional model at the first pose or the image data to be positioned is displayed separately.
6. The method according to any one of claims 1 to 5, characterized in that The three-dimensional model database also includes image data corresponding to the point cloud data, the image data is used to indicate: a plane image within a sampling area in the three-dimensional model of the location to which the image data to be located belongs, after registering the image data to be located based on the points with position information in the first point cloud data to obtain the first pose corresponding to the image data to be located, the method further includes: Extracting first multi-level features of the image data to be located and second multi-level features of the plane image corresponding to the first point cloud data; the multi-level features are used to indicate: feature combinations obtained after passing through feature extraction networks with different numbers of layers; The first posture is calibrated according to the first multi-level features and the second multi-level features to obtain a second posture.
7. The method according to any one of claims 1 to 6, characterized in that The three-dimensional model database further includes semantic data corresponding to the point cloud data, the semantic data being used to indicate semantic information within a sampling area in the three-dimensional model of the location to which the image data to be located belongs, and the step of retrieving the image data to be located in the three-dimensional model database to obtain first point cloud data that matches the similarity of the image data to be located includes: Determine the semantic information of the image data to be located, retrieve the semantic information of the image data to be located in a three-dimensional model database, and obtain first semantic data that matches the semantic information of the image data to be located in similarity; Based on the correspondence between the point cloud data and the semantic data, the first point cloud data corresponding to the first semantic data is determined.
8. The method according to any one of claims 1 to 6, characterized in that The step of retrieving the image data to be located in the three-dimensional model database to obtain first point cloud data having a similarity matching with the image data to be located comprises: The point cloud information of the image data to be located is determined, and the point cloud information of the image data to be located is retrieved in a three-dimensional model database to obtain first point cloud data that matches the point cloud information of the image data to be located in similarity.
9. A positioning device based on cloud technology, characterized in that: The device comprises: An acquisition module, used to acquire image data to be located, wherein the image data to be located includes a picture or a video; A retrieval module is used to retrieve the image data to be located in a three-dimensional model database to obtain first point cloud data that matches the similarity of the image data to be located; wherein the three-dimensional model database includes a plurality of point cloud data obtained by sampling a three-dimensional model of a location to which the image data to be located belongs, and the point cloud data is used to indicate: points with position information within a sampling area in the three-dimensional model; The registration module is used to register the image data to be located based on the points with position information in the first point cloud data to obtain the first position corresponding to the image data to be located.
10. The device according to claim 9, characterized in that The device also includes: The sampling module is used to receive a sampling density parameter, divide the sampling area of the three-dimensional model of the location to which the image data to be located belongs into multiple sub-sampling areas according to the sampling density parameter, and sample point cloud data of the multiple sub-sampling areas respectively to obtain the three-dimensional model database.
11. The device according to claim 9 or 10, characterized in that The registration module is specifically used to generate a processing interface corresponding to the first point cloud data and receive a trigger operation of the user on the processing interface; in response to the trigger operation, determine the point cloud data to be registered selected by the user from the first point cloud data, and, based on the points with position information in the point cloud data to be registered, register the image data to be positioned to obtain the first pose corresponding to the image data to be positioned.
12. The device according to claim 11, characterized in that The processing interface includes a distribution heat map of the first point cloud data, which is used to indicate: the density of points with location information of the first point cloud data in the three-dimensional model of the location to which the image data to be located belongs.
13. The device according to any one of claims 9 to 12, characterized in that The device also includes: A display module is used to compare and display the rendered image data of the three-dimensional model at the first pose and the image data to be positioned when a comparative display instruction triggered by the user is received; and to separately display the rendered image data of the three-dimensional model at the first pose or the image data to be positioned when a separate display instruction triggered by the user is received.
14. The device according to any one of claims 9 to 13, characterized in that The three-dimensional model database also includes image data corresponding to the point cloud data, and the image data is used to indicate: a plane image within a sampling area in the three-dimensional model of the location to which the image data to be located belongs, and the device also includes: A calibration module is used to extract first multi-level features of the image data to be located and second multi-level features of the plane image corresponding to the first point cloud data, and to calibrate the first posture to obtain a second posture based on the first multi-level features and the second multi-level features; the multi-level features are used to indicate: feature combinations obtained after passing through feature extraction networks with different numbers of layers.
15. The device according to any one of claims 9 to 14, characterized in that The three-dimensional model database also includes semantic data corresponding to the point cloud data, and the semantic data is used to indicate: semantic information within a sampling area in the three-dimensional model of the location to which the image data to be located belongs. The retrieval module is specifically used to determine the semantic information of the image data to be located, retrieve the semantic information of the image data to be located in the three-dimensional model database, and obtain first semantic data that matches the similarity of the semantic information of the image data to be located; and, based on the correspondence between the point cloud data and the semantic data, determine the first point cloud data corresponding to the first semantic data.
16. The device according to any one of claims 9 to 14, characterized in that The retrieval module is specifically used to determine the point cloud information of the image data to be located, retrieve the point cloud information of the image data to be located in the three-dimensional model database, and obtain first point cloud data that matches the point cloud information of the image data to be located in similarity.
17. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.
18. A computer program product comprising instructions, characterized in that When the instructions are executed by a computer device cluster, the computer device cluster executes the method according to any one of claims 1 to 8.
19. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Visual positioning method, device and equipment and storage medium
CN111862205A
Visual positioning method and device based on map construction
CN112598736A
Global repositioning method and device, electronic equipment and computer storage medium
CN115170652A
Indoor space high-precision visual position positioning method, terminal and storage medium
CN115578539A
Information processing method and device, positioning method and device, electronic device and storage medium
US20220108528A1
Cited By
Scene perception data processing method, scene perception data control method, electronic product and medium
CN120405640A
