System and method for measuring a displacement of a mobile platform
11346666 · 2022-05-31
Assignee
Inventors
Cpc classification
G06T7/246
PHYSICS
G01C11/08
PHYSICS
G01C21/005
PHYSICS
International classification
H04N7/18
ELECTRICITY
G06T7/246
PHYSICS
G01C21/00
PHYSICS
G01C11/08
PHYSICS
Abstract
A method for detecting a displacement of a mobile platform includes acquiring a first frame and a second frame using an imaging device coupled to the mobile platform, obtaining an angle of the imaging device relative to a reference level while acquiring the first frame, and determining the displacement of the mobile platform based at least on the first frame, the second frame, and the angle of the imaging device relative to the reference level.
Claims
1. A method for detecting a displacement of a mobile platform, comprising: acquiring a first frame and a second frame using an imaging device coupled to the mobile platform; obtaining an angle of the imaging device relative to a reference level while acquiring the first frame; and determining the displacement of the mobile platform based at least on the first frame, the second frame, and the angle of the imaging device relative to the reference level.
2. The method of claim 1, wherein the angle of the imaging device relative to the reference level is obtained by a simultaneous localization and mapping (SLAM) device.
3. The method of claim 1, wherein obtaining the angle of the imaging device relative to the reference level comprises: obtaining a first angle of the mobile platform relative to the reference level; obtaining a second angle of the imaging device relative to a plane of the mobile platform; and combining the first angle and the second angle to obtain the angle of the imaging device relative to the reference level.
4. The method of claim 1, wherein the reference level is a ground level, a water level, or a reference plane associated with a structure.
5. The method of claim 1, further comprising: obtaining a height of the mobile platform relative to the reference level; and determining the displacement of the mobile platform further based on the height of the mobile platform.
6. The method of claim 5, wherein the height of the mobile platform is obtained using a barometer or an ultrasonic device.
7. The method of claim 1, wherein the first frame and the second frame are acquired within a time interval, wherein the time interval is no less than one-sixtieth of a second and no greater than one-twentieth of a second.
8. The method of claim 1, further comprising: obtaining rotation data of the mobile platform relative to the first frame using an inertial measurement unit (IMU) coupled to the mobile platform; and determining the displacement of the mobile platform further based on the rotation data.
9. The method of claim 8, further comprising: obtaining a stereoscopic point cloud based on the first frame, wherein the stereoscopic point cloud is an array of feature points {P.sub.1, P.sub.2, P.sub.3, . . . , P.sub.n}, n being a number of the feature points selected in the first frame.
10. The method of claim 9, further comprising: projecting the stereoscopic point cloud onto an x-y plane to obtain a first projective array {(x.sub.1.sup.1, y.sub.1.sup.1), (x.sub.2.sup.1, y.sub.2.sup.1), (x.sub.3.sup.1, y.sub.3.sup.1), . . . , (x.sub.n.sup.1, y.sub.n.sup.1)} comprising a plurality of first feature points of the first frame; and matching the plurality of first feature points to a plurality of second feature points of the second frame for generating a second projective array {(x.sub.1.sup.2, y.sub.1.sup.2), (x.sub.2.sup.2, y.sub.2.sup.2), (x.sub.3.sup.2, y.sub.3.sup.2), . . . , (x.sub.m.sup.2, y.sub.m.sup.2)} on the x-y plane, m being a number of matched feature points between the first frame and the second frame, wherein m is equal to or less than n.
11. The method of claim 10, further comprising: calculating a translation array based on a relation between the stereoscopic point cloud, the second projective array, and the rotation data.
12. The method of claim 11, wherein the relation is represented by
13. The method of claim 11, wherein calculating the translation array comprises: verifying the translation array T by introducing T into an equation
14. An apparatus for detecting a displacement of a mobile platform, comprising: an imaging device coupled to the mobile platform and configured to acquire a first frame and a second frame; and a processor coupled to the imaging device and configured to: obtain an angle of the imaging device relative to a reference level when the imaging device is acquiring the first frame; and determine the displacement of the mobile platform based at least on the first frame, the second frame, and the angle of the imaging device relative to the reference level.
15. The apparatus of claim 14, wherein the processor is further configured to: obtain a height of the mobile platform relative to the reference level; and determine the displacement of the mobile platform further based on the height of the mobile platform.
16. The apparatus of claim 14, further comprising: an inertial measurement unit (IMU) coupled to the mobile platform and configured to obtain rotation data; wherein the processor is further configured to determine the displacement of the mobile platform further based on the rotation data.
17. The apparatus of claim 16, wherein the processor is further configured to: obtain a stereoscopic point cloud based on the first frame, wherein the stereoscopic point cloud is an array of feature points {P.sub.1, P.sub.2, P.sub.3, . . . , P.sub.n}, n being a number of the feature points selected in the first frame; project the stereoscopic point cloud onto an x-y plane to obtain a first projective array {(x.sub.1.sup.1, y.sub.1.sup.1), (x.sub.2.sup.1, y.sub.2.sup.1), (x.sub.3.sup.1, y.sub.3.sup.1), . . . , (x.sub.n.sup.1, y.sub.n.sup.1)} comprising a plurality of first feature points of the first frame; and match the plurality of first feature points to a plurality of second feature points of the second frame for generating a second projective array {(x.sub.1.sup.2, y.sub.1.sup.2), (x.sub.2.sup.2, y.sub.2.sup.2), (x.sub.3.sup.2, y.sub.3.sup.2), . . . , (x.sub.m.sup.2, y.sub.m.sup.2)} on the x-y plane, m being a number of matched feature points between the first frame and the second frame, wherein m is equal to or less than n.
18. The apparatus of claim 17, wherein the processor is further configured to: calculate a translation array based on a relation between the stereoscopic point cloud, the second projective array, and the rotation data.
19. The apparatus of claim 18, wherein the relation is represented by
20. The apparatus of claim 19, wherein the processor is further configured to: verify the translation array T by introducing T into an equation
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9) It should be noted that the figures are not drawn to scale and that elements of similar structures or functions are generally represented by like reference numerals for illustrative purposes throughout the figures. It also should be noted that the figures are only intended to facilitate the description of the embodiments. The figures do not illustrate every aspect of the described embodiments and do not limit the scope of the present disclosure.
DETAILED DESCRIPTION OF THE EMBODIMENTS
(10) Since currently-available vision systems are restricted by conditions, a mobile platform and method that can meet the requirements of measuring a displacement of the mobile platform during a flight course at various heights under various conditions can prove desirable and provide a basis for accurate measurement of displacements, for systems such as UAV systems and other mobile platforms. This result can be achieved, according to one embodiment disclosed in
(11)
(12) In some embodiments, the height H can be acquired with a barometer 251 and/or an ultrasonic device 252 (not shown). The angle α can be acquired with a Simultaneous Localization And Mapping (SLAM) device (not shown) in a manner shown and described below with reference to
(13)
(14) In an exemplary embodiment, the two frames 811a, 811b of images can be acquired at two different time points: a first time point and a second time point with a travel path of the imaging device 886. In some embodiments, the first frame 811a and the second frame 811b can be stereoscopic frames. In some embodiments, the two frames 811a, 811b can have at least an overlapping region with a predetermined percentage of the first frame 811a or the second frame 811b. The overlapping region of the two frames 811a, 811b is defined as points, on the two frames 811a, 811b, reflecting a same object. To ensure such overlapping region, a time span between the first time point and the second time point can be adjusted so that at least one object can be reflected on both frames 811a, 811b. In addition, the imaging device 886 stay still relative to the mobile platform 200 or move slowly in order to ensure the overlapping.
(15) When acquiring the two frames 811a, 811b, the time span between the first time point and the second time point can be less than one-sixtieth of a second and not greater than one-twentieth of a second. The time span can depend on requirements of actual applications or situations. As an exemplary example, when the mobile platform 200 is flying at a lower velocity, the time span can be set to a greater value because an overlapping between the two frames 811a, 811b can be ensured even under the greater time span. On the other hand, when the velocity of the mobile platform 200 is flying at a higher velocity, the time span can be set to a lower value to ensure the overlapping between the two frames 811a, 811b.
(16) At 850, the two frames 811a, 811b can be used to calculate a displacement of a mobile platform 200. Such displacement can be calculated in accordance with the manner shown and described below with reference to
(17) A system implementing the method 100 can be applicable to a wide height range of one meter to one hundred meters and can be less vulnerable to any ambient interference. In addition, the system does not rely on a Global Positioning System (“GPS”) signal, therefore, can be applicable in an environment lack of a GPS signal, such as an indoor setting. The barometer and the monocular imaging device can be easily installed on a mobile platform, for example, can be installed on a small size UAV.
(18)
(19) At 830, the second frame 811b can be matched to the first frame 811a by matching feature points 355 (shown in
(20) At 840, six movements in three translation movements and three rotations of the mobile platform 200 can be measured with an Inertial Measurement Unit (“IMU”) and/or estimated with the two stereoscopic frames 811a, 811b. The three translation movements can include translation movements of the mobile platform 200 along each of an x-axis, a y-axis and a z-axis. The three rotations can include rotations of the mobile platform 200 around the x-axis, the y-axis and the z-axis, respectively. The rotations can be acquired in any conventional manner. One conventional manner for acquiring the rotations includes use of the IMU 150. In one embodiment, the translations can be calculated based on the rotation data, which is shown and described below with reference to
(21) The displacement of the mobile platform 200 is determined, at 850. Once acquired, the rotations and the translations, for example, can be applied to calculate the displacement of the mobile platform 200. In some embodiments, a velocity of the mobile platform 200 can be calculated by dividing the translations by the time span for acquiring the two frames 811a, 811b. In another exemplary embodiment, location information of the mobile platform at a time point can be acquired based upon the calculated translation array T and location information of the mobile platform at a time point for acquiring the first frame 811a. The time point can be a time for acquiring the second frame 811b.
(22) In another embodiment, after the displacement is determined, at 850, the next frame of image can be acquired and the system repeats the process in order to calculate the newly acquired frame or frames. The process continues over and over to realize uninterrupted displacement detection.
(23)
(24) Referring to
(25) A second projective array can be calculated in the second frame 811b {(x.sub.1.sup.2, y.sub.1.sup.2), (x.sub.2.sup.2, y.sub.2.sup.2), (x.sub.3.sup.2, y.sub.3.sup.2), . . . , (x.sub.m.sup.2, y.sub.m.sup.2)}, at 834. Each of the points (x.sub.i.sup.2, y.sub.i.sup.2) of the second projective array represents a matched point, projected in an x-y plane, corresponding to a point P.sub.j or (x.sub.j′, y.sub.j.sup.1) of the stereoscopic point cloud of the first frame 811b. A size of the second projective array can be same as a size of the cloud array, in case all points in the cloud array {P.sub.1, P.sub.2, P.sub.3, . . . , P.sub.n} are matched onto the second frame 811b. However, in most cases, the size of the second projective array is less than the size of the cloud array {P.sub.1, P.sub.2, P.sub.3, . . . , P.sub.n} because not all points of the first frame 811a can be matched onto the second frame 811b. Matching of the stereoscopic point cloud of the first frame 811a to the second frame 811b can be accomplished by the method 100 described with reference to
(26) Now referring back to
(27)
wherein R is a three-dimensional array representing the rotation measurements, Pj is a point of the first frame 811a, T represents a three-dimensional array of translation of the second frame 811b to be calculated and μ is a random number acting as a factor.
(28) To help ensure an accuracy of the relative rotation array measured by the IMU, the interval between the first time point when the first frame 811a can be taken and the second time point when the second frame 811b can be taken can be relatively short. The time interval between the first frame 811a and the second frame 811b usually can be within a range of twentieth to sixtieth seconds depending on the requirements of actual applications, as described with reference to
(29) In Equation 6, three unknowns (Tx, Ty, Tz) exist; therefore, by mathematical principles, three equations can be needed to jointly solve the calculated translation array T with the three unknowns, at 844. However, each of the projected points has only two values in x.sub.i and y.sub.i. So, in order to resolve three unknowns in the calculated translation array T, three equations out of four equations available for two such points can be joined.
(30) In practical applications, because of errors and/or inaccuracies in matching the points between the first frame 811a and second frame 811b, the calculated translation array T can be inaccurate. At 846, the calculated translation array T can be introduced into the Equation 6, and calculated to determine the number of points that conform to the relationship defined in the equation. Then, another pair of points can be used in solving the calculated translation array T, at 844, which can be then used to calculate to determine the number of points that conform to the relationship of Equation 6 at 846. This process can iterate for a predetermined number of pairs of points, and the results can be a predetermined number of the calculated translation arrays T accompanied with a number of points of conformance to Equation 6 for each translation array.
(31) At 845, the numbers of conformed points can be compared among the calculated translation arrays T. A calculated translation array T with the greatest number of conformed points can be chosen. The process described with reference to
(32)
(33) In some embodiments, a method of using Binary Robust Independent Elementary Features (“BRIEF”) descriptors can be used for matching the point of the second frame 811b with the corresponding point 355 of the first frame 811a. In an exemplary embodiment, a first binary string, representing a first region around the selected feature point of the first frame 811a, can be built by comparing intensities of each point pairs of the region. The first binary string can be the first BRIEF descriptor of the selected feature point of the first frame 811a.
(34) Similarly, a second binary string representing a second region around the point 355 of the second frame 811b can be built by comparing intensities of each point pairs of the second region. The second binary string can be a second BRIEF descriptor.
(35) A similarity between the selected feature point of the first frame 811a and the point 355 of the second frame 811b can be calculated by comparing a hamming distance between the first BRIEF descriptor and the second BRIEF descriptor. The point 355 of the second frame 811b can be determined as matching the selected feature point of the first frame 811a when a hamming distance between the first BRIEF descriptor and the second BRIEF descriptor is less than a first hamming threshold.
(36) Turning now to
(37) At 924, the selected feature points 355 can be matched from the first frame 811a onto the second frame 811b. In some embodiments, matching of the feature points 355 consists of two procedures as shown in
(38) At 924B, while scanning for each point, a similarity is calculated between two points in the manner shown and described above in detail herein with reference to
(39) Returning to
(40) The described embodiments are susceptible to various modifications and alternative forms, and specific examples thereof have been shown by way of example in the drawings and are herein described in detail. It should be understood, however, that the described embodiments are not to be limited to the particular forms or methods disclosed, but to the contrary, the present disclosure is to cover all modifications, equivalents, and alternatives.