TW201523516A - Video frame stabilization method for the moving camera - Google Patents

Video frame stabilization method for the moving camera Download PDF

Info

Publication number
TW201523516A
TW201523516A TW102144708A TW102144708A TW201523516A TW 201523516 A TW201523516 A TW 201523516A TW 102144708 A TW102144708 A TW 102144708A TW 102144708 A TW102144708 A TW 102144708A TW 201523516 A TW201523516 A TW 201523516A
Authority
TW
Taiwan
Prior art keywords
picture
optical flow
rotation angle
mobile camera
screen
Prior art date
Application number
TW102144708A
Other languages
Chinese (zh)
Other versions
TWI496115B (en
Inventor
Chao-Ho Chen
Jau-Ji Jou
Tzu-Hsing Chang
Original Assignee
Univ Nat Kaohsiung Applied Sci
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Univ Nat Kaohsiung Applied Sci filed Critical Univ Nat Kaohsiung Applied Sci
Priority to TW102144708A priority Critical patent/TWI496115B/en
Publication of TW201523516A publication Critical patent/TW201523516A/en
Application granted granted Critical
Publication of TWI496115B publication Critical patent/TWI496115B/en

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The present invention discloses a video frame stabilization method for a moving camera. The method includes the following steps: detecting corner points (also called feature points) in the frame and calculating an optical flow of each corner point; transferring the optical flow to the polar coordinate for analysis and then deriving a global motion vector; deducing a rotation angle by the corner points; and finally the global motion vector and the rotation angle are utilized to compensate the vibrant shift image for stabilizing the video frames.

Description

移動攝影機之畫面穩定方法Mobile camera stabilization method

本發明是關於一種畫面穩定方法,特別是關於一種利用軟體設計方式針對移動中的攝影機所攝取的視訊影像之畫面穩定方法。The present invention relates to a picture stabilization method, and more particularly to a picture stabilization method for a video image taken by a camera in motion using a software design method.

畫面穩定方法一開始多用於固定架設之攝影監控系統上,以避免風吹、地動等外在因素造成畫面晃動之情形,習知常見之畫面穩定方法,是透過機械裝置、電子感測裝置或光學感測裝置等附加元件之輔助來達成,所需成本及硬體所需空間較高,近年來手持式攝影裝置或移動式攝影裝置之相關產品不斷發展,對於影像畫面之呈現品質與其移動之實用性均有更高之要求,因此畫面穩定方法多朝向軟體設計方式來達成畫面穩定之效果。At the beginning of the picture stabilization method, it is mostly used in the fixed photographic monitoring system to avoid the situation that the external factors such as wind blowing and ground motion cause the picture to shake. The common method of image stabilization is through mechanical devices, electronic sensing devices or optical sensations. With the aid of additional components such as measuring devices, the required cost and space required for hardware are high. In recent years, related products of hand-held photographic devices or mobile photographic devices have been continuously developed, and the quality of image display and its practicality for movement have been developed. There are higher requirements, so the picture stabilization method is more oriented towards the software design to achieve the effect of picture stabilization.

以軟體設計方式來達成視訊畫面穩定之技術,重點在於畫面間移動方向的估測準確度,習知技術大部分是以區塊比對法(block matching)為基礎,在畫面中以不同區塊組合配置,作為全域移動向量(global motion vector)的估測來源。然而此種方法若偵測區塊中含有其他移動物,則此移動物的移動向量會對區塊估測移動向量造成干擾以致估測錯誤,進而造成畫面位移補償失準,最後導致影響畫面穩定之效果。The technology of video image stabilization by software design focuses on the estimation accuracy of the moving direction between screens. Most of the conventional techniques are based on block matching, with different blocks in the picture. Combined configuration as an estimate of the global motion vector. However, if the detection block contains other moving objects, the moving vector of the moving object may cause interference to the estimated motion vector of the block, thereby estimating the error, thereby causing the screen displacement compensation to be misaligned, and finally causing the image to be stable. The effect.

因此,本發明提供一種移動攝影機之畫面穩定方法,不需增加硬體額外之空間與成本,並同時改善軟體設計方式上之缺點,提高全域移動向量之估測準確度,進而增加畫面穩定之效果。Therefore, the present invention provides a picture stabilization method for a mobile camera, which does not need to increase the additional space and cost of the hardware, and at the same time improves the shortcomings of the software design mode, improves the estimation accuracy of the global motion vector, and thereby increases the image stabilization effect. .

有鑑於上述習知技藝之問題,本發明之目的就是在提供一種移動攝影機之畫面穩定方法,以解決習知利用軟體設計進行畫面穩定補償時,全域移動向量容易受到移動物干擾而影響最後畫面穩定結果之問題,進而提升移動攝影機畫面穩定之效果。In view of the above-mentioned problems of the prior art, the object of the present invention is to provide a picture stabilization method for a mobile camera, so as to solve the conventional image stabilization compensation using a software design, the global motion vector is susceptible to interference from moving objects and affects the final picture. The result of the problem, thereby improving the stability of the mobile camera screen.

根據本發明之一目的,提出一種移動攝影機之畫面穩定方法,其包含下列步驟:藉由移動攝影機拍攝取得畫面;經由前置處理模組對畫面進行一前處理並偵測畫面之角點(corner points),又稱特徵點(feature points),利用角點於前後畫面中之座標變化之移動向量作為角點之光流(optical flow);利用位移穩定計算模組計算畫面位移(frame shift)變化量,將角點之光流轉換成極座標,對極座標之資料密度進行分群(clustering),濾除雜訊後產生背景光流,並將其作為畫面位移變化量;利用旋轉穩定計算模組計算畫面旋轉角度(rotation angle)變化量,經由每連續兩角點取得角度,比較前後畫面角度之變化作為旋轉角度,統計旋轉角度,選擇累積數量最大之旋轉角度作為畫面旋轉角度變化量;以及透過補償(compensation)輸出模組修正畫面之位移及旋轉角度,配合畫面旋轉角度變化量將畫面反向旋轉,並配合畫面位移向量反向位移,經過補償處理後輸出穩定之影像結果。According to an aspect of the present invention, a method for image stabilization of a mobile camera is provided, which comprises the steps of: capturing a picture by a mobile camera; performing a pre-processing on the picture via the pre-processing module and detecting a corner of the picture (corner) Points), also known as feature points, use the moving vector of the coordinate change of the corners in the front and rear pictures as the optical flow of the corner points; use the displacement stability calculation module to calculate the frame shift change The amount of light is converted into a polar coordinate, and the data density of the polar coordinates is clustered, and the background light flow is generated after filtering the noise, and is used as a screen displacement variation; the rotation stability calculation module is used to calculate the image. The rotation angle change amount is obtained by taking the angle between each successive two corner points, comparing the change of the front and rear screen angles as the rotation angle, the statistical rotation angle, selecting the maximum cumulative rotation angle as the screen rotation angle change amount, and the transmission compensation ( Compensation) The output module corrects the displacement and rotation angle of the screen, and the amount of change in the rotation angle of the screen The screen is rotated in the reverse direction and reversed with the screen displacement vector. After the compensation process, the stable image result is output.

