The present invention relates to a system for ego-motion compensation during video processing and, more particularly, to a system for ego-motion compensation during video processing which is accurate and computationally efficient.
With the advent of modern computers, sensors and the internet, the amount of data being collected is far outpacing current capabilities of computing platforms to process them. This is further exacerbated for intelligence, reconnaissance and surveillance (ISR) applications where there is also a need for real-time processing of the large volume of data collected from computers on aerial vehicles, such as unmanned aerial vehicles (UAVs), helicopters and satellites to enable fast situational awareness and response capabilities. A key requirement for video processing from a moving platform (e.g., vehicle) is the need to compensate ego-motion of the platform in order to robustly detect all the independent moving objects in the scene. Prevalent methods of estimating the camera ego-motion from a video require feature detection and optical flow, where features are detected in the first frame, and then matched in the second frame (see, for example, Literature Reference Nos. 1-3 of the List of Incorporated Literature References). These methods are highly computation-intensive.
In U.S. Provisional Application No. 62/330,462, “A Valley Search Method for Estimating Ego-Motion of a Camera from Videos” (which is hereby incorporated by reference as though fully set forth herein), a fast and robust method to estimate ego-motion from videos taken by an aerial vehicle was disclosed. However, a continuing need exists for a method that combines a rough estimation of camera ego-motion with the valley search method to improve performance while saving computational cost.
The present invention relates to a system ego-motion compensation during video processing and, more particularly, to a system for ego-motion compensation during video processing which is accurate and computationally efficient. The system comprises one or more processors and a non-transitory computer-readable medium having executable instructions encoded thereon such that when executed, the one or more processors perform multiple operations. The system generates an initial estimate of camera ego-motion of a moving camera for consecutive image frame pairs of a video of a scene using a projected correlation method, wherein the camera is configured to capture the video from a moving platform. An optimal estimation of camera ego-motion is generated using the initial estimate as an input to one of a valley search method and an alternate line search method. Finally, independent moving objects are detected in the scene.
In another aspect, the detected independent moving objects are identified and tracked.
In another aspect, an estimate (h1,v1) of a last frame pair in the video is generated, and the optimal estimation (h*,v*) of camera ego-motion is generated using both the initial estimate (h0,v0) and (h1,v1) as input to the valley search method.
In another aspect, for each of consecutive image frame pairs I1 and I2, an X projection and a Y projection are determined. An ego-translation (h,v) of the camera is estimated by determining an optimal projection correlation of the consecutive image frame pairs I1 and I2 with image frame I2 shifted by (h,v) according to the following:
where min denotes a minimization function, h denotes horizontal, v denotes vertical, n denotes a height of an image frame, m denotes a width of an image frame, i and j are index variables, XiI1 denotes an X projection for image frame I1, Xi+hI2 denotes an X projection for image frame I2 shifted by h, YjI1 denotes a Y projection for image frame I1, Yj+vI2 denotes a Y projection for image frame I2 shifted by v, and Σ denotes a summation operation.
In another aspect, the moving platform is selected from a group consisting of an airplane, a helicopter, a satellite, and an unmanned aerial vehicle (UAV).
Finally, the present invention also includes a computer program product and a computer implemented method. The computer program product includes computer-readable instructions stored on a non-transitory computer-readable medium that are executable by a computer having one or more processors, such that upon execution of the instructions, the one or more processors perform the operations listed herein. Alternatively, the computer implemented method includes an act of causing a computer to execute such instructions and perform the resulting operations.
The objects, features and advantages of the present invention will be apparent from the following detailed descriptions of the various aspects of the invention in conjunction with reference to the following drawings, where:
The present invention relates to a system for ego-motion compensation during video processing and, more particularly, to a system for ego-motion compensation during video processing which is accurate and computationally efficient. The following description is presented to enable one of ordinary skill in the art to make and use the invention and to incorporate it in the context of particular applications. Various modifications, as well as a variety of uses in different applications will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to a wide range of aspects. Thus, the present invention is not intended to be limited to the aspects presented, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
In the following detailed description, numerous specific details are set forth in order to provide a more thorough understanding of the present invention. However, it will be apparent to one skilled in the art that the present invention may be practiced without necessarily being limited to these specific details. In other instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the present invention.
The reader's attention is directed to all papers and documents which are filed concurrently with this specification and which are open to public inspection with this specification, and the contents of all such papers and documents are incorporated herein by reference. All the features disclosed in this specification, (including any accompanying claims, abstract, and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.
Furthermore, any element in a claim that does not explicitly state “means for” performing a specified function, or “step for” performing a specific function, is not to be interpreted as a “means” or “step” clause as specified in 35 U.S.C. Section 112, Paragraph 6. In particular, the use of “step of” or “act of” in the claims herein is not intended to invoke the provisions of 35 U.S.C. 112, Paragraph 6.
Before describing the invention in detail, first a list of cited references is provided. Next, a description of the various principal aspects of the present invention is provided. Finally, specific details of various embodiment of the present invention are provided to give an understanding of the specific aspects.
(1) List of Incorporated Literature References
The following references are cited and incorporated throughout this application. For clarity and convenience, the references are listed herein as a central resource for the reader. The following references are hereby incorporated by reference as though fully set forth herein. The references are cited in the application by referring to the corresponding literature reference number, as follows:
(2) Principal Aspects
Various embodiments of the invention include three “principal” aspects. The first is a system ego-motion compensation during video processing. The system is typically in the form of a computer system operating software or in the form of a “hard-coded” instruction set. This system may be incorporated into a wide variety of devices that provide different functionalities. The second principal aspect is a method, typically in the form of software, operated using a data processing system (computer). The third principal aspect is a computer program product. The computer program product generally represents computer-readable instructions stored on a non-transitory computer-readable medium such as an optical storage device, e.g., a compact disc (CD) or digital versatile disc (DVD), or a magnetic storage device such as a floppy disk or magnetic tape. Other, non-limiting examples of computer-readable media include hard disks, read-only memory (ROM), and flash-type memories. These aspects will be described in more detail below.
A block diagram depicting an example of a system (i.e., computer system 100) of the present invention is provided in
The computer system 100 may include an address/data bus 102 that is configured to communicate information. Additionally, one or more data processing units, such as a processor 104 (or processors), are coupled with the address/data bus 102. The processor 104 is configured to process information and instructions. In an aspect, the processor 104 is a microprocessor. Alternatively, the processor 104 may be a different type of processor such as a parallel processor, application-specific integrated circuit (ASIC), programmable logic array (PLA), complex programmable logic device (CPLD), or a field programmable gate array (FPGA).
The computer system 100 is configured to utilize one or more data storage units. The computer system 100 may include a volatile memory unit 106 (e.g., random access memory (“RAM”), static RAM, dynamic RAM, etc.) coupled with the address/data bus 102, wherein a volatile memory unit 106 is configured to store information and instructions for the processor 104. The computer system 100 further may include a non-volatile memory unit 108 (e.g., read-only memory (“ROM”), programmable ROM (“PROM”), erasable programmable ROM (“EPROM”), electrically erasable programmable ROM “EEPROM”), flash memory, etc.) coupled with the address/data bus 102, wherein the non-volatile memory unit 108 is configured to store static information and instructions for the processor 104. Alternatively, the computer system 100 may execute instructions retrieved from an online data storage unit such as in “Cloud” computing. In an aspect, the computer system 100 also may include one or more interfaces, such as an interface 110, coupled with the address/data bus 102. The one or more interfaces are configured to enable the computer system 100 to interface with other electronic devices and computer systems. The communication interfaces implemented by the one or more interfaces may include wireline (e.g., serial cables, modems, network adaptors, etc.) and/or wireless (e.g., wireless modems, wireless network adaptors, etc.) communication technology.
In one aspect, the computer system 100 may include an input device 112 coupled with the address/data bus 102, wherein the input device 112 is configured to communicate information and command selections to the processor 100. In accordance with one aspect, the input device 112 is an alphanumeric input device, such as a keyboard, that may include alphanumeric and/or function keys. Alternatively, the input device 112 may be an input device other than an alphanumeric input device. In an aspect, the computer system 100 may include a cursor control device 114 coupled with the address/data bus 102, wherein the cursor control device 114 is configured to communicate user input information and/or command selections to the processor 100. In an aspect, the cursor control device 114 is implemented using a device such as a mouse, a track-ball, a track-pad, an optical tracking device, or a touch screen. The foregoing notwithstanding, in an aspect, the cursor control device 114 is directed and/or activated via input from the input device 112, such as in response to the use of special keys and key sequence commands associated with the input device 112. In an alternative aspect, the cursor control device 114 is configured to be directed or guided by voice commands.
In an aspect, the computer system 100 further may include one or more optional computer usable data storage devices, such as a storage device 116, coupled with the address/data bus 102. The storage device 116 is configured to store information and/or computer executable instructions. In one aspect, the storage device 116 is a storage device such as a magnetic or optical disk drive (e.g., hard disk drive (“HDD”), floppy diskette, compact disk read only memory (“CD-ROM”), digital versatile disk (“DVD”)). Pursuant to one aspect, a display device 118 is coupled with the address/data bus 102, wherein the display device 118 is configured to display video and/or graphics. In an aspect, the display device 118 may include a cathode ray tube (“CRT”), liquid crystal display (“LCD”), field emission display (“FED”), plasma display, or any other display device suitable for displaying video and/or graphic images and alphanumeric characters recognizable to a user.
The computer system 100 presented herein is an example computing environment in accordance with an aspect. However, the non-limiting example of the computer system 100 is not strictly limited to being a computer system. For example, an aspect provides that the computer system 100 represents a type of data processing analysis that may be used in accordance with various aspects described herein. Moreover, other computing systems may also be implemented. Indeed, the spirit and scope of the present technology is not limited to any single data processing environment. Thus, in an aspect, one or more operations of various aspects of the present technology are controlled or implemented using computer-executable instructions, such as program modules, being executed by a computer. In one implementation, such program modules include routines, programs, objects, components and/or data structures that are configured to perform particular tasks or implement particular abstract data types. In addition, an aspect provides that one or more aspects of the present technology are implemented by utilizing one or more distributed computing environments, such as where tasks are performed by remote processing devices that are linked through a communications network, or such as where various program modules are located in both local and remote computer-storage media including memory-storage devices.
An illustrative diagram of a computer program product (i.e., storage device) embodying the present invention is depicted in
(3) Specific Details of Various Embodiments
Described herein is a hybrid method for estimating ego-translation from videos taken by a moving camera, such as a camera positioned on a moving vehicle (e.g., helicopter, airplane). A key requirement for video processing is the need to compensate ego-motion of the vehicle in order to robustly detect all of the independent moving objects in the scene. The hybrid method according to embodiments of this disclosure first uses a projected correlation method to get an initial rough estimation of the camera ego-motion, then starts using a valley search method to get a final accurate estimation of the ego-motion. As described below, the hybrid method has superior performance over existing technologies while saving computational cost.
(3.1) Projected Correlation Method
Given an image Iij of size m×n, its X projection is a vector XI defined by:
X
i
I=Σj=1nIij. (1)
Similarly, its Y projection is a vector YI defined by:
Y
j
I=Σi=1mIij. (2)
where min denotes a minimization function, h denotes horizontal, v denotes vertical, in denotes a height of an image frame, m denotes a width of an image frame, i and j are index variables, XiI1 denotes an X projection for image frame I1, Xi+hI2 denotes an X projection for image frame I2 shifted by h, YjI1 denotes a Y projection for image frame I1, Yj+vI2 denotes a Y projection for image frame I2 shifted by v, and Σ denotes a summation operation. Only valid inside values for indexes i and j are utilized to avoid boundary effect.
(3.2) Valley Search Method
As detailed in U.S. Provisional Application No. 62/330,462, the valley search method performs a line search along a valley direction where local minima are often distributed. This can be implemented by first locating two local minima, and then search along the direction defined by the two local minima. The two local minima can be found using an optimization method (e.g., the alternate line search method) by starting from two initial points that are sufficiently far from each other. More precisely, the algorithm is described as follows.
Let I and I′ represent two consecutive frames in a video with planar ego-translations. In the ideal case, there are fixed translations h and v such that I′(i+h, j+v)=I(i,j) for any position (i,j). Now assume (h2, v2) is the smaller solution. Swap (h1, v1) and (h2, v2) otherwise.
(3.3) Hybrid Method
Described below are the hybrid valley search method and its simplified version hybrid alternate line search method according to embodiments of the present disclosure.
(3.3.1) Hybrid Valley Search Method
The original valley search method (as described in U.S. Provisional Application No. 62/330,462) starts its search from two initial guesses. The first initial guess is the estimate of the last image frame pair in a video ((0,0) for the first frame pair). The second initial guess is an offset of the first initial guess. In the hybrid valley search method described herein (and depicted in
(3.3.2) Hybrid Alternate Line Search Method
The hybrid alternate line search method is a simplified version of the hybrid valley search method described above. It saves about two-thirds of the computational cost with a trade-off in accuracy. It combines the alternate line search method and the projected correlation method.
The alternate line search method was introduced in U.S. application Ser. No. 15/250,665, entitled, “A Fast Robust Method for Compensating Ego-Translations and Detecting Independent Moving Objects in Video Captured with a Moving Camera,” which is hereby incorporated by reference as though fully set forth herein. The alternate line search method minimizes a cost function that is based on the difference between consecutive image frames. As a result, no expensive feature matching and optical flow computations are needed. The method is so fast and efficient that normally it takes no more than two search steps to reach the global minimum. In total, it takes around only 8 frame-difference operations to find the correct ego-translation in a video frame.
The alternate line search method operates as follows. Let I and I′ be two consecutive frames in a video with ego-translations. In the ideal case, there are fixed translations h and v such that I′(i+h, j+v)=I(i,j) for any position (i,j). However, in practice, it rarely occurs due to independent object movement, three-dimensional (3D) projection and noise, etc. Instead, the optimal translation (h,v) is found by minimizing the function:
ƒ(h,v)=Σij|I′(i+h,j+v)−I(i,j)|. (5)
In other words,
Fortunately, the function ƒ(h,v) is usually a convex function with a global minimum or, in worse cases, a quasi-convex function with a deep global minimum and some shallow local minima. While a gradient descent method can be used here to find the minimum of a convex function, it is susceptible to a zig-zagging problem during search, thus, requiring many steps to reach the minimum. To address this, a method was developed to find the minimum of function ƒ(h,v). On average, it takes no more than three steps to find the global minimum from an arbitrary initial point.
The alternate line search algorithm consists of alternative one directional search (horizontal or vertical). Starting from an initial point, it goes as far as possible in the horizontal (or vertical) direction until reaching the minimum in that direction. Then, starting from there, it goes as far as possible in the other direction. The process can be repeated until a global minimum (h*, v*) (element 410) is reached. For example, for an elliptic paraboloid, it takes only two steps to reach the global minimum starting from any initial point.
Mathematically, let (h0, v0) be the initial point. The algorithm then proceeds as follows.
The directional search method used in the above algorithm (Steps 1 and 2) is as follows, using horizontal directional search as an example (vertical directional search is similar). Let g(h)=ƒ(h+h0, v0), where (h0, v0) is the initial position.
As shown in
(3.4) Experimental Studies
The hybrid methods described above were tested on Defense Advanced Research Projects Agency (DARPA) helicopter videos (see Literature Reference No. 5). Each of the hybrid methods described above have superior performance compared to existing methods. By testing on the Helicopter training dataset of 50 video sequences (about 25,000 total frames) (see Literature Reference No. 5), the error rate for the hybrid valley search method is only 0.003. The error rate for the hybrid alternate line search method is about 0.01, while saving more computational cost. For instance, on average, the hybrid alternate line search method uses about 8 image difference operations to reach the optimal solution, while the hybrid valley search method uses about 21 image difference operations to reach the optimal solution.
The methods according to embodiments of the present disclosure were also compared with other ego-motion methods, such as the Lucas-Kanade method (see Literature References Nos. 6 and 7) and the Lucas-Kanade method with Gaussian Pyramid (see Literature Reference Nos. 8 and 9). The table in
Many image processing and object recognition algorithms assume that a scene is stationary in order to find objects of interest. By performing ego-motion compensation, one can essentially remove the camera motion from the video and only be left with the objects that are moving independently from the camera. This has broad applications in wide area surveillance and for monitoring traffic on low power platforms, such as drones. The invention will have a wide range of applications in image and video processing where an ego-motion compensation is needed, such as on a helicopter, unmanned aerial vehicle (UAV), and satellite videos. After detection, objects in a wide area scene can be identified (using an object recognition algorithm) and tracked (using an object tracking algorithm). Due to its computational efficiency, the method is amenable for implementation in hardware with ultra-low power consumption.
Finally, while this invention has been described in terms of several embodiments, one of ordinary skill in the art will readily recognize that the invention may have other applications in other environments. It should be noted that many embodiments and implementations are possible. Further, the following claims are in no way intended to limit the scope of the present invention to the specific embodiments described above. In addition, any recitation of “means for” is intended to evoke a means-plus-function reading of an element and a claim, whereas, any elements that do not specifically use the recitation “means for”, are not intended to be read as means-plus-function elements, even if the claim otherwise includes the word “means”. Further, while particular method steps have been recited in a particular order, the method steps may occur in any desired order and fall within the scope of the present invention.
This is a Continuation-in-Part patent application of U.S. application Ser. No. 15/250,665, filed in the United States on Aug. 29, 2016, entitled, “A Fast Robust Method for Compensating Ego-Translations and Detecting Independent Moving Objects in Video Captured with a Moving Camera,” which is a Non-Provisional patent application of U.S. Provisional Application No. 62/210,630, filed in the United States on Aug. 27, 2015, entitled, “A Fast and Robust Method for Compensating Ego-Translations and Detecting Independent Moving Objects in Video Captured with a Moving Camera,” the entirety of which are hereby incorporated by reference. This is ALSO a Non-Provisional patent application of U.S. Provisional Application No. 62/330,462, filed in the United States on May 2, 2016, entitled, “A Valley Search Method for Estimating Ego-Motion of a Camera from Videos,” the entirety of which is hereby incorporated by reference. This is ALSO a Non-Provisional patent application of U.S. Provisional Application No. 62/330,518, filed in the United States on May 2, 2016, entitled, “An Efficient Hybrid Method for Ego-Motion from Videos Captured Using an Aerial Camera,” the entirety of which is hereby incorporated by reference. This is ALSO a Non-Provisional patent application of U.S. Provisional Application No. 62/500,071, filed in the United States on May 2, 2017, entitled, “Method to Detect Moving Obstacles Based on Sensory Prediction from Egomotion,” the entirety of which is hereby incorporated by reference.
This invention was made with government support under U.S. Government Contract Number HR0011-13-C-0052 UPSIDE issued by DARPA. The government has certain rights in the invention.
Number | Date | Country | |
---|---|---|---|
62210630 | Aug 2015 | US | |
62330462 | May 2016 | US | |
62330518 | May 2016 | US | |
62500071 | May 2017 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15250665 | Aug 2016 | US |
Child | 15585032 | US |