SYSTEM AND METHOD FOR DETERMINING GEO-LOCATION(S) IN IMAGES
Determining GPS coordinates of some image point(s) positions in at least two images using a processor configured by program instructions. Receiving position information of some of the positions where an image capture device captured an image. Determining geometry by triangulating various registration objects in the images. Determining GPS coordinates of the image point(s) positions in at least one of the images. Saving GPS coordinates to memory. This system and method may be used to determine GPS coordinates of objects in an image.
This application claims the benefit of U.S. Provisional Patent Application No. 61/267,243 filed Dec. 7, 2009, the disclosure of which is incorporated by reference herein.
BACKGROUND OF THE INVENTIONThe present invention relates generally to position determination, and more particularly determining the position, location or coordinates of objects, or points in an image with respect to a coordinate system other than the local coordinate system of the image itself.
Determining the position of various objects in an image is useful for understanding the distance between objects or possibly the absolute distance between an object and another object that may not be in the image. Positions of objects in an image are usually determined by taking a photograph of an area. In the photograph there is usually a reference object whose position is known. The position of the other objects in the image is determined by computing the distance away from the reference object with the known position. The reference object with the known position enables the other objects to have known positions within the coordinate system of the photograph as well as a coordinate system that may be outside of the photograph.
Another way of determining the approximate positions of objects is simply by GPS image tagging. A GPS enabled camera may be utilized to take photographs. Each photograph may be tagged with the GPS information of the location of the camera when the photograph is taken. The GPS information can be associated with the captured image via a time stamp of both the GPS information and the image or the GPS image can simply be embedded in the digital data of the photograph. Unfortunately, GPS tagging only records the position of the camera when the photograph was captured. The GPS positions of objects in the photograph are still unknown.
Another method of determining positions of objects is through surveying. Surveyors use optical instruments to locate and/or triangulate positions on the ground. For example, a surveyor may be required to survey the boundaries of a property. Usually, the surveyor will find the nearest monument that has a known position. In this example, the monument may be several blocks from the property that may be required to survey. Once a monument is located, the surveyor uses optics and a human eye to physically measure distances from the monument. Unfortunately, surveying is prone to errors such as optical errors and human eye errors. Also, the surveying method only determines the position of a single point at a time with a great deal of effort.
Unfortunately, many of the systems and methods described above have problems. The position of an object may still be required even when there are no positions of reference objects available. Multiple points may need to be determined simultaneously. Accuracy, greater than the errors inherent in the human eye and optics may be required.
BRIEF SUMMARY OF THE INVENTIONThe present invention relates generally to position determination, and more particularly determining the position, location or coordinates of objects, or points in an image with respect to a coordinate system other than the local coordinate system of the image itself.
Position determination may be implemented in a general purpose computer or an embedded system, for example a digital camera, cellular handset, GPS receiver, or any combination of these devices. In one embodiment the invention may determine the GPS coordinates of each pixel in an image. The pixel coordinates may be determined first by performing image registration on three or more images to determine corresponding pixels. Receiving the GPS coordinates at each camera position where each of the three images were taken. Determining the rotations of the various camera coordinate systems with respect to the ECEF coordinate system or WGS84 coordinate system or other coordinate systems and translations of the camera coordinate system with respect to the ECEF coordinate system or WGS84 coordinate system or other coordinate systems optical. Determining the GPS coordinates of each pixel in the image using the rotation and translation information. And finally, saving the GPS coordinates into a memory. In some embodiments the GPS coordinates of each pixel are determined with three or more images. In other embodiments, the GPS coordinates of each pixel are determined with a single image and information from an Inertial Measurement Unit (IMU).
In the following description of the preferred embodiments of the present invention, reference is made to the accompanying drawings which form a part hereof, and in which is shown by way of illustration specific embodiments in which the invention may be practiced. It is understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the present invention.
With reference to
With reference to
x1=R1(X−T1) [1]
x2=R2(X−T2)=R12(x1+t12) [2]
x3=R3(X−T3)=R13(x1+t13) [3]
R2=R12R1 [4]
R3=R13R1 [5]
t12=R1(T2−T1) [6]
t13=R1(T3−T1) [7]
The vector x1 is the description of point F in the local coordinate system O1. Referring to
According to equation [1], in order to determine the position of point P in the O coordinate system, we need to solve equation [1] for X:
X=R1−1x1+T1 [8]
Where R1−1 is the inverse matrix of the rotation matrix R1.
X can be determined using equation [8] in which T1 is a vector defined by the GPS coordinates of position O1. In one embodiment, R1 may be determined through t12 and t13. Additionally, in one embodiment x1 may be determined through relative rotations R12 and R13 as well as translation t12, t13, and eight matching points or triples in each of three images.
The process described in
With reference to
In one embodiment a processor is configured by program instructions to perform the eight point algorithm in order to determine the initial values for R12, R13, t12, and R13. The eight point algorithm is given in “An Invitation to 3-D Vision” by Yi Ma et al (ISBN 0-387-00893-4) Springer-Verlag New York, Inc. 2004 which is hereby incorporated by reference.
In block 407 the process determines the initial estimates of point(s) positions in local camera coordinate(s) systems. In one embodiment a processor executes instructions to determine x1 using the camera equation as follows:
x1=λ1P·u1P [9]
The camera equation is given in “An Invitation to 3-D Vision” by Yi Ma et al (ISBN 0-387-00893-4) Springer-Verlag, New York, Inc. 2004 which is hereby incorporated by reference. u1P which denotes the point P in camera 1 in its image plane coordinates is obtained by first obtaining point triple
where
are homogenous image pixel coordinates in pixel units of the point P in camera c.
- Camera calibration matrix K converts pixel coordinates to image plane coordinates through ucP=K−1UcP, where c is the camera 1, 2, or 3. ucP denotes the point P in camera c in its image coordinates. The definition of K and obtaining K is given in “An Invitation to 3-D Vision” by Yi Ma et al (ISBN 0-387-00893-4) Springer-Verlag New York, Inc. 2004 which is hereby incorporated by reference.
- Similarly, the camera equation for point P in the other camera coordinates is as follows:
x2=λ2Pu2P=R12(x1+t12)=λ1PR12u1P+R12t12 [10]
x3=λ3Pu3P=R13(x1+t13)=λ1PR13u1P+R13t13 [11]
and more generally,
λcPucP=R1c(x1+t1c)=λ1PR1ru1P+R1ct1c [12]
The cross product of camera equations [10] and [11] with its corresponding vector representing point P in its image plane coordinates (e.g. and u2P and u3P respectively) provides the following:
λ1Pu2P×R12u1P+u2P×R12t12=0 [13]
λ1Pu3P×R13u1P×u3P×R13t13=0 [14]
A processor is configured by program instructions to determine λ1P by the point depth equation as follows:
Equation [15] computes where the point P is seen in each of the three images taken from positions O1, O2, and O3 as seen in
In block 409 the process optimizes the camera(s) geometry and the point(s) position. In one embodiment the optimization may be minimizing a re-projection en-or for the solution of R12, R13, t12, and t13. A re-projection error at the first iteration is given by a function of differences of the positions of the point P in the image coordinate system of camera 1 when re-projected into the image plane of camera 2 and camera 3 with the prior estimates of the R12, R13, t12, t13. In one embodiment the error function for a single point P may be expressed as:
E=(re2(u1P)−u2P)2+(re3(u3P)−u3P)2 [17]
where re means re-projection from camera image 1 to camera image 2 or from camera image 1 to camera image 3. And these re-projections are determined using the prior estimates of R12, R13, t12, and t13. A general bundle adjustment may be used to achieve each camera's rotation and translation vector relative to camera 1 by minimizing the re-projection error:
where ũcP=rec(u1P) and c refers to camera 1, 2, 3, . . . and where g1, g2 , . . . , gn are point groups or sets of points with g1 being a point set such that each point in the group can be viewed by camera 1, and the point has corresponding matching points in some other cameras in the group g1. g2 is a point set such that each point in the group can be viewed by camera 2 but not camera 1, and it has corresponding matching points in some other cameras of the group g2, and so on for other point groups. And where p [18] ranges through all of the points that are matched in corresponding groups g1, g2 , . . . , gn. The bundle adjustment described in equation [18] is iterated until the error is reduced to a predetermined threshold or other stopping criteria. Once the bundle adjustment is complete R12, R13, t12, and t13 are known.
In block 411 the process determines the rotation between the camera(s) coordinate system(s) and the world coordinate system. In one embodiment determining the rotation between the camera(s) coordinate system(s) and the world coordinate system is determining R1. A processor is configured by program instructions to determine R1 by first determining an axis of rotation of R1 and then determining the amount of rotation around the axis. A vector v may be used to express the direction of the rotational axis as well as the magnitude of the rotation. Whereby the rotational axis of the rotation R1 is the direction of this vector. And the amount of rotation R1 is the magnitude of this vector. We can find this vector v and then use it to determine R1. According to this embodiment we define the following vectors:
v1=(T12×t12)×(T12+t12) [19]
v2=(T13×t13)×(T13+t13) [20]
where T12=T2−T1 and T13=T3−T1. Equation [19] is a vector v1 which also represents a plane which is normal to the vector v1. Any vector on this plane can be a rotation axis that can rotate T12 to r t12. Similarly, we also have equation [20] which is a vector v2 which also represents a plane which is normal to the vector v2 representing a plane which is a rotation axis that can rotate T13 to t13. The cross product of these two vectors is the vector v.
v=v1×v2 [21]
v is the rotation axis of our rotation matrix R1. Next we need to determine the amount of rotation or the length of the vector v. The length of vector v is determined by the following equation:
where s
The vectors s1 and s2 form a plane that is normal to the vector v. Therefore, v is the rotation axis of s1 to s2 where the amount of rotation is represented in equation [22]. The amount of the rotation in magnitude is the value of Θ in equation [22]. The same angle Θ also represents a rotation between T13 to t13. We can define the final rotation vector that is equivalent to
where
is the direction of the vector and Θ is the magnitude of the rotation. We can also express the vector ω as
and define the matrix
Next we can determine the matrix R1 by using the Rodrigues formula for a rotation matrix given in “An Invitation to 3-D Vision” by Yi Ma et al (ISBN 0-387-00893-4) Springer-Verlag New York, Inc. 2004 which is hereby incorporated by reference and also expressed in [21] below:
where I is the identity matrix.
In block 413 the process determines the GPS coordinates for all points for which correspondences were established through the registration block above. In one embodiment, a processor is instructed to perform the computation defined in equation [8] for each of the image pixels or sub-pixels using, the final values determined from the previous process blocks in
In block 415 the process saves the GPS coordinates of the point(s) positions. In one embodiment the process saves the GPS coordinates to a memory. In another embodiment the process may not necessarily save the GPS coordinates but rather the process simply transmits the GPS coordinates. In another embodiment the process sends the GPS coordinates to a buffer or cache or another computing device.
The process described in
With reference to
With reference to
In block 705 the process determines the boresight rotation and translation. In some embodiments the boresight rotation may be the relative rotation between the GPS/IMU device coordinate system and the camera coordinate system. Also in some embodiments, the boresight translation may be the translation between the GPS/IMU device coordinate system and the camera coordinate system. Equation [25] below presents the relationship between the coordinates of point P in the GPS/IMU device coordinates and coordinates of the point P in the local camera 1 coordinates O1, using the elements from
Xgps/IMU=Rbx1+Tb [25]
where Rb is the boresight rotational matrix, Tb is the boresight translational vector, x1 is a vector of the position of point P in the local coordinate system O1, and Xgps/IMU the vector of the position of point P in the GPS/IMU coordinate system.
In block 707 the process determines initial estimates of the geometry between camera positions and orientations. Block 707 is the same as block 405 and will not be discussed here further. In block 709 the process determines the initial estimates of point(s) positions in local camera coordinate(s) systems. Block 709 is the same as block 407 however, since this embodiment at a minimum requires only two cameras for example Camera 1 and Camera 2, equation [15], which determines λ1P, is determined for c=2 (two cameras) only. Also x1 is determined by using equation [9]. In block 711 the process optimizes the camera(s) geometry and the point(s) position. Block 711 is the same as block 409 and will not be discussed here further. In block 713 the process determines the local north, east, down (NED) coordinates. In one embodiment a processor is configured by program instructions to perform equation [26] below where the NED coordinates are determined.
XNED=RyRpRrXgps/IMU [26]
where XNED is the vector of the position of point P in the local NED coordinate system, Ry is a yaw rotation matrix determined from the GPS/IMU device, Rp is a pitch rotation matrix determined from the GPS/IMU device, Rr is a roll rotation matrix determined from the GPS/IMU device, and Xgps/IMU is the vector of the position of point P in the GPS/IMU coordinate system. In block 715 the process determines the GPS coordinates for all point(s) positions for which correspondences were established through the registration block above in 701. In one embodiment a processor is configured by program instructions to determine GPS coordinates using equation [27] below:
XECEF=RNEDXNED+TECEF [27]
where XECEF is the vector of the position of point P in ECEF world coordinate system, RNED is the rotation matrix for rotating between the NED coordinate system to the ECEF coordinate system, TECEF is the translation vector for translating between the NED coordinate system to the ECEF coordinate system,. RNED, and TECEF determined from the GPS data provided by the GPS/IMU device. In block 717 the process saves the GPS coordinates of the point(s) positions. In one embodiment the process saves the GPS coordinates to a memory. In another embodiment the process may not necessarily save the GPS coordinates but rather the process simply transmits the GPS coordinates. In another embodiment the process sends the GPS coordinates to a buffer or cache or another computing device.
Sometimes a GPS/IMU device or standalone GPS device is not available. In this instance we utilize ground truth points. Ground truth points are observed points in an image that have known GPS coordinates. When using the process depicted in
There are situations where an observation or surveillance camera is used to monitor an area. However, the GPS coordinates of the observation/surveillance camera is not known. Yet we still want the GPS coordinates of the pixels and objects being observed in the camera. In order to obtain the GPS coordinates of various objects being viewed by the observation/surveillance camera we first determine GPS coordinates and the 3-D model of the 3-D scene that is being observed by the surveillance camera, using another camera(s) whose GPS location is known. By methods known in the art, calculate projection map from the observation/surveillance camera to the 3-D model determined as above. Calculate intersection of the projection ray through each pixel of the observation/surveillance camera with the 3-D model. Assign the GPS of the intersection point to the corresponding pixel of the observation/surveillance camera. In this method, it is assumed that the pixels observations correspond to objects located against the GPS referenced 3-D model. The applications of this process may include finding GPS of subjects (people), objects (vehicles), including the real-time observations from border security cameras, football stadium security cameras and public places security cameras.
Claims
1.-4. (canceled)
5. A method of determining GPS coordinates of some image point(s) positions in at least two images using a processor configured by program instructions comprising:
- receiving position information of some of the positions where an image capture device captured an image;
- determining geometry by triangulating various registration objects in the images;
- determining GPS coordinates of image point(s) positions in at least one of the images;
- saving GPS coordinates to memory.
6. The method of claim 5 where receiving position information comprises receiving GPS coordinates of at least three image capture device positions.
7. The method of claim 5 also comprises determining the 3-D model associated with the distance to visible objects in the captured images.
8. The method of claim 5 where determining the GPS coordinates of image points positions in at least one of the images comprises using trilaterations relative to the image capture device positions and the local geometry.
9. The method of claim 5 where saving GPS coordinates to memory comprises saving the GPS coordinates to a hard disk drive, register, buffer, optical disk, magnetic disk, random access memory, or portable memory device.
10. The method of claim 5 whereby determining geometry by triangulating various registration objects in the images comprises:
- determining initial estimate of geometry between image capture device(s) positions and orientations;
- determining initial estimates of point(s) positions in local image capture device(s) coordinate system(s);
- optimizing image capture device(s) geometry and point(s) position.
11. The method of claim 5 whereby receiving position information of some of the positions where an image capture device captured an image comprises:
- using ground truth points to determine the position where an image capture device captured an image.
12. A computer-readable medium storing computer-readable instructions that direct a processor to:
- receive position information from each position where an image capture device captured an image;
- determine geometry by triangulating various registration objects in each image;
- determine GPS coordinates of pixel positions in at least one of the images;
- save GPS coordinates to memory.
13. The computer-readable medium of claim 12 whereby receive position information from each position where an image capture device captured an image comprises at least three image capture device positions.
14. The computer-readable medium of claim 12 whereby determine GPS coordinates of pixel positions in at least one of the images comprises using trilaterations relative to the image capture device positions and the local geometry.
15. The computer-readable medium of claim 12 whereby save GPS coordinates to memory comprises saving the GPS coordinates to a hard disk drive, register, buffer, optical disk, magnetic disk, random access memory, or portable memory device.
16. The computer-readable medium of claim 12 whereby determine geometry by triangulating various registration objects in each image comprises:
- determining initial estimate of geometry between image capture device(s) positions and orientations;
- determining initial estimates of point(s) positions in local image capture device(s) coordinate system(s);
- optimizing image capture device(s) geometry and point(s) position.
17. The computer-readable medium of claim 12 whereby receive position information from each position where an image capture device captured an image comprises:
- using ground truth points to determine the position where an image capture device captured an image.
18. (canceled)
19. A system for determining GPS coordinates of pixel positions in an image whereby at least one image capture device captures the image from at least one location, comprising:
- computing device or single semiconductor device with onboard memory for storing program instructions wherein the program instructions configure the computing device or single semiconductor device to:
- determine translational and rotational geometry of each of the image capture devices; and
- determine GPS coordinates of pixel positions in the image.
20. The system of claim 19 where the computing device or single semiconductor device is also configured by program instructions to:
- determine registration comprising the use of multiple images captured at different locations of the same area, scene, or object;
- receive position information from each position where an image capture device captured and image;
- save GPS coordinates to memory.
Type: Application
Filed: Jun 11, 2018
Publication Date: May 16, 2019
Inventors: Leonid I. Rudin (San Marino, CA), Ping Yu (Castaic, CA)
Application Number: 16/005,539