較佳者,極座標是由光流之移動向量之光流長度及光流角度之資訊所構成。Preferably, the polar coordinates are composed of information on the optical flow length and the optical flow angle of the motion vector of the optical flow.

較佳者,位移穩定計算模組是對光流長度及光流角度之相似程度進行分群。Preferably, the displacement stability calculation module groups the similarities of the optical flow length and the optical flow angle.

較佳者,前處理可進一步包含縮減取樣(down-sample),降低該畫面之解析度及資訊量。Preferably, the pre-processing may further include down-sampling to reduce the resolution and amount of information of the picture.

較佳者,補償處理可進一步包含超取樣(super-sample),以回復該畫面之解析度。Preferably, the compensation process may further comprise a super-sample to recover the resolution of the picture.

較佳者,背景光流可經過背景光流平滑化(smoothing)以取得變化量較少之位移資訊。Preferably, the background light stream can be smoothed by the background light stream to obtain displacement information with less variation.

較佳者,累積數量最高之旋轉角度可經過旋轉角度平滑化取得變化量較少之旋轉資訊。Preferably, the rotation angle with the highest cumulative number can be smoothed by the rotation angle to obtain the rotation information with less variation.

承上所述,依本發明之移動攝影機之畫面穩定方法,其可具有一或多個下述優點:According to the above, the picture stabilization method of the mobile camera according to the present invention may have one or more of the following advantages:

(1)此移動攝影機之畫面穩定方法無須裝設額外之感測裝置,符合攝影機輕量化之設計方向,使其便於攜帶及移動,增加其便利性與實用性。(1) The image stabilization method of the mobile camera does not need to be equipped with an additional sensing device, and conforms to the design direction of the camera, so that it is easy to carry and move, and the convenience and practicability thereof are increased.

