Method and system for obtaining a global camera pose of a camera which has produced an image
The method employs a neural network with a weighted rigid alignment module to geometrically estimate camera pose from a single image, addressing high localization errors and geometric information deficiencies, resulting in accurate and efficient pose estimation without 3D models, enhancing existing camera relocalization techniques.
Patent Information
- Application Number
- PCT/EP2023/055749
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-12
AI Technical Summary
Existing methods for global camera pose estimation from a single image suffer from high localization errors, lack of geometric information usage, and reliance on memorization rather than geometric features, leading to inaccurate pose estimation and inability to incorporate 3D scene information.
A method utilizing a neural network with a weighted rigid alignment module that generates camera and global coordinate data, aligns them based on learned weights, and estimates pose geometrically through point cloud alignment, incorporating implicit depth and 3D global coordinates without requiring 3D models or depth labels, allowing for accurate pose estimation using geometric information.
The solution achieves more accurate global camera pose estimation in real-time, reducing training time and memory requirements, and enabling cost-effective applications with only a single image, while providing a compact scene representation and robust pose estimation.
Smart Images

Figure EP2023055749_12092024_PF_FP_ABST
Abstract
Description
[0001] METHOD AND SYSTEM FOR OBTAINING A GLOBAL CAMERA POSE OF A CAMERA WHICH HAS PRODUCED AN IMAGE
[0002] TECHNICAL FIELD
[0003] The disclosure relates generally to global camera relocalization from a single image, and more particularly, the disclosure relates to a method of obtaining a global camera pose of a camera which has produced an image. Moreover, the disclosure relates to a system of obtaining the global camera pose of the camera which has produced an image.
[0004] BACKGROUND
[0005] Estimating a position and an orientation of a camera from a single image has been a research area in computer vision as it plays a crucial role in many domains such as robotics, and augmented / virtual reality. With the advent of deep learning in computer vision, existing approaches leverage neural networks for data driven pose estimation.
[0006] Global camera re-localization typically finds a 6 Degrees of Freedom (DoF) pose of a camera, i.e., a location and the orientation, in a global reference frame given a single image. Existing solutions solve the global localization problem by designing the solution as a regression problem whereby the input two-dimensional (2D) image is mapped to the 6 Degrees of Freedom (DoF) pose. The 6 DoF refers to a specific number of axes that a rigid body can freely move in a three-dimensional space. The 6 DoF pose estimation is a process of detecting the 6 DoF pose of an object, which includes its location and orientation. In this context, a Convolutional Neural Network (CNN) is employed by the existing solutions to learn a function that encodes the input into a latent feature (i.e., a latent image representation). One or more regression layers are employed by the existing solutions to map the latent image representation into the pose (i.e., a position and an orientation).
[0007] To improve the pose accuracy, the existing solutions implement different constraints on the learning process to better encode the latent vector and thus obtain a more accurate pose regression. An existing method addresses the issue of loss imbalance between the orientation and translation losses by learning the weighting factors while training. This existing method provides a solution for the pose estimation from a single image by mapping the image into a pose. In this existing method, the network is trained to regress poses. Thus, the network learns to memorize poses and as a result, for a new image, the network interpolates from memorized poses which thereby produces inaccurate poses. The disadvantages of this existing method include: (i) the network does not use geometric information to estimate the pose as it just maps image(s) to a pose, (ii) the localization errors are relatively high (i.e., in meters for outdoor scenes), and (iii) regression can be thought of as memorization, i.e., the network estimates new poses from what it has memorized, and it cannot incorporate three-dimensional (3D) scene information (i.e., 3D scene / coordinates and depth) as it regresses the pose.
[0008] Another existing solution adds relative pose constraints imposed by utilizing a sequence of images for training instead of one. Yet another existing solution provides a method based on attention to force the network to focus on robust objects and features and further utilizes a sequence of images to learn temporally consistent and in- formative features. Yet another existing solution utilizes reprojection loss utilizing a 3D model of the scene.
[0009] Therefore, there arises a need to address the aforementioned technical problem / drawbacks in the pose estimation in order to improve the pose accuracy.
[0010] SUMMARY
[0011] It is an object of the disclosure to provide a method of obtaining a global camera pose of a camera which has produced an image and a system of obtaining the global camera pose of the camera which has produced an image while avoiding one or more disadvantages of prior art approaches.
[0012] This object is achieved by the features of the independent claims. Further, implementation forms are apparent from the dependent claims, the description, and the figures.
[0013] The disclosure provides a method of obtaining a global camera pose of a camera which has produced an image and a system of obtaining the global camera pose of the camera which has produced an image.
[0014] According to a first aspect, there is provided a method of obtaining a global camera pose of a camera which has produced an image. The method includes inputting the produced image to a neural network. The method includes generating camera coordinate data for the image in a frame of the camera. The method includes generating global coordinate data for the image in a global frame. The method includes generating values for a set of weights associated with a weighted rigid alignment module. The method includes aligning, by the weighted rigid alignment module, the camera coordinate data and the global coordinate data based on the generated camera coordinate data, the generated global coordinate data and the generated values for the set of weights. The method includes outputting a global camera pose of the camera which has produced the image, indicating a position and an orientation of the camera.
[0015] The method runs in real-time, stores only the weights of the neural network, and does not rely on a reference to a three-dimension (3D) model to localize. The method requires a single image to localize, and represent a scene as a set of neural network parameters. The method of obtaining the global camera pose of the camera from pose labels using the weighted rigid alignment module aligns an implicitly predicted depth and 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The method obtains more accurate global camera poses by estimating the pose geometrically through a point cloud alignment (e.g., the weighted rigid alignment) by aligning the implicit depth measurement and the 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The method utilizes the pose labels to learn geometric features (i.e., geometric information) of the image / scene and estimates the global camera pose by incorporating geometric information in a closed form solution.
[0016] The method uses the pose labels only to implicitly estimate the 3D geometry of the image / scene, and does not require 3D coordinates labels or depth labels. Thus, the global camera pose can be estimated more accurately using the geometric information compared to regression. The method provides easiness of the availability of data. A system that employs the method is cost effective and can be used in many applications as only a single image is needed to localize.
[0017] Optionally, the neural network generates the camera coordinate data, the global coordinate data and the set of weights. Optionally, the neural network generates a subset of the camera coordinate data, and an inverse projection module generates a remainder of the camera coordinate data by receiving as input the subset of the camera coordinate data and intrinsic parameters of the camera. The intrinsic parameters of the camera may include at least one of a focal length of the camera, a principal point offset and a skew. The subset of the camera coordinate data may be a depth channel. Optionally, the position and the orientation of the camera is provided in 6 degrees of freedom. The weighted rigid alignment may be a point cloud alignment.
[0018] Optionally, the neural network is trained in a training phase where pose labels are used as a supervision signal for the neural network which minimizes a pose label loss function. The training is performed from the pose labels only (i.e., without ground truth depth and 3D global coordinates). The method requires less training time as the method does not force the neural network to converge to specific pose labels and enables the neural network to decide on the proper quantities. The method can be finetuned easily with new data. The method computes the global camera pose geometrically using the geometric quantities through the weighted rigid alignment.
[0019] Optionally, the training phase uses a consistency term module which receives inputs of the generated camera coordinate data and the generated global coordinate data and aligns the generated camera coordinate data and the generated global coordinate data. The method uses consistency term to align the 3D predictions (i.e., implicitly learned geometric quantities, depth, and the 3D global coordinates) of the neural network. The method assists in learning a better 3D geometry of the image / scene and thus provides more robust pose estimation. The method further assists in detecting if it is used by visual inspection of the neural network outputs. The method represents the 3D image / scene as weights / parameters of the neural network. Thus, the method provides more compact scene representation and requires less memory compared to 3D Structure from Motion (SFM) models of a scene.
[0020] Optionally, the pose labels which are used to supervise the training of the neural network in the training phase are obtained from a Global Positioning System and an Inertial Measurement Unit. Optionally, a pose label has a rotation matrix and a translation vector. Optionally, for a pose label, a rotation matrix of the pose label is obtained from the Inertial Measurement Unit and a translation vector of the pose label is obtained from the Global Positioning System.
[0021] Unlike the 3D coordinates labels and depth labels, the global camera poses are easily obtained from sensors, for example, a global positing sensor (GPS), an inertial measurement unit (EMU), Wi-Fi routers without the need to create 3D Structure from Motion (SFM) models or capture the 3D scene using depth sensors or laser scanners, lidars, etc.
[0022] Optionally, the camera coordinate data and the global coordinate data is provided in three channels (x, y, z). The weighted rigid alignment module aligns the camera coordinate data and the global coordinate data according to the values for the set of weights by performing matching of image pixel coordinates. Optionally, the global camera pose output is used to navigate to a specific place. Optionally, the input image has a set of RGB values at specific pixel locations. According to a second aspect, there is provided a system including means adapted for carrying out the above method.
[0023] The system runs in real-time, stores only the weights of the neural network, and does not rely on a reference to a three-dimension (3D) model to localize. The system requires a single image to localize, and represent a scene as a set of neural network parameters. The system of obtaining the global camera pose of the camera from pose labels using the weighted rigid alignment module aligns an implicitly predicted depth and 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The system obtains more accurate global camera poses by estimating the pose geometrically through a point cloud alignment (e.g., the weighted rigid alignment) by aligning the implicitly depth measurement and the 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The system utilizes the pose labels to learn geometric features (i.e., geometric information) of the image / scene and estimates the global camera pose by incorporating geometric information in a closed form solution.
[0024] The system uses the pose labels only to implicitly estimate the 3D geometry of the image / scene, and does not require 3D coordinates labels or depth labels. Thus, the global camera pose can be estimated more accurately using the geometric information compared to regression. The system provides easiness of the availability of data. The system is cost effective and can be used in many applications as only a single image is needed to localize.
[0025] According to a third aspect, there is provided a computer program product including instructions for carrying out the above method, when the computer program is executed on a computer system.
[0026] Therefore, in contradistinction to the existing solutions, the method runs in real-time, stores only the weights of the neural network, and does not rely on a reference a three-dimension (3D) model to localize. The method requires a single image to localize, and represent a scene as a set of neural network parameters. The method of obtaining the global camera pose of the camera from pose labels using the weighted rigid alignment module aligns an implicitly predicted depth and 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The method obtains more accurate global camera poses by estimating the pose geometrically through a point cloud alignment (e.g., the weighted rigid alignment) by aligning the implicit depth measurement and the 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The method utilizes the pose labels to learn geometric features (i.e., geometric information) of the image / scene and estimates the global camera pose by incorporating geometric information in a closed form solution. The method provides easiness of the availability of data. A system that employs the method is cost effective and can be used in many applications as only a single image is needed to localize.
[0027] These and other aspects of the disclosure will be apparent from the implementation(s) described below.
[0028] BRIEF DESCRIPTION OF DRAWINGS
[0029] Implementations of the disclosure will now be described, by way of example only, with reference to the accompanying drawings, in which:
[0030] FIG. 1 is a block diagram that illustrates a system of obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure;
[0031] FIG. 2 is a block diagram that illustrates a system including an inverse projection module for obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure;
[0032] FIG. 3 illustrates an exemplary illustration of generating a global camera pose of a camera which has produced an image using a system in accordance with an implementation of the disclosure;
[0033] FIG. 4 illustrates an exemplary illustration of a weighted rigid alignment module of a system for obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure;
[0034] FIG. 5 illustrates visual localization datasets of indoor images / scenes to obtain a global camera pose using a present method in accordance with an implementation of the disclosure;
[0035] FIG. 6 illustrates visual localization datasets of outdoor images / scenes to obtain a global camera pose using a present method in accordance with an implementation of the disclosure;
[0036] FIGS. 7A-7B are flow diagrams that illustrate a method of obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure; and FIG. 8 is an illustration of a computer system in which the various architectures and functionalities of the various previous implementations may be implemented.
[0037] DETAILED DESCRIPTION OF THE DRAWINGS
[0038] Implementations of the disclosure provide a method of obtaining a global camera pose of a camera which has produced an image and a system of obtaining the global camera pose of the camera which has produced an image.
[0039] To make solutions of the disclosure more comprehensible for a person skilled in the art, the following implementations of the disclosure are described with reference to the accompanying drawings.
[0040] Terms such as "a first", "a second", "a third", and "a fourth" (if any) in the summary, claims, and foregoing accompanying drawings of the disclosure are used to distinguish between similar objects and are not necessarily used to describe a specific sequence or order. It should be understood that the terms so used are interchangeable under appropriate circumstances, so that the implementations of the disclosure described herein are, for example, capable of being implemented in sequences other than the sequences illustrated or described herein. Furthermore, the terms "include" and "have" and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method, a system, a product, or a device that includes a series of steps or units, is not necessarily limited to expressly listed steps or units but may include other steps or units that are not expressly listed or that are inherent to such process, method, product, or device.
[0041] FIG. 1 is a block diagram that illustrates a system of obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure. The system is configured to obtain the global camera pose of the camera which has produced the image. The system is configured to (i) input the produced image to a neural network 102, (ii) generate camera coordinate data 104 / 3D camera coordinate data for the image in a frame of the camera, and (iii) generate global coordinate data 106 / 3D global coordinate data for the image in a global frame. The camera frame refers to a frame of the camera itself, so a frame which moves as the camera itself moves. The camera frame may be a 3D coordinate frame used by the camera. The global frame refers to any absolute reference frame / fixed frame which is taken as a reference to observe the behavior of other frames (e.g., the camera frame) and remain at rest with respect to time. Accordingly, the global frame remains stationary as the camera (and the camera frame) moves.
[0042] The system is also configured to generate values for a set of weights / heatmap 108 associated with a weighted rigid alignment module 110, and align, by the weighted rigid alignment module 110, the camera coordinate data 104 and the global coordinate data 106 based on the generated camera coordinate data 104, the generated global coordinate data 106 and the generated values for the set of weights 108. The system is then configured to output the global camera pose of the camera which has produced the image, indicating a position and an orientation of the camera.
[0043] The system estimates global camera relocalization from a single image based on neural network learning. The system provides a rotation and a position of the camera relative to the global frame of a scene from the image. The system implicitly obtains three-dimensional (3D) geometric information / constraints of the image / scene from the given poses only without requiring 3D models, depth labels, or 3D coordinates labels and uses the geometric information to estimate the global camera pose rather than regressing the pose.
[0044] The system runs in real-time, stores only the weights of the neural network 102, and does not rely on a reference to a three-dimension (3D) model to localize. The system requires only one image to localize, and represent a scene as a set of neural network parameters. The system of obtaining the global camera pose of the camera from pose labels using the weighted rigid alignment module 110 aligns an implicitly predicted depth and 3D global coordinates (i.e., the camera coordinate data 104 and the global coordinate data 106). The system obtains more accurate global camera poses by estimating the pose geometrically through a point cloud alignment (e.g., the weighted rigid alignment) by aligning the implicitly depth measurement and the 3D global coordinates (i.e., the camera coordinate data 104 and the global coordinate data 106) The system utilizes the pose labels to learn geometric features (i.e., geometric information) of the image / scene and estimates the global camera pose by incorporating geometric information in a closed form solution.
[0045] The system uses the pose labels only to implicitly estimate the 3D geometry of the image / scene, and does not require 3D coordinates labels or depth labels. Thus, the system estimates the global camera pose more accurately using the geometric information compared to regression. The system provides easiness of the availability of data. The system is cost effective and can be used in many applications as only a single image is needed to localize.
[0046] Optionally, the neural network 102 generates the camera coordinate data 104, the global coordinate data 106 and the set of weights 108. The camera coordinate data 104 may be a 3D camera coordinate data and the global coordinate data 106 may be a 3D global coordinate data. Optionally, the pose labels which are used to supervise the training of the neural network 102 in the training phase are obtained from a Global Positioning System (GPS) and an Inertial Measurement Unit (IMU). Optionally, only the pose labels (i.e., positions and orientations) are required to train the neural network 102. The positions may be also obtained indoors relative to Wi-Fi routers. Optionally, a pose label has a rotation matrix and a translation vector. Optionally, for a pose label, a rotation matrix of the pose label is obtained from the Inertial Measurement Unit and a translation vector of the pose label is obtained from the Global Positioning System. For example, based on the availability of Global Positioning System and the Inertial Measurement Unit, the system can be potentially used for the following applications: (i) crowd sourcing of data from mobile phones / electronic devices (e.g., the camera, GPS, IMU of the mobile phone) for a certain place / historical area / city, or from a collection of public images and the metadata, (ii) training a model (e.g., the neural network 102) on a cloud from the collected data, and (iii) localizing / navigating from the given image (e.g., on the mobile phone), navigating to a certain place (e.g., restaurant, store, museum) in a city, and navigating inside a mall to a certain shop, and (iv) from an image of the certain place, identifying a list of relevant information about the image / scene (i.e., Augmented Reality).
[0047] Optionally, unlike the 3D coordinates labels and depth labels, the global camera poses are easily obtained from sensors, for example the global positing sensor (GPS), the inertial measurement unit (IMU) without the need to create 3D Structure from Motion (SFM) models or capture the 3D scene using depth sensors or laser scanners, lidars, etc.
[0048] Optionally, the camera coordinate data 104 and the global coordinate data 106 is provided in three channels (x, y, z). The weighted rigid alignment module 110 aligns the camera coordinate data 104 and the global coordinate data 106 according to the values for the set of weights 108 by performing matching of image pixel coordinates. Optionally, the global camera pose output is used to navigate to a specific place. Optionally, the input image has a set of RGB values at specific pixel locations. Optionally, the neural network 102 is trained in a training phase where pose labels are used as a supervision signal for the neural network 102 which minimizes a pose label loss function. For example, the system takes an input 3-channels mage (i.e., a RGB image) of dimension H*W*3 and provides as output, the camera coordinate data 104 for the image in the frame of the camera, the global coordinate data 106 for the image in the global frame (3-channels layer), the set of weights / heatmap 108. The weighted rigid alignment module 110 aligns the camera coordinate data 104 and the global coordinate data 106 (i.e., 3D point clouds) according to the values for the set of weights 108 by performing matching of image pixel coordinates and outputs a 6 degrees of freedom (DoF) global camera pose. The 3D geometric information of the image / scene is established only based on the pose labels. Optionally, the position and the orientation of the camera is provided in 6 degrees of freedom. The weighted rigid alignment may be a point cloud alignment.
[0049] For example, for a set of input RGB values I = {li, ..., IM} at certain pixel locations, a function can be defined as the neural network 102 / deep network with a set of weights W to yield two outputs. One 3D point cloud is a set of 3D coordinates in the camera frame (i.e., the camera coordinate data 104) X = {xi, ..., xM} and the other 3D point cloud is a set of 3D coordinates in the global frame (i.e., the global coordinate data 106) Y = {yi, ..., yM}. Inherently, the two 3D points from the two 3D point clouds can be matched through the image pixel coordinates. Using the weighted rigid alignment module 110, a global camera pose (P) can be estimated by aligning the two 3D point clouds (i.e., the camera coordinate data 104 and the global coordinate data 106). The global camera pose (P) is composed of a rotation matrix R and a translation vector T. For a ground truth pose P with rotation R and translation T components, a cost function can be defined to minimize the difference between the estimated and ground truth rotation and translation components. This pose label loss function is defined as: 111 + || T — T ||i where || ... ||i denotes h norm. The system deploys a gradient descent to minimize the loss and to obtain optimal parameters of the neural network 102 / deep network. Optionally, the training phase uses a consistency term module 112 which receives inputs of the generated camera coordinate data 104 and the generated global coordinate data 106 and aligns the generated camera coordinate data 104 and the generated global coordinate data 106. The system enables the estimation of the two 3D point clouds (i.e., the camera coordinate data 104 and the global coordinate data 106) in two arbitrary coordinates systems without constraints. Based on the availability of ground truth poses that are considered for training, the system may constraint the predictions to be aligned according to the ground truth pose. In other words, the predicted 3D point cloud of the system when transformed by the inverse of the ground truth pose into the camera coordinates results in the predicted 3D coordinates in the camera frame. The consistency term module 112 is written as: where || ... ||2 denotes h norm. M is a total number of points. Xi is a 3D coordinates in the camera frame, yi is the 3D coordinates in the global frame, is the inverse of the ground truth pose (i.e., transformation matrix from the global frame into the camera frame).
[0050] FIG. 2 is a block diagram that illustrates a system including an inverse projection module 214 for obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure. The system is configured to obtain the global camera pose of the camera which has produced an image. The system is configured to (i) input the produced image to a neural network 202, (ii) generate camera coordinate data 204 for the image in a frame of the camera, (iii) generate global coordinate data 206 for the image in a global frame, (iv) generate values for a set of weights / heatmap 208 associated with a weighted rigid alignment module 210, (v) align, by the weighted rigid alignment module 210, the camera coordinate data 204 and the global coordinate data 206 based on the generated camera coordinate data 204, the generated global coordinate data 206 and the generated values for the set of weights 208, and (vi) output the global camera pose of the camera which has produced the image, indicating a position and an orientation of the camera.
[0051] Optionally, the neural network 202 generates a subset of the camera coordinate data 204, and the inverse projection module 214 generates a remainder of the camera coordinate data 204 by receiving as input the subset of the camera coordinate data 204 and intrinsic parameters of the camera. The system with intrinsic parameters of the camera is depicted in FIG. 2. In this case, the 3D camera coordinate (i.e., the camera coordinate data 204) may be obtained indirectly. Instead of obtaining the 3D coordinate data 204 in the camera frame directly, depth can be obtained first from the neural network 202. The depth forms the third coordinate of the 3D coordinates (the z coordinate). Given the depth, the other two coordinates (x and y) can be obtained using the inverse projection module 214 which is defined as: where u is pixel coordinates, k is a camera intrinsic matrix, d is a depth, and p is a resulting point (x and y) in the system. The intrinsic parameters of the camera may include at least one of the focal length of the camera, the principal point offset and the skew. The subset of the camera coordinate data 204 may be a depth channel. Optionally, the camera coordinate data 204 and the global coordinate data 206 is provided in three channels (x, y, z).
[0052] Optionally, the neural network 202 is trained in a training phase where pose labels are used as a supervision signal for the neural network 202 which minimizes a pose label loss function. Optionally, the training is performed from the pose labels only (i.e., without ground truth depth and 3D global coordinates). The system requires less training time as the system does not force the neural network 202 to converge to specific pose labels and enables the neural network 202 to decide on the proper quantities. The system computes the global camera pose geometrically using the geometric quantities through the weighted rigid alignment.
[0053] Optionally, the training phase uses a consistency term module 212 which receives inputs of the generated camera coordinate data 204 and the generated global coordinate data 206 and aligns the generated camera coordinate data 204 and the generated global coordinate data 206. The system uses the consistency term module 212 to align the 3D predictions (i.e., implicitly learned geometric quantities, depth and the 3D global coordinates) of the neural network 202. The system assists in learning a better 3D geometry of the image / scene and thus provides more robust pose estimation. The system further assists in detecting if it is used by visual inspection of the neural network outputs. The system represents the 3D image / scene as weights / parameters of the neural network 202. Thus, the system provides more compact scene representation and requires less memory compared to 3D Structure from Motion (SFM) models of a scene.
[0054] FIG. 3 illustrates an exemplary illustration of generating a global camera pose of a camera 302 which has produced an image using a system in accordance with an implementation of the disclosure. The system is configured to obtain a global camera pose of the camera 302 which has produced an image. The system is configured to (i) input the produced image to a neural network, (ii) generate camera coordinate data for the image in a frame of the camera 302, (iii) generate global coordinate data for the image in a global frame 304, (iv) generate values for a set of weights / heatmap associated with a weighted rigid alignment module, (v) align, by the weighted rigid alignment module, the camera coordinate data and the global coordinate data based on the generated camera coordinate data, the generated global coordinate data and the generated values for the set of weights, and (vi) output a global camera pose of the camera 302 which has produced the image, indicating a position and an orientation of the camera 302.
[0055] The system estimates the global camera relocalization from a single image based on the neural network learning. The system provides a rotation and a position of the camera 302 relative to the global frame 304 of a scene from the image. The system implicitly obtains three- dimensional (3D) geometric information / constraints of the image / scene from the given poses only without requiring 3D models, depth labels, 3D coordinates labels and use the geometric information to estimate the global camera pose rather than regress the pose.
[0056] Optionally, the camera coordinate data and the global coordinate data is provided in three channels (x, y, z). The weighted rigid alignment module aligns the camera coordinate data and the global coordinate data according to the values for the set of weights by performing matching of image pixel coordinates. Optionally, the global camera pose output is used to navigate to a specific place. Optionally, the input image has a set of RGB values at specific pixel locations.
[0057] FIG. 4 illustrates an exemplary illustration of a weighted rigid alignment module 410 of a system for obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure. The system is configured to obtain the global camera pose of the camera which has produced the image. The system is configured to (i) input the produced image to a neural network, (ii) generate camera coordinate data 404 (e.g., 3D camera coordinate data, Y) for the image in a frame of the camera 402, (iii) generate global coordinate data 406 (e.g., 3D global coordinate data, X) for the image in a global frame 408, (iv) generate values for a set of weights / heatmap associated with a weighted rigid alignment module 410. The weighted rigid alignment module 410 aligns the camera coordinate data 404 and the global coordinate data 406 based on the generated camera coordinate data 404, generated global coordinate data 406 and the generated values for the set of weights and outputs a global camera pose of the camera which has produced the image, indicating a position and an orientation of the camera. Optionally, the camera coordinate data 404 and the global coordinate data 406 is provided in three channels (x, y, z). The weighted rigid alignment module 410 aligns the camera coordinate data 404 and the global coordinate data 406 according to the values for the set of weights by performing matching of image pixel coordinates. Optionally, the position and the orientation of the camera is provided in 6 degrees of freedom. The weighted rigid alignment may be a point cloud alignment.
[0058] Optionally, the point cloud alignment is defined as:
[0059] Where, Xi is the 3D global coordinate data 406 in the global frame, yi is the 3D camera coordinate data 404 in the camera frame, R is a rotation matrix and T is a translation vector of a pose label, P. Optionally, a consistency term module is implemented to let the network have coherent predictions: Consistency term = X - [R, t]Y. It aligns the predicted point clouds, where X is 3D coordinates in global frame, Y is 3D coordinates in camera frame and [R, t] is the pose label.
[0060] FIG. 5 illustrates visual localization datasets of indoor images / scenes 502A-B to obtain a global camera pose using a present method in accordance with an implementation of the disclosure. The experiments are performed on the commonly used visual localization datasets of the indoor images 502A-B to obtain pose accuracy using the method and compared it against other direct methods with similar constraints. The method is performed by a system which requires a memory storage of 90 megabytes (MB) for performing the experiment (i.e., only network weights are saved). The system has a runtime of 6 milliseconds (ms) for NVIDIA Quadro RTX 8000 and has a runtime of 20 ms for GeForce GTX TITAN X. This experiment is tested on the indoor images 502A-B with a resolution of 480*640. The output resolution of the indoor images
[0061] 502A-B is equal to 1 / 8 of the input resolution. The output resolution for indoor images 502A- B is 80*60. The training time required by the system for performing this experiment is few hours with 300k-600k iterations. The experiment is optionally implemented in the system using Python, Pytorch and Linux. The experimental results, as shown in below table 1, shows that the global camera pose of the indoor images / scenes 502 A-B obtained by the method has improved accuracy when compared to the camera pose obtained by other direct methods / system.
[0062] Table 1 :
[0063] FIG. 6 illustrates visual localization datasets of outdoor images / scenes 602 A-B to obtain a global camera pose using a present method in accordance with an implementation of the disclosure. The experiments are performed on the commonly used visual localization datasets of the outdoor images 602A-B to obtain pose accuracy using the method and compared it against other direct methods with similar constraints. The experiments are performed on outdoor images 602A-B of Cambridge Landmarks and the Kings College at Cambridge University in the United Kingdom. The area covered is 140*40 which is equal to 5600 meter square (m2). The experimental results, as shown in below table 2, shows that the global camera pose of the outdoor images / scenes 602 A-B obtained by the method has improved accuracy when compared to the camera pose obtained by other direct methods.
[0064] Table 2:
[0065] FIGS. 7A-7B are flow diagrams that illustrate a method of obtaining a global camera pose of a camera which has produced an image in accordance with an implementation of the disclosure. At a step 702, the produced image is inputted to a neural network. At a step 704, camera coordinate data is generated for the image in a frame of the camera. At a step 706, global coordinate data is generated for the image in a global frame. At a step 708, values are generated for a set of weights associated with a weighted rigid alignment module. At a step 710, the camera coordinate data and the global coordinate data is aligned, by the weighted rigid alignment module, based on the generated camera coordinate data, the generated global coordinate data and the generated values for the set of weights. At a step 712, a global camera pose of the camera which has produced the image indicating a position and an orientation of the camera is outputted.
[0066] The method runs in real-time, stores only the weights of the neural network, and does not rely on a reference a three-dimension (3D) model to localize. The method requires a single image to localize, and represent a scene as a set of neural network parameters. The method of obtaining the global camera pose of the camera from pose labels using the weighted rigid alignment module aligns an implicitly predicted depth and 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The method obtains more accurate global camera poses by estimating the pose geometrically through a point cloud alignment (e.g., the weighted rigid alignment) by aligning the implicitly depth measurement and the 3D global coordinates (i.e., the camera coordinate data and the global coordinate data). The method utilizes the pose labels to learn geometric features (i.e., geometric information) of the image / scene and estimates the global camera pose by incorporating geometric information in a closed form solution.
[0067] The method uses the pose labels only to implicitly estimate the 3D geometry of the image / scene, and does not require 3D coordinates labels or depth labels. Thus, the global camera pose can be estimated more accurately using the geometric information compared to regression. The method provides easiness of the availability of data. A system that employs the method is cost effective and can be used in many applications as only a single image is needed to localize. Optionally, the neural network generates the camera coordinate data, the global coordinate data and the set of weights. Optionally, the neural network generates a subset of the camera coordinate data, and an inverse projection module generates a remainder of the camera coordinate data by receiving as input the subset of the camera coordinate data and intrinsic parameters of the camera. The intrinsic parameters of the camera may include at least one of the focal lengths of the camera, the principal point offset and the skew. The subset of the camera coordinate data may be a depth channel. Optionally, the position and the orientation of the camera is provided in 6 degrees of freedom. The weighted rigid alignment may be a point cloud alignment.
[0068] Optionally, the neural network is trained in a training phase where pose labels are used as a supervision signal for the neural network which minimizes a pose label loss function. The training is performed from the pose labels only (i.e., without ground truth depth and 3D global coordinates). The method requires less training time as the method does not force the neural network to converge to specific pose labels and enables the neural network to decide on the proper quantities. The method can be finetuned easily with new data. The method computes the global camera pose geometrically using the geometric quantities through the weighted rigid alignment.
[0069] Optionally, the training phase uses a consistency term module which receives inputs of the generated camera coordinate data and the generated global coordinate data and aligns the generated camera coordinate data and the generated global coordinate data. The method uses consistency term to align the 3D predictions (i.e., implicitly learned geometric quantities, depth and the 3D global coordinates) of the neural network. The method assists in learning a better 3D geometry of the image / scene and thus provides more robust pose estimation. The method further assists in detecting if it is used by visual inspection of the neural network outputs. The method represents the 3D image / scene as weights / parameters of the neural network. Thus, the method provides more compact scene representation and requires less memory compared to 3D Structure from Motion (SFM) models of a scene.
[0070] Optionally, the pose labels which are used to supervise the training of the neural network in the training phase are obtained from a Global Positioning System and an Inertial Measurement Unit. Optionally, a pose label has a rotation matrix and a translation vector. Optionally, for a pose label, a rotation matrix of the pose label is obtained from the Inertial Measurement Unit and a translation vector of the pose label is obtained from the Global Positioning System. Optionally, the camera coordinate data and the global coordinate data is provided in three channels (x, y, z). The weighted rigid alignment module aligns the camera coordinate data and the global coordinate data according to the values for the set of weights by performing matching of image pixel coordinates.
[0071] Optionally, the global camera pose output is used to navigate to a specific place. Optionally, the input image has a set of RGB values at specific pixel locations.
[0072] In an embodiment, a computer program product including instructions for carrying out the above method, when the computer program is executed on a computer system.
[0073] FIG. 8 is an illustration of a computer system in which the various architectures and functionalities of the various previous implementations may be implemented. As shown, the computer system 800 includes at least one processor 804 that is connected to a bus 802, wherein the computer system 800 may be implemented using any suitable protocol, such as PCI (Peripheral Component Interconnect), PCI-Express, AGP (Accelerated Graphics Port), Hyper Transport, or any other bus or point-to-point communication protocol (s). The computer system 800 also includes a memory 806.
[0074] Control logic (software) and data are stored in the memory 806 which may take a form of random-access memory (RAM). In the disclosure, a single semiconductor platform may refer to a sole unitary semiconductor-based integrated circuit or chip. It should be noted that the term single semiconductor platform may also refer to multi-chip modules with increased connectivity which simulate on-chip modules with increased connectivity which simulate on- chip operation, and make substantial improvements over utilizing a conventional central processing unit (CPU) and bus implementation. Of course, the various modules may also be situated separately or in various combinations of semiconductor platforms per the desires of the user.
[0075] The computer system 800 may also include a secondary storage 810. The secondary storage 810 includes, for example, a hard disk drive and a removable storage drive, representing a floppy disk drive, a magnetic tape drive, a compact disk drive, digital versatile disk (DVD) drive, recording device, universal serial bus (USB) flash memory. The removable storage drive at least one of reads from and writes to a removable storage unit in a well-known manner. Computer programs, or computer control logic algorithms, may be stored in at least one of the memories 806 and the secondary storage 810. Such computer programs, when executed, enable the computer system 1100 to perform various functions as described in the foregoing. The memory 806, the secondary storage 810, and any other storage are possible examples of computer-readable media.
[0076] In an implementation, the architectures and functionalities depicted in the various previous figures may be implemented in the context of the processor 804, a graphics processor coupled to a communication interface 812, an integrated circuit (not shown) that is capable of at least a portion of the capabilities of both the processor 804 and a graphics processor, a chipset (namely, a group of integrated circuits designed to work and sold as a unit for performing related functions, and so forth).
[0077] Furthermore, the architectures and functionalities depicted in the various previous-described figures may be implemented in a context of a general computer system, a circuit board system, a game console system dedicated for entertainment purposes, an application-specific system. For example, the computer system 800 may take the form of a desktop computer, a laptop computer, a server, a workstation, a game console, an embedded system.
[0078] Furthermore, the computer system 800 may take the form of various other devices including, but not limited to a personal digital assistant (PDA) device, a mobile phone device, a smart phone, a television, and so forth. Additionally, although not shown, the computer system 800 may be coupled to a network (for example, a telecommunications network, a local area network (LAN), a wireless network, a wide area network (WAN) such as the Internet, a peer-to-peer network, a cable network, or the like) for communication purposes through an I / O interface 808.
[0079] It should be understood that the arrangement of components illustrated in the figures described are exemplary and that other arrangement may be possible. It should also be understood that the various system components (and means) defined by the claims, described below, and illustrated in the various block diagrams represent components in some systems configured according to the subject matter disclosed herein. For example, one or more of these system components (and means) may be realized, in whole or in part, by at least some of the components illustrated in the arrangements illustrated in the described figures. In addition, while at least one of these components are implemented at least partially as an electronic hardware component, and therefore constitutes a machine, the other components may be implemented in software that when included in an execution environment constitutes a machine, hardware, or a combination of software and hardware. Although the disclosure and its advantages have been described in detail, it should be understood that various changes, substitutions, and alterations can be made herein without departing from the spirit and scope of the disclosure as defined by the appended claims.
Claims
CLAIMS1. A method of obtaining a global camera pose of a camera (302, 402) which has produced an image, comprising the steps of(a) inputting the produced image to a neural network (102, 202);(b) generating camera coordinate data (104, 204, 404) for the image in a frame of the camera;(c) generating global coordinate data (106, 206, 406) for the image in a global frame (304, 408);(d) generating values for a set of weights (108, 208) associated with a weighted rigid alignment module (110, 210, 410);(e) aligning, by the weighted rigid alignment module, the camera coordinate data and the global coordinate data based on the generated camera coordinate data, the generated global coordinate data and the generated values for the set of weights; and(f) outputting a global camera pose of the camera which has produced the image, indicating a position and an orientation of the camera.
2. The method of claim 1, wherein the neural network generates the camera coordinate data, the global coordinate data and the set of weights.
3. The method of claim 1, wherein the neural network generates a subset of the camera coordinate data, and an inverse projection module (214) generates a remainder of the camera coordinate data by receiving as input the subset of the camera coordinate data and intrinsic parameters of the camera.
4. The method of claim 3, wherein the intrinsic parameters of the camera include at least one of a focal length of the camera, a principal point offset and a skew.
5. The method of claim 3, wherein the subset of the camera coordinate data is a depth channel.
6. The method of claim 1, wherein the position and the orientation of the camera is provided in 6 degrees of freedom.
7. The method of claim 1, wherein the weighted rigid alignment is a point cloud alignment.
8. The method of claim 1, wherein the neural network is trained in a training phase where pose labels are used as a supervision signal for the neural network which minimises a pose label loss function.
9. The method of claim 8, wherein the training phase uses a consistency term module (112, 212) which receives inputs of the generated camera coordinate data and the generated global coordinate data and aligns the generated camera coordinate data and the generated global coordinate data.
10. The method of claim 8, wherein the pose labels which are used to supervise the training of the neural network in the training phase are obtained from a Global Positioning System and an Inertial Measurement Unit.
11. The method of claim 8, wherein a pose label has a rotation matrix and a translation vector.
12. The method of claim 10, wherein, for a pose label, a rotation matrix of the pose label is obtained from the Inertial Measurement Unit and a translation vector of the pose label is obtained from the Global Positioning System.
13. The method of claim 1, wherein the camera coordinate data and the global coordinate data is provided in three channels (x, y, z).
14. The method of claim 1, wherein the weighted rigid alignment module aligns the camera coordinate data and the global coordinate data according to the values for the set of weights by performing matching of image pixel coordinates.
15. The method of claim 1, wherein the global camera pose output is used to navigate to a specific place.
16. The method of claim 1, wherein the input image has a set of RGB values at specific pixel locations.
17. A system comprising means adapted for carrying out the method according to any preceding method claim.
18. A computer program comprising instructions for carrying out the method according to any preceding method claim, when said computer program is executed on a computer system.
Citation Information
Patent Citations
Learning processing equipment and learning processing program
JP2022136544A
