主权项 |
1. A computer implemented method of determining pose data for a user-provided image, comprising:
(a) providing, by one or more computing devices, a plurality of images, each of the plurality of images showing one or more buildings at a user-selected location; (b) receiving, by the one or more computing devices, a manually selected user input mapping a selected position on a two-dimensional image in the plurality of images to a feature of a three-dimensional shape for a selected building in the two-dimensional image, the user input representing the user's indication that the manually selected position corresponds to the feature of the three-dimensional shape; (c) creating, by the one or more computing devices, a three-dimensional model of the selected building at least in part by determining, with a photogrammetry algorithm, a geometry of the three-dimensional model based on the mapping such that, when the three-dimensional model is rendered with the two-dimensional image from a perspective specified by a pose of the two-dimensional image, the feature of the three-dimensional model appears at the selected position of the two-dimensional image, wherein the photogrammetry algorithm determines rays from the user mapping to determine the geometry of the three-dimensional model of the selected building, wherein the geometry of the three-dimensional model determined based on the user mapping is specified by a geometric parameter representing at least one of a scale, a shape, an origin point of an orientation of the three-dimensional model; (d) receiving, by the one or more computing devices, a user-provided image, wherein the user-provided image includes the selected building; (e) detecting, by the one or more computing devices, one or more features of the selected building in the user-provided image; (f) correlating, by the one or more computing devices, the detected features of the selected building in the user-provided image with one or more features of the geometry of the three-dimensional model; and (g) determining, by the one or more computing devices, pose data representing at least a position and orientation of the user-provided image based on the correlation such that, when the three-dimensional model is rendered with the user-provided image from a perspective specified by the pose data, each of the one or more features of the geometry of the three-dimensional model appear at the correlated detected feature of the selected building in the user-provided image. |