(2)此移動攝影機之畫面穩定方法將特徵點移動向量轉換成極座標分析,剔除影響之雜訊,避免因移動物干擾造成補償失準,進而增強畫面穩定之效果。(2) The image stabilization method of the mobile camera converts the feature point motion vector into polar coordinate analysis, eliminates the influence noise, and avoids the compensation misalignment caused by the moving object interference, thereby enhancing the effect of the image stabilization.

S1~S5、S21~S53‧‧‧步驟
‧‧‧前一張影像畫面
‧‧‧目前影像畫面
‧‧‧角點
‧‧‧旋轉角度
‧‧‧角點角度
‧‧‧全域旋轉角度
S1~S5, S21~S53‧‧‧ steps
‧‧‧Previous image screen
‧‧‧ Current image
‧‧‧corner
‧‧‧Rotation angle
‧‧‧ corner angle
‧‧‧Global rotation angle

第1圖係為本發明之移動攝影機之畫面穩定方法之流程圖。Fig. 1 is a flow chart showing a method for stabilizing a picture of a mobile camera of the present invention.

第2圖係為本發明之移動攝影機之畫面穩定方法之光流分布之示意圖。Fig. 2 is a schematic diagram showing the optical flow distribution of the picture stabilization method of the mobile camera of the present invention.

第3圖係為本發明之移動攝影機之畫面穩定方法之極座標轉換之示意圖。Fig. 3 is a schematic diagram showing the polar coordinate conversion of the picture stabilization method of the mobile camera of the present invention.

第4圖係為本發明之移動攝影機之畫面穩定方法之極座標分群之示意圖。Fig. 4 is a schematic diagram showing the polar coordinates of the picture stabilization method of the mobile camera of the present invention.

第5圖係為本發明之移動攝影機之畫面穩定方法之旋轉角度計算方式之示意圖。Fig. 5 is a schematic diagram showing the calculation method of the rotation angle of the picture stabilization method of the mobile camera of the present invention.

第6圖係為本發明之移動攝影機之畫面穩定方法之旋轉角度統計之直方圖。Fig. 6 is a histogram of the rotation angle statistics of the picture stabilization method of the mobile camera of the present invention.

為利貴審查委員瞭解本發明之技術特徵、內容與優點及其所能達成之功效,茲將本發明配合附圖,並以實施例之表達形式詳細說明如下,而其中所使用之圖式,其主旨僅為示意及輔助說明書之用,未必為本發明實施後之真實比例與精準配置,故不應就所附之圖式的比例與配置關係解讀、侷限本發明於實際實施上的權利範圍,合先敘明。The technical features, contents, advantages and advantages of the present invention will be understood by the reviewing committee, and the present invention will be described in detail with reference to the accompanying drawings. The subject matter is only for the purpose of illustration and description. It is not intended to be a true proportion and precise configuration after the implementation of the present invention. Therefore, the scope and configuration relationship of the attached drawings should not be interpreted or limited. First described.

請參閱第1圖,其係為本發明之移動攝影機之畫面穩定方法之流程圖。移動攝影機之畫面穩定方法包含下列處理步驟:S1:畫面輸入、S2:前置處理、S3:位移穩定計算處理、S4:旋轉穩定計算以及S5:補償輸出。其中,移動攝影機之畫面穩定方法之畫面輸入S1,主要是將移動中的攝影機所拍攝之影像作為輸入之畫面,經過前置處理S2後取得畫面之角點(亦稱為”特徵點”)及其光流(亦可稱為”移動向量”),再針對處理過之資訊進行位移穩定計算S3及旋轉角度計算S4,針對計算後估測之位移變化量及旋轉變化量對畫面進行補償及輸出S5,以獲得穩定之影像畫面結果,後續將針對主要處理步驟S2~S5進行詳細說明。Please refer to FIG. 1 , which is a flow chart of a method for stabilizing a mobile camera of the present invention. The picture stabilization method of the mobile camera includes the following processing steps: S1: picture input, S2: pre-processing, S3: displacement stability calculation processing, S4: rotation stability calculation, and S5: compensation output. The screen input S1 of the screen stabilization method of the mobile camera mainly uses the image captured by the moving camera as the input screen, and obtains the corner point (also referred to as "feature point") of the screen after the pre-processing S2 and The optical flow (also referred to as "moving vector"), and then the displacement stability calculation S3 and the rotation angle calculation S4 are performed on the processed information, and the screen is compensated and outputted for the calculated displacement change amount and the rotation change amount after the calculation. S5, to obtain a stable image frame result, which will be described in detail later for the main processing steps S2 to S5.

