四軸飛行器追蹤之即時影像穩定設計
Real-Time Visual Stabilization for Quadcopter Tracking using Zed Stereo Camera
摘要
即時的穩定影像幾乎是所有基於影像控制系統中都會需要的資訊。近年來,為了改善電腦視覺的應用,例如視頻拍攝、室內監控、工業檢測、家用攝影機、保全攝影辨識移動物體、物件辨識等,影像穩定的議題越來越受到關注。然而,大多數現有的演算法僅限於對前景和背景特徵檢測與擷取,這限制了演算法在各種場景下的效果,例如物體的劇烈運動、接近鏡頭的動態物件和照明變化等情況。本文設計了一種影像穩定演算法,採用YOLO進行物件辨識與提取,使用帶通濾波與卡爾曼濾波穩定影像輸出。演算法分為5個區塊,首先是擷取輸入影像畫面並且確定其參數,接著將其傳遞給YOLO進行物件偵測,然後框出物體的特徵進行運動估計和平滑化,擷取運動參數和平滑影像後,使用運動補償和濾波器去除影像中的累積運動誤差和雜訊來得到穩定的輸出。透過這樣的設計,可以有效處理由於四軸飛行器(quadcopter)運動引起的雜訊和高頻振動,包含帶通濾波器可消除高低頻和系統雜訊,卡爾曼濾波器用來預測畫面位移並減少畫面的抖動和失真。最後,應用影像扭曲仿射變換(warping affine transformation)來產生穩定且有意義的輸出。實驗結果顯示,我們的方法對於各種照明和運動變化均具有強健性,可以在有限大小和資源的嵌入式系統上提升影像穩定的性能。與其他方法比較實驗結果顯示,本論文之方法在處理時間及振動誤差上皆優於4種常見之方法。
Real-time video stabilization is one of the most needed techniques for various image-based applications such as video taking, indoor-monitoring, industrial inspection, video stabilization for home video cameras, security cameras, object detection etc. However, most of the existing stabilization algorithms are only limited to the detection of foreground and background features and their extraction. This limits the applications when employed in various scenarios like the illuminance change, drastic change in motion of a near-foreground object w.r.t. the camera etc. Therefore, this thesis studies a stabilization method based on YOLOv3 for enhanced object detection in the given frame for precise and effective feature extraction along with the combination of Bandpass and Kalman filters for desirable motion filtering. First, the proposed method estimates the input frame parameters to determine the bounding box of objects with a confidence score using YOLOv3. Then, motion estimation, motion smoothing, motion filtering and motion compensation are computed in the subsequent framework modules. In doing so, it is assumed that the estimated motion of the input frames still contain noise and high-frequency vibration due to camera motion, which is mounted on a quadcopter. The quadcopter is used as a test application for this thesis as it also covers various aspects of image stabilization applications. Therefore, the Bandpass filter is used to remove all high and low-frequency transmission and system periodic noise while the Kalman filter predicts the future state of the frame displacement and moderates the shakiness and distortion of the frames. Finally, a warping affine transformation is applied to produce stabilized output with meaningful information. Experimental results show that the proposed method is robust against variation of illuminance and motion change to improve the performance of overall video stabilization on an embedded system with limited computing resources. Comparison results further concur that the proposed method outperforms 4 popular vision stabilization methods.