移動攝影機之畫面穩定方法之處理步驟S2:前置處理包含下列細部步驟:S21:縮減取樣、S22:偵測角點以及、S23:光流法分析。其中,由移動攝影機取得之畫面,在輸入時往往具有高解析度,但在進行畫面資料之處理與分析時,並不需要使用這麼多之影像資訊量,反而較大量之影像資訊,會造成計算上時間之浪費,因此在輸入畫面時,先以雙線性插值法(bilinear interpolation)進行縮減取樣(down-sample)S21,一方面將輸入畫面正規化(normalization),同時降低畫面資訊運算量,以增加畫面處理效率。再者,由於以往針對畫面區塊移動向量之分析,在非角點之位置常因孔徑問題(aperture problem)造成估測值有所偏差,而且為了減少大量畫面像素點的計算,因此本發明利用Harris角點偵測(Harris corners detection)方式S22,找出畫面中主要特徵點之角點位置,以此作為後續分析及計算之主要對象。最後,將偵測到之角點進行光流法(optical flow)分析S23,計算前一張影像畫面 與目前影像畫面 每一角點之移動向量,以此作為每一角點之光流,取得整體畫面之光流估測值,如第2圖所示,其為畫面中之角點於平面座標上光流之分布示意圖,由於前一張影像畫面 與目前影像畫面 之每一角點位置是相互對應的,因此計算出來之光流估測值應該具有高準確度,但由於部分資訊可能受到干擾而有錯誤之光流估測值,因此必須進一步篩選過濾掉異常資訊。Process step S2 of the image stabilization method of the mobile camera: The pre-processing includes the following detailed steps: S21: downsampling, S22: detecting corner points, and S23: optical flow method analysis. Among them, the picture obtained by the mobile camera often has high resolution when inputting, but when processing and analyzing the picture data, it is not necessary to use so much image information quantity, but a larger amount of image information will cause calculation. The time is wasted. Therefore, when inputting the picture, the down-sample S21 is first performed by bilinear interpolation. On the one hand, the input picture is normalized and the amount of picture information is reduced. To increase the efficiency of picture processing. Furthermore, due to the analysis of the motion vector of the picture block in the past, the position of the non-corner point often deviates from the estimated value due to the aperture problem, and in order to reduce the calculation of a large number of pixel points, the present invention utilizes Harris corners detection method S22, find the corner points of the main feature points in the picture, as the main object of subsequent analysis and calculation. Finally, the detected angular point is subjected to optical flow analysis S23 to calculate the previous image frame. With the current image The motion vector of each corner is used as the optical flow of each corner to obtain the optical flow estimation value of the overall picture. As shown in Fig. 2, it is the distribution of the optical flow on the plane coordinates in the picture. Because of the previous image With the current image The position of each corner point corresponds to each other, so the calculated optical flow estimation value should have high accuracy, but since some information may be interfered with the wrong optical flow estimation value, it is necessary to further filter and filter the abnormal information. .

欲取得正確之光流估測值,是將前述光流資訊輸入進行處理步驟S3:位移穩定計算,其包含下列細部步驟:S31:光流極座標轉換、S32:密度分群以及、S33:背景光流平滑化。其中,光流極座標轉換S31是參考霍夫轉換(Hough transformation)原理,將原本位於X-Y平面座標無法偵測出之資訊,轉換至極座標分析統計,最後將該統計結果轉換回X-Y平面座標,繪出最後偵測到之結果,再利用此偵測結果將相似之光流分為同一群組,差異性大的則分為不同群組,例如一光流向量定義為由 ,其經由如下列公式(1)及公式(2)之轉換,可將此光流計算轉換至極座標 ,其中 代表光流長度, 代表光流角度。To obtain the correct optical flow estimation value, the optical flow information is input into the processing step S3: displacement stability calculation, which includes the following detailed steps: S31: optical current coordinate conversion, S32: density grouping, and S33: background light flow. Smoothing. Among them, the optical current coordinate conversion S31 is a reference Hough transformation principle, which converts the information that could not be detected in the coordinates of the XY plane, converts it to the polar coordinate analysis statistics, and finally converts the statistical result back to the XY plane coordinates, and draws Finally, the detected result is used to divide the similar optical flows into the same group, and the large differences are divided into different groups, for example, an optical flow vector is defined as to , which can be converted to polar coordinates by conversion according to the following formula (1) and formula (2) ,among them Represents the length of the optical flow, Represents the angle of light flow.

  (1) (1)

  (2) (2)

參閱第2至第4圖,如第2圖所示,畫面中每一角點之光流資訊,經由上述公式轉換後,可轉換成如第3圖之極座標示意圖,其中極座標中央十字刻度為光流長度,外圍環狀刻度則為光流角度,原先X-Y平面座標之光流資訊轉換成極座標後,有助於濾除干擾雜訊之進行,並為濾除先前估測錯誤之光流,其操作方式是利用DBSCAN演算法將極座標之光流資訊進行密度分群S32,如第3圖所示,極座標上之光流分布於不同長度與角度,將光流長度與光流角度之相似程度高者歸於同一群,將單獨或數量較少之光流資訊剔除,得到如第4圖之極座標分群示意圖,其主要光流僅留下2群。經過分群後,接著計算各群光流於X-Y平面座標之分布範圍,將分布範圍最廣之群組,設定為背景光流,亦可稱為全域移動向量(global motion vector),與背景實際之移動向量一致。由於上述求得之光流之分佈曲線較為曲折且變化量大,為達成畫面背景穩定之效果,因此在取得背景光流後,須將之帶入卡爾曼濾波器中,進行背景光流平滑化S33,以得到較平緩穩定的畫面位移變化量。Referring to Figures 2 to 4, as shown in Fig. 2, the optical flow information of each corner point in the picture can be converted into a polar coordinate diagram as shown in Fig. 3 by the above formula, wherein the polar coordinate central cross scale is optical flow. The length and the outer ring scale are the optical flow angles. After the optical flow information of the original XY plane coordinates is converted into polar coordinates, it helps to filter out the interference noise and filter out the optical flow of the previously estimated error. The method is to use the DBSCAN algorithm to perform density grouping S32 on the optical information of the polar coordinates. As shown in Fig. 3, the optical flow on the polar coordinates is distributed at different lengths and angles, and the similarity between the optical flow length and the optical flow angle is attributed to the higher degree. In the same group, the optical flow information of a single or a small number is eliminated, and the polar coordinate grouping diagram as shown in FIG. 4 is obtained, and only the main group of the optical flow leaves only two groups. After grouping, the distribution of each group of optical flows in the XY plane coordinates is calculated, and the group with the widest distribution range is set as the background optical stream, which may also be called a global motion vector, and the background actual The motion vector is consistent. Since the distribution curve of the optical flow obtained above is tortuous and the amount of change is large, in order to achieve the effect of stabilizing the background of the picture, after obtaining the background optical flow, it must be brought into the Kalman filter to smooth the background optical flow. S33, to obtain a relatively smooth and stable change in the screen displacement.

參閱第5及第6圖,在計算畫面位移之變化量後,移動攝影機之畫面可能會在移動當中具有畫面旋轉之變化,因此必須針對旋轉角度之變化加以探討,其主要是以移動攝影機之畫面穩定方法當中之處理步驟S4:旋轉穩定計算加以處理,其包含下列細部步驟:S41:旋轉角度計算、S42:統計全域旋轉角度以及、S43:旋轉角度平滑化。其中,旋轉角度計算S41,同樣是針對前一張影像畫面 與目前影像畫面 之角點進行計算,如第5圖所示,前一張影像畫面 之角點為 ,目前影像畫面 對應之角點為 ,若兩畫面間角點數量各均為 ,則 ,例如 ,其中 各每連續兩點可求得一個角度 ,例如 可求得角點角度 可求得角點角度 ,再以此兩角點角度之差 得到此兩對特徵點旋轉角度 ,以此類推,則可求得所有特徵點之旋轉角度 ,如公式(3) ,其中, 分別為 於X坐標與Y坐標上的值, 分別為 於X坐標與Y坐標上的值, 則可類推。Referring to Figures 5 and 6, after calculating the amount of change in the screen displacement, the screen of the mobile camera may have a change in the rotation of the screen during the movement. Therefore, it is necessary to discuss the change of the rotation angle, which is mainly based on the movement of the camera. The processing step S4 in the stabilization method is processed by the rotation stability calculation, which includes the following detailed steps: S41: rotation angle calculation, S42: statistical global rotation angle, and S43: rotation angle smoothing. Among them, the rotation angle calculation S41 is also for the previous image frame. With the current image The corner point is calculated, as shown in Figure 5, the previous image Corner point is , current image Corresponding corner point is If the number of corner points between the two screens is ,then ,E.g and ,among them and An angle can be obtained for each successive two points ,E.g and Corner angle , and You can find the angle of the corner point and then the difference between the angles of the two corner points. Get the two pairs of feature point rotation angles , and so on, you can find the rotation angle of all feature points , as in formula (3), where versus Separately The values on the X and Y coordinates, versus Separately The values on the X and Y coordinates, versus Then it can be analogized.

  (3) (3)

由上述公式可求得每兩相鄰角點之角度變化,統計所有旋轉角度 ,可得到如第6圖之直方圖(histogram),其橫軸為旋轉角度,縱軸為該旋轉角度累積數量,選擇累積數量最多之選轉角度,作為全域旋轉角度 S42,也就是該畫面旋轉之角度。最後,由於原始旋轉角度之分佈曲線變化劇烈,因此同樣需進行旋轉角度平滑化S43,以取得較平緩穩定的 畫面旋轉角度變化量。From the above formula, the angle change of each two adjacent corner points can be obtained, and all rotation angles are counted. The histogram as shown in Fig. 6 can be obtained, wherein the horizontal axis is the rotation angle, the vertical axis is the cumulative number of the rotation angles, and the cumulative number of the most selected rotation angles is selected as the global rotation angle. S42, that is, the angle at which the picture is rotated. Finally, since the distribution curve of the original rotation angle changes drastically, the rotation angle smoothing S43 is also required to obtain a relatively smooth and stable change in the angle of rotation of the screen.

由上述旋轉穩定計算S4過程中取得畫面旋轉角度變化量,及由位移穩定計算S3過程中取得畫面位移變化量,將其帶入移動攝影機之畫面穩定方法中之處理步驟S5:補償輸出以處理產生穩定畫面,其中補償輸出S5包含:S51:反向旋轉補償、S52:反向位移補償以及S53:輸出影像結果。其中,反向旋轉補償S51是配合畫面角度變化量,利用仿射轉換(Affine transformation)將畫面反向旋轉以補償原畫面旋轉。接著進行反向位移補償S52,其配合畫面位移變化量而反向移動以進行補償,並且須將全域移動向量做超取樣(super-sample)以回復原有畫面之解析度。最後,經過畫面反向旋轉補償以及畫面反向位移補償之處理後,藉由移動攝影機輸出影像結果S53而獲得一穩定之輸出畫面。Obtaining the amount of change in the rotation angle of the screen during the rotation stability calculation S4, and obtaining the amount of change in the screen displacement during the displacement stability calculation S3, and bringing it into the screen stabilization method of the mobile camera, the processing step S5: compensating the output to generate the processing The stable picture, wherein the compensation output S5 includes: S51: reverse rotation compensation, S52: reverse displacement compensation, and S53: output image result. The reverse rotation compensation S51 is used to inversely rotate the screen by the affine transformation to compensate for the original screen rotation. Next, a reverse displacement compensation S52 is performed, which is inversely moved to compensate for the amount of change in the screen displacement, and the global motion vector must be super-sampled to restore the resolution of the original picture. Finally, after the processing of the reverse rotation compensation of the picture and the compensation of the reverse displacement of the picture, a stable output picture is obtained by the mobile camera outputting the image result S53.

上述移動攝影機之畫面穩定方法,其主要用於如數位相機、數位攝影機、智慧型手機、車載攝影機、手持攝影機影像辨識系統、盲人視覺輔助系統、無人駕駛載具視覺系統、軍警用車載影像(辨識、搜尋)系統、無人偵察機攝影系統等移動中之攝影機上,藉由針對攝影機擷取畫面中之角點進行位移及旋轉角度分析,並經由反向補償穩定原有畫面,使上述裝置在使用上能持續顯示穩定之畫面,以供使用者檢視及運用。The above-mentioned mobile camera picture stabilization method is mainly used for digital cameras, digital cameras, smart phones, car cameras, hand-held camera image recognition systems, blind visual aid systems, unmanned vehicle vision systems, military and police vehicle images ( On the moving camera, such as the identification, search system, and the unmanned reconnaissance camera system, the above device is stabilized by the displacement and rotation angle analysis of the corner points in the image captured by the camera, and the original image is stabilized by reverse compensation. It can continuously display a stable picture for users to view and use.

以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.

 

S1~S5、S21~S53‧‧‧步驟 S1~S5, S21~S53‧‧‧ steps

Claims (7)

一種移動攝影機之畫面穩定方法,其包含下列步驟:
藉由一移動攝影機拍攝影像取得一畫面;
經由一前置處理模組對該畫面進行一前處理,並偵測該畫面之一角點,利用該角點於前後畫面中之一座標變化之一移動向量作為該角點之一光流;
利用一位移穩定計算模組計算一畫面位移變化量,其係將該角點之該光流轉換成一極座標,對該極座標之資料密度進行分群,濾除雜訊後產生一背景光流,並將其作為該畫面位移變化量;
利用一旋轉穩定計算模組計算一畫面旋轉角度變化量,其係經由每連續兩該角點取得一角度,比較前後畫面該角度之變化作為一旋轉角度,統計該旋轉角度,選擇累積數量最大之該旋轉角度作為該畫面旋轉角度變化量;以及
透過一補償輸出模組修正畫面之位移及旋轉角度,其係配合該畫面旋轉角度變化量將畫面反向旋轉,並配合該畫面位移向量反向位移,經過一補償處理後輸出穩定之一影像結果。
A method for image stabilization of a mobile camera, comprising the following steps:
Taking a picture by taking a video from a mobile camera;
Performing a pre-processing on the picture through a pre-processing module, and detecting a corner point of the picture, and using the corner point to move the vector in one of the coordinates of the front and rear pictures as one of the corner points;
Calculating a displacement variation of a picture by using a displacement stability calculation module, which converts the optical flow of the corner point into a polar coordinate, grouping the data density of the polar coordinate, filtering out the noise to generate a background optical flow, and It is used as the amount of change in the screen displacement;
The rotation stability calculation module is used to calculate the amount of change of the rotation angle of a picture, and the angle is obtained by each of the two consecutive corner points, and the change of the angle of the front and rear pictures is compared as a rotation angle, and the rotation angle is counted, and the cumulative quantity is selected to be the largest. The rotation angle is used as the amount of change of the rotation angle of the screen; and the displacement and the rotation angle of the screen are corrected by a compensation output module, and the screen is rotated in the reverse direction according to the amount of change of the rotation angle of the screen, and is inversely shifted according to the displacement vector of the screen. After a compensation process, the output stabilizes one of the image results.
如申請專利範圍第1項所述之移動攝影機之畫面穩定方法,其中該極座標係由該光流之該移動向量之一光流長度及一光流角度之資訊所構成。The method for image stabilization of a mobile camera according to claim 1, wherein the polar coordinate system is composed of information of an optical flow length and an optical flow angle of the motion vector of the optical flow. 如申請專利範圍第2項所述之移動攝影機之畫面穩定方法,其中該位移穩定計算模組係對該光流長度及該光流角度之相似程度進行分群。The method for image stabilization of a mobile camera according to claim 2, wherein the displacement stability calculation module groups the optical flow length and the similarity of the optical flow angle. 如申請專利範圍第1項所述之移動攝影機之畫面穩定方法,其中該前處理可進一步包含一縮減取樣,降低該畫面之解析度及資訊量。The method for image stabilization of a mobile camera according to claim 1, wherein the pre-processing may further comprise a downsampling to reduce the resolution and the amount of information of the picture. 如申請專利範圍第4項所述之移動攝影機之畫面穩定方法,其中該補償處理可進一步包含一超取樣,以回復該畫面之解析度。The picture stabilization method of the mobile camera of claim 4, wherein the compensation process further comprises an oversampling to restore the resolution of the picture. 如申請專利範圍第1項所述之移動攝影機之畫面穩定方法,其中該背景光流可經過一背景光流平滑化過程取得變化量較少之位移資訊。The method for image stabilization of a mobile camera according to claim 1, wherein the background optical flow can obtain a displacement information with less variation through a background optical flow smoothing process. 如申請專利範圍第1項所述之移動攝影機之畫 面穩定方法,其中累積數量最高之該旋轉角度可經過一旋轉角度平滑化取得變化量較少之旋轉資訊。The picture stabilization method of the mobile camera according to claim 1, wherein the rotation angle having the highest cumulative number can be smoothed by a rotation angle to obtain rotation information having a small amount of change.
TW102144708A 2013-12-05 2013-12-05 Video frame stabilization method for the moving camera TWI496115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102144708A TWI496115B (en) 2013-12-05 2013-12-05 Video frame stabilization method for the moving camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102144708A TWI496115B (en) 2013-12-05 2013-12-05 Video frame stabilization method for the moving camera

Publications (2)

Publication Number Publication Date
TW201523516A true TW201523516A (en) 2015-06-16
TWI496115B TWI496115B (en) 2015-08-11

Family

ID=53935722

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102144708A TWI496115B (en) 2013-12-05 2013-12-05 Video frame stabilization method for the moving camera

Country Status (1)

Country Link
TW (1) TWI496115B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI567661B (en) * 2015-10-30 2017-01-21 東友科技股份有限公司 Image capturing method and image capturing device
CN106550174A (en) * 2016-10-28 2017-03-29 大连理工大学 A kind of real time video image stabilization based on homography matrix
TWI612808B (en) * 2016-08-22 2018-01-21 元智大學 Method and apparatus for global motion estimation based on motion vector clustering
TWI632814B (en) * 2016-11-11 2018-08-11 財團法人工業技術研究院 A video frame generating method and system thereof
CN116957992A (en) * 2023-09-20 2023-10-27 南京木木西里科技有限公司 Real-time microscopic image anti-shake method based on feature tracking

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7440008B2 (en) * 2004-06-15 2008-10-21 Corel Tw Corp. Video stabilization method
TW201120812A (en) * 2009-12-04 2011-06-16 Huper Lab Co Ltd Stabilization method for vibrating video frames
TWI469062B (en) * 2011-11-11 2015-01-11 Ind Tech Res Inst Image stabilization method and image stabilization device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI567661B (en) * 2015-10-30 2017-01-21 東友科技股份有限公司 Image capturing method and image capturing device
US9769347B2 (en) 2015-10-30 2017-09-19 Teco Image Systems Co., Ltd. Image capturing method
TWI612808B (en) * 2016-08-22 2018-01-21 元智大學 Method and apparatus for global motion estimation based on motion vector clustering
CN106550174A (en) * 2016-10-28 2017-03-29 大连理工大学 A kind of real time video image stabilization based on homography matrix
CN106550174B (en) * 2016-10-28 2019-04-09 大连理工大学 A kind of real time video image stabilization based on homography matrix
TWI632814B (en) * 2016-11-11 2018-08-11 財團法人工業技術研究院 A video frame generating method and system thereof
US10200574B2 (en) 2016-11-11 2019-02-05 Industrial Technology Research Institute Method and system for generating a video frame
CN116957992A (en) * 2023-09-20 2023-10-27 南京木木西里科技有限公司 Real-time microscopic image anti-shake method based on feature tracking
CN116957992B (en) * 2023-09-20 2024-01-05 南京木木西里科技有限公司 Real-time microscopic image anti-shake method based on feature tracking

Also Published As

Publication number Publication date
TWI496115B (en) 2015-08-11

Similar Documents

Publication Publication Date Title
Wang et al. Joint filtering of intensity images and neuromorphic events for high-resolution noise-robust imaging
CN109788189B (en) Five-dimensional video stabilization device and method for fusing camera and gyroscope
US11625840B2 (en) Detecting motion in images
WO2020253618A1 (en) Video jitter detection method and device
JP6087671B2 (en) Imaging apparatus and control method thereof
TWI496115B (en) Video frame stabilization method for the moving camera
CN107749987B (en) Digital video image stabilization method based on block motion estimation
EP3798975B1 (en) Method and apparatus for detecting subject, electronic device, and computer readable storage medium
TWI639136B (en) Real-time video stitching method
CN114586337B (en) Video anti-shake optimization processing method and device and electronic equipment
CN103841298A (en) Video image stabilization method based on color constant and geometry invariant features
WO2019232793A1 (en) Two-camera calibration method, electronic device and computer-readable storage medium
JP2016038415A (en) Imaging apparatus, control method thereof, program, and storage medium
WO2023169281A1 (en) Image registration method and apparatus, storage medium, and electronic device
WO2023236508A1 (en) Image stitching method and system based on billion-pixel array camera
TWI394097B (en) Detecting method and system for moving object
WO2020257999A1 (en) Method, apparatus and platform for image processing, and storage medium
US9712807B2 (en) Disparity determination for images from an array of disparate image sensors
WO2021183283A1 (en) Automatic fisheye camera calibration for video analytics
Dasari et al. A joint visual-inertial image registration for mobile HDR imaging
Sánchez et al. Motion smoothing strategies for 2D video stabilization
JP5539565B2 (en) Imaging apparatus and subject tracking method
US20220286611A1 (en) Electrical image stabilization (eis)-assisted digital image stabilization (dis)
US20180007344A1 (en) Stereoscopic image capture
WO2021114883A1 (en) Image registration method, terminal, and storage medium

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees