TW201508549A - Method for tracking and recording fingertip trajectory by image processing - Google Patents

Method for tracking and recording fingertip trajectory by image processing Download PDF

Info

Publication number
TW201508549A
TW201508549A TW102130377A TW102130377A TW201508549A TW 201508549 A TW201508549 A TW 201508549A TW 102130377 A TW102130377 A TW 102130377A TW 102130377 A TW102130377 A TW 102130377A TW 201508549 A TW201508549 A TW 201508549A
Authority
TW
Taiwan
Prior art keywords
fingertip
hand
image
tracking
recording
Prior art date
Application number
TW102130377A
Other languages
Chinese (zh)
Other versions
TWI507919B (en
Inventor
Ming-Fang Wu
Chun-Jung Chen
Tien-Chi Chen
Ping-Tsung Wang
Sung-Pei Yang
Jen-Hsing Li
Original Assignee
Univ Kun Shan
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 Kun Shan filed Critical Univ Kun Shan
Priority to TW102130377A priority Critical patent/TWI507919B/en
Publication of TW201508549A publication Critical patent/TW201508549A/en
Application granted granted Critical
Publication of TWI507919B publication Critical patent/TWI507919B/en

Links

Landscapes

  • Image Analysis (AREA)

Abstract

The present invention relates to a method for tracking and recording fingertip trajectory by image processing. Primarily, preprocessing image binarization for skin-tone colors can be carried out on a basis of image processing first, and then determine hand positions and find out fingertips by the characteristics that the positions of fingertips are usually on the external frame of a hand block. In such a case, the identified fingertip trajectory can be obtained for tracking and recording purposes.

Description

追蹤與記錄指尖軌跡的影像處理方法Image processing method for tracking and recording fingertip trajectories

本發明係有關於一種追蹤與記錄指尖軌跡的影像處理方法,尤其是指一種透過影像處理的方式進行指尖之追蹤與記錄的創新方法。The invention relates to an image processing method for tracking and recording fingertip trajectories, in particular to an innovative method for tracking and recording fingertips by means of image processing.

按,這幾年在各種消費性電子產品中,以直覺式手寫方式為輸入介面的觸控裝置漸漸普及,由於觸控手寫功能需經由觸控筆,手寫盤或觸控螢幕來達成,以致觸控裝置通常拘泥於裝置本身畫面的大小,且建置觸控裝置需要一定的製造成本,因此,鑒於手寫輸入的方便性,使用視訊鏡頭來攝取手寫軌跡的連續畫面,再以影像軌跡線條追蹤的方式來進行手寫文字辨識的應用相繼被提出,如台灣專利公告號466438中提出一種「手勢滑鼠的構成方法」,惟其主要使用在單純的環境中,藉著手指或其他適當物品在攝影區內的影像,來操作電腦的構成方法;或如台灣專利公告號393629中提出一種「手勢辨識系統及方法以及記憶媒體」,然其主要重點在手勢辨識系統而非追蹤系統;再如台灣專利公告號I224288中提出一種「在影像中校準手勢特徵之方法」,其揭示以首先擷取一輸入之手勢影像,並對此手勢影像進行影像前處理,以分割出手勢影像之二值化輪廓影像所形成的封閉曲線,接著,影像處理裝置可根據此封閉曲線來描繪出手勢影像之曲率格化空間影像,再將其所形成之座標-峰值組數列與一預設函數進行迴旋積分運算,藉以將具有最大積分值之座標值指定為基準點,進而求出手勢影像之特徵參數,最後比對手勢影像之特徵參數與參考手勢形狀之特徵參數,以辨識出手勢影像所對應之手勢形狀,然此運算方法仍過於複雜,且並未討論到如何擷取與追蹤手勢。In recent years, in various consumer electronic products, touch devices with intuitive input and handwriting as input interfaces have gradually become popular. Since touch handwriting functions need to be achieved through stylus, handwriting or touch screen, The control device is usually limited to the size of the device itself, and the construction of the touch device requires a certain manufacturing cost. Therefore, in view of the convenience of handwriting input, the video lens is used to capture a continuous picture of the handwritten track, and then tracked by the image track line. The application of handwritten character recognition has been proposed. For example, Taiwan Patent Publication No. 466438 proposes a "method of constructing a gesture mouse", but it is mainly used in a simple environment, by means of a finger or other appropriate item in the photography area. Image, the method of operating the computer; or, as in Taiwan Patent Publication No. 393629, a "gesture recognition system and method and memory medium", but its main focus is on the gesture recognition system rather than the tracking system; A method of "calibrating gesture features in an image" is proposed in I224288, which first reveals Taking an input gesture image and performing image pre-processing on the gesture image to segment a closed curve formed by the binarized contour image of the gesture image, and then the image processing device can draw the gesture image according to the closed curve The curvature maps the spatial image, and then performs the convolution integral operation on the coordinate-peak group sequence formed by the coordinate group to specify the coordinate value having the largest integral value as the reference point, thereby obtaining the characteristic parameter of the gesture image. Finally, the feature parameters of the gesture image and the feature parameters of the reference gesture shape are compared to identify the gesture shape corresponding to the gesture image. However, the operation method is still too complicated, and how to capture and track the gesture is not discussed.

緣是,發明人秉持多年該相關行業之豐富設計開發及實際製作經驗,針對現有之手勢辨識方法再予以研究改良,提供一種追蹤與記錄指尖軌跡的影像處理方法,以期達到更佳實用價值性之目的者。The reason is that the inventor has been rich in design and development and practical production experience of the relevant industry for many years, and has researched and improved the existing gesture recognition method to provide an image processing method for tracking and recording fingertip trajectory, in order to achieve better practical value. The purpose of the person.

本發明之追蹤與記錄指尖軌跡的影像處理方法,其主要包括:The image processing method for tracking and recording fingertip trajectory of the present invention mainly comprises:

(A)影像膚色二值化處理:用以將擷取的影像資料進行膚色區塊的判定與二值化處理;(A) Image skin color binarization processing: used to determine and binarize the color image block of the captured image data;

(B)手部區塊判定:用以擷取出正確的手部區塊,包括:(B) Hand block determination: used to pick up the correct hand block, including:

(B1)膚色區塊標定;(B1) skin color block calibration;

(B2)手部區塊篩選;(B2) hand block screening;

(C)指尖座標追蹤:藉由偵測指尖位置,得到指尖座標;其步驟包括:(C) Fingertip coordinate tracking: By detecting the position of the fingertip, the fingertip coordinates are obtained; the steps include:

(C1)計算手部區塊外框;(C1) calculating the outer block of the hand block;

(C2)外框邊界尖點座標搜尋;(C2) rim point coordinate search of the outer frame boundary;

(C3)指尖條件篩選;(C3) Fingertip condition screening;

(D)指尖軌跡座標記錄:將得到的每一指尖座標加以記錄,以得到連續的指尖軌跡。(D) Fingertip trajectory coordinate record: Each fingertip coordinate obtained is recorded to obtain a continuous fingertip trajectory.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B1)中,是運用連接元區域標定,把影像中屬於相同物件之相連像素找出來,藉此標定出影像中各個膚色獨立的物件,並能統計出在該影像中所有的膚色獨立物件的數量、面積、物件範圍之資訊。The image processing method for tracking and recording the fingertip trajectory as described above, wherein in the step (B1), the connected pixel region calibration is used to find the connected pixels belonging to the same object in the image, thereby calibrating each of the images A skin-independent object that counts the number, area, and range of objects of all skin-tone objects in the image.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B1)中,在整張影像經連接元區域標定之後,進一步利用設定一面積門檻值過濾出前兩大膚色區塊。The image processing method for tracking and recording the fingertip trajectory as described above, wherein in the step (B1), after the entire image is calibrated by the connected element region, the first two skin color patches are further filtered by setting an area threshold value.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B1)中,該面積門檻值為1200像素。The image processing method for tracking and recording a fingertip trajectory as described above, wherein in the step (B1), the area threshold is 1200 pixels.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B2)中,是以色調(Hue)範圍為最小4度與最大值25度之間的膚色值為紅膚色,藉由影像中紅膚色比例來判定是否為手部。An image processing method for tracking and recording a fingertip trajectory as described above, wherein in step (B2), a skin color value between a minimum of 4 degrees and a maximum value of 25 degrees in a hue range is a red color. It is determined by the proportion of red skin in the image whether it is a hand.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B2)中,當該影像中兩大膚色區塊紅膚色比例皆大於一定值,則比例大者為手部;若僅一膚色區塊大於紅膚色比例門檻,則此區塊為手部;若兩者皆不符,則畫面判定為無手部區塊。The image processing method for tracking and recording the fingertip trajectory as described above, wherein, in the step (B2), when the ratio of the red skin color of the two major skin color blocks in the image is greater than a certain value, the larger ratio is the hand; If only one skin color block is larger than the red skin color ratio threshold, the block is a hand; if neither of them is inconsistent, the picture is determined to be no hand block.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C1)中,該手部區塊外框計算方式為將手部區塊像素從左至右,由上至下進行統計各點座標位置,找出X與Y座標之最大與最小值,再以此值標示出矩形外框即為手部區塊外框。The image processing method for tracking and recording the fingertip trajectory as described above, wherein in the step (C1), the hand block outer frame is calculated by moving the hand block pixels from left to right, from top to bottom. The coordinates of each point are counted to find the maximum and minimum values of the X and Y coordinates, and then the value of the rectangular frame is the outer frame of the hand block.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C2)中,係從該手部區塊外框依序搜尋,以該外框為一維像素,將外框四邊分四部分,由四角落為起點,以順時鐘方向依序搜尋,在遇到該外框上有手部邊緣像素時,將此點設為指尖中點Fm,再以該指尖中點Fm為起點X1,尋找相鄰手部邊緣座標,搜尋到相鄰座標之後將原點設為0,並將該座標設為下一次搜尋的中心X2,依此方式完成第一次搜尋後,再分別往前及往後進行30次遞廻,以搜尋指尖前點Ff及後點Fb,以此求得該外框四邊上的尖點位置。The image processing method for tracking and recording the fingertip trajectory as described above, wherein, in the step (C2), the outer frame of the hand block is sequentially searched, and the outer frame is a one-dimensional pixel, and the outer frame is four sides. Divided into four parts, starting from the four corners, searching sequentially in the clockwise direction. When there is a hand edge pixel on the outer frame, set this point as the midpoint of the fingertip Fm, and then use the fingertip midpoint Fm is the starting point X1, find the adjacent hand edge coordinates, after searching for the adjacent coordinates, set the origin to 0, and set the coordinate to the center X2 of the next search. After completing the first search in this way, Perform 30 times forward and backward to search for the front point Ff and the back point Fb to find the position of the cusp on the four sides of the frame.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C3)中,係由該外框四邊上的四個尖點中進行指尖位置篩選,其係先以尖點Fm 與前後點Ff 及Fb 計算出兩向量,再以這兩向量計算夾角即可得知尖點座標與前後頭30像素座標之夾角θ,其中:,接著比對四邊上夾角最小的尖點,該夾角最小的尖點即是指尖。The image processing method for tracking and recording the fingertip trajectory as described above, wherein in the step (C3), the fingertip position is selected from the four cusps on the four sides of the outer frame, and the cephalist F is first m and the front and back points F f and F b calculate two vectors versus Then, the angle between the cusp coordinates and the 30-pixel coordinates of the front and rear heads can be obtained by calculating the angle between the two vectors, wherein: Then, the cusp with the smallest angle on the four sides is compared, and the sharp point with the smallest angle is the fingertip.

如上所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C3)中,當該四邊上之各夾角超過45度時,該夾角判定為非指尖位置。The image processing method for tracking and recording the fingertip trajectory as described above, wherein in the step (C3), when the angles on the four sides exceed 45 degrees, the included angle is determined to be a non-fingertip position.

為令本發明所運用之技術內容、發明目的及其達成之功效有更完整且清楚的揭露,茲於下詳細說明之:For a more complete and clear disclosure of the technical content, the purpose of the invention and the effects achieved by the present invention, it is explained in detail below:

請參看第一圖所示,其係本發明之追蹤與記錄指尖軌跡的影像處理方法流程圖。本發明之方法包括如下步驟:Please refer to the first figure, which is a flow chart of the image processing method for tracking and recording the fingertip trajectory of the present invention. The method of the invention comprises the following steps:

(A)影像膚色二值化處理:(A) Image skin color binarization:

首先將擷取的影像資料進行色彩的轉換,以判定膚色區塊,再針對該膚色區塊進行二值化處理[由於此部分之影像膚色二值化處理為一般先前技術,且非本發明訴求重點,故不予贅述];First, the captured image data is color-converted to determine the skin color block, and then the skin color block is binarized [because the image skin color binarization processing of this part is a general prior art, and the invention is not claimed Focus, so I will not repeat them];

(B)手部區塊判定:(B) Hand block determination:

主要係為從影像膚色二值化處理後的影像中,擷取出正確的手部區塊。由於在一般操作環境當中,鏡頭擷取到的膚色畫面不一定只有手部,通常臉部會一起入鏡,或是手部並不存在於畫面中,所以需要正確的標示出手部區塊才能正確找出指尖所在位置,此流程主要是由膚色區塊標定及手部區塊篩選等兩個步驟來達成;The main reason is to take out the correct hand block from the image after binarization of the image skin color. Because in the general operating environment, the skin image captured by the lens does not have to be only the hand, usually the face will enter the mirror together, or the hand does not exist in the picture, so it is necessary to correctly mark the hand block to be correct. Find out where the fingertips are located. This process is mainly achieved by two steps: skin color block calibration and hand block screening.

(B1)膚色區塊標定:係將完成影像膚色二值化之影像中的每一膚色區塊標示出來,並計算各區塊的範圍、面積、高度和寬度大小。本發明在此步驟中主要是運用連接元區域標定(connected component labeling),把影像中屬於相同物件之相連像素找出來,藉此標定出影像中各個獨立的物件,當整張影像經連接元區域標定之後,就可以統計出在影像中所有的物件數量、面積、物件範圍等資訊,此外,當整張影像經連接元區域標定之後,仍有一些較大雜點無法排除,或是目標物離鏡頭過遠無法進行追蹤,因此,本發明在此步驟利用設定一面積門檻值過濾出前兩大膚色區塊,其中該面積門檻值為1200像素;在膚色二值化的影像裡進入畫面之中的除了手部外,臉部亦可能同時存在,而且通常手部面積會比臉部小,因此透過符合門檻值的前兩大區塊框選出來後,須再進行臉部排除,請參看第二圖中的矩形框所示,為影像中前兩大膚色區塊標定的結果;(B1) Skin color block calibration: Each skin color block in the image in which the image skin color binarization is completed is marked, and the range, area, height and width of each block are calculated. In this step, the invention mainly uses the connected component labeling to find out the connected pixels belonging to the same object in the image, thereby calibrating the individual objects in the image, and when the whole image passes through the connected meta-region After calibration, you can count all the objects in the image, the area, the scope of the object and other information. In addition, after the entire image is calibrated by the connected element area, there are still some large noise points that cannot be ruled out, or the target object is away. The lens cannot be tracked too far. Therefore, the present invention filters the first two skin color blocks by setting an area threshold value, wherein the area threshold is 1200 pixels; entering the picture in the binarized image of the skin color In addition to the hand, the face may also exist at the same time, and usually the hand area will be smaller than the face. Therefore, after selecting the first two blocks that meet the threshold value, the face must be removed. Please refer to the second. The rectangular box in the figure shows the result of calibrating the first two skin color blocks in the image;

(B2)手部區塊篩選:由於膚色二值化影像裡手部與臉部可能同時進入畫面之中,因此必須將手部區塊篩選出來。通常手部面積會比臉部小,且手掌的膚質不同於手背與臉部,且通常會比臉部來的白皙及粉紅,且此種膚色於手部區塊中的比例會遠大於臉部區塊,因此本發明以此種膚色比例來判定是否為手部,計算此膚色比例,需設一門檻值,再統計膚色候選區塊中白皙及粉紅的像素,並計算符合此門檻值像素與膚色區塊總像素比例,此比例稱為紅膚色比例;其中,本發明是以色調(Hue)範圍為最小4度與最大值25度之間的膚色值為紅膚色。計算出每一區塊之紅膚色比例之後即可對兩膚色區塊進行比對,若兩區塊紅膚色比例皆大於一定值,則比例大者為手部;若僅一區塊大於紅膚色比例門檻,則此區塊為手部;若兩者皆不符,則畫面判定為無手部區塊,請參看第三圖(a)為經膚色二值化之原影像,第三圖(b)顯示臉部僅嘴唇部分符合紅膚色區塊,而手部於手掌有較高的符合率,第三圖(c)為手部區塊篩選判別結果,白色區塊為手部,灰色為被排除的臉部區塊;(B2) Hand block screening: Since the hand and face of the skin color binarized image may enter the picture at the same time, the hand block must be screened out. Usually the hand area is smaller than the face, and the skin of the palm is different from the back and face of the hand, and usually it is more white and pink than the face, and the proportion of this skin color in the hand block is much larger than the face. The block, therefore, the present invention determines whether the hand is the hand based on the proportion of the skin color. To calculate the skin color ratio, a threshold value is needed, and then the white and pink pixels in the skin color candidate block are counted, and the pixel corresponding to the threshold value is calculated. The ratio of the total pixel to the skin color block is called the red skin color ratio; wherein, the present invention is a red skin color with a skin color value between a minimum of 4 degrees and a maximum of 25 degrees in the hue range. After calculating the red skin color ratio of each block, the two skin color blocks can be compared. If the red skin color ratio of both blocks is greater than a certain value, the larger ratio is the hand; if only one block is larger than the red color For the proportional threshold, the block is the hand; if neither of them is inconsistent, the picture is judged as no hand block, please refer to the third picture (a) for the original image binarized by skin color, the third picture (b) Show that only the lip part of the face conforms to the red color block, and the hand has a higher coincidence rate in the palm. The third figure (c) is the hand block screening result, the white block is the hand, the gray is the Excluded face block;

(C)指尖座標追蹤:(C) Fingertip coordinate tracking:

擷取出手部區塊之後,即可開始進行指尖位置偵測。主要係先計算出手部區塊外框,再從外框上進行邊界尖點座標搜尋,最後從邊界尖點座標來判定指尖位置三個步驟達成;After the hand block is removed, the fingertip position detection can be started. The main method is to first calculate the outer frame of the hand block, and then perform the boundary point coordinate search from the outer frame, and finally determine the fingertip position from the boundary point coordinates to achieve the three steps;

(C1)計算手部區塊外框:由經驗發現,以指尖書寫的方式中食指指尖通常會位於手部區塊的外框上,因此根據此現象可快速求得指尖位置,第四圖所示為手部於各角度下指尖與外框位置示意圖,手部區塊外框計算方式為將手部區塊像素從左至右,由上至下進行統計各點座標位置,找出X與Y座標之最大與最小值,再以此值標示出矩形外框即為手部區塊外框;(C1) Calculate the outer frame of the hand block: It has been found by experience that the fingertip of the index finger is usually located on the outer frame of the hand block in the manner of writing with the fingertip, so the fingertip position can be quickly obtained according to this phenomenon. The four figures show the position of the fingertip and the outer frame of the hand at each angle. The calculation method of the outer frame of the hand block is to count the pixel of the hand block from left to right, and count the coordinate position of each point from top to bottom. Find the maximum and minimum values of the X and Y coordinates, and then mark the rectangular frame with the value of the hand block;

(C2)外框邊界尖點座標搜尋:計算出手部區塊外框之後,接著計算指尖可能位置,由於手指會在手部區塊外框上,所以從外框四邊及手部位置邊緣來搜尋可能為指尖的位置,請參看第五圖所示,揭示本發明之指尖搜尋情況示意圖,以外框為一維像素,因此將外框四邊分四部分,由四角落為起點,以順時鐘方向依序搜尋,遇到外框上有手部邊緣像素,將此點設為指尖中點Fm,再以指尖中點Fm為起點X1,依第六圖(a)、(b)由A、B、C、D、E、F、G、H順序的方式尋找相鄰手部邊緣座標,搜尋到相鄰座標之後將原點設為0,並將該座標設為下一次搜尋的中心X2。依此方式完成第一次搜尋後,再分別往前及往後進行30次遞廻,以搜尋指尖前點Ff 及後點Fb ;當外框四邊都完成上述步驟的搜尋後,即可得到所有手部邊緣於影像外框上之尖點及尖點前後頭30像素座標,結果請參閱第七圖所示,其中手部邊緣內部虚線三角型為尖點與相隔30像素之前後點所繪製;(C2) Snap point coordinate search of the outer frame boundary: After calculating the outer frame of the hand block, the possible position of the fingertip is calculated. Since the finger will be on the outer frame of the hand block, it is from the four sides of the outer frame and the edge of the hand position. The search may be the position of the fingertip. Please refer to the fifth figure to reveal the schematic diagram of the fingertip search in the present invention. The outer frame is a one-dimensional pixel, so the four sides of the outer frame are divided into four parts, and the four corners are used as the starting point. The clock direction is searched sequentially. When there is a hand edge pixel on the outer frame, set this point to the midpoint of the fingertip Fm, and then use the fingertip midpoint Fm as the starting point X1, according to the sixth figure (a), (b) Find the adjacent hand edge coordinates in the order of A, B, C, D, E, F, G, and H. After searching for the adjacent coordinates, set the origin to 0 and set the coordinate to the next search. Center X2. After completing the first search in this way, perform 30 times of forward and backward respectively to search for the F f and the back point F b of the fingertip; when the four sides of the frame complete the search of the above steps, You can get the cusps of all the edges of the hand on the outer frame of the image and the 30-pixel coordinates of the front and the back of the cusp. The result is shown in the seventh figure, where the dotted triangle inside the hand edge is a sharp point and 30 pixels apart. Point drawn;

(C3)指尖條件篩選:求得影像外框四邊上的尖點位置後,接著要從這四個尖點之中進行指尖位置篩選,以選出真正的指尖位置。如第八圖所示,此步驟先以尖點Fm 與前後點Ff 及Fb 計算出兩向量,再以這兩向量計算夾角即可得知尖點座標與前後頭30像素座標之夾角θ,其中:(C3) Fingertip Condition Screening: After finding the cusp position on the four sides of the image frame, then the fingertip position screening is performed from among the four sharp points to select the true fingertip position. As shown in the eighth figure, this step first calculates two vectors with the cusp F m and the front and rear points F f and F b . versus Then, the angle between the cusp coordinates and the 30-pixel coordinates of the front and rear heads can be obtained by calculating the angle between the two vectors, wherein: ;

由於在手部影像當中,在外框四邊尖點之中指尖夾角是最小的,因此只需比對出四邊上夾角最小的尖點即是指尖;但有一例外,當手部未伸出手指時,代表不是處於書寫狀態,指尖不存在,所以需規範指尖夾角之最大值,當超過此角度時,代表此夾角亦非指尖位置,其中,該指尖夾角最大值為45度;In the hand image, the angle between the fingertips in the four corners of the frame is the smallest, so the only point that matches the smallest angle on the four sides is the fingertip; but there is one exception, when the hand does not reach out. , the representative is not in the writing state, the fingertip does not exist, so the maximum value of the fingertip angle should be standardized. When the angle is exceeded, the angle is not the fingertip position, and the maximum angle of the fingertip is 45 degrees;

(D)指尖軌跡座標記錄:(D) Fingertip track coordinates record:

在判定出指尖座標之後,即可進行指尖軌跡記錄。本發明的記錄方式是將每張畫面進行指尖辨識,當畫面中有指尖出現即予以記錄,若無符合指尖條件則不予記錄,如第九圖(a)的黑色座標點所示,記錄完成後,軌跡狀態會是一座標序列,如下:After the fingertip coordinates are determined, the fingertip trajectory can be recorded. The recording method of the invention is to identify the fingertip of each picture, and record when there is a fingertip in the picture, and not record if the fingertip condition is not met, as shown by the black coordinate point of the figure (a) of the ninth figure. After the recording is completed, the track status will be a standard sequence, as follows:

將第九圖(a)座標點連結起來即如第九圖(b),其中,第九圖(a)顯示為數字3之手寫指尖軌跡座標點,第九圖(b)係顯示將第九圖(a)數字3之手寫指尖軌跡座標點相連起來之示意圖;另請再參第十圖,其係英文字s手寫指尖軌跡座標點示意圖,藉由此座標序列即可作為指尖軌跡識別之用。The ninth figure (a) coordinates are linked as shown in the ninth figure (b), wherein the ninth figure (a) is shown as the number 3 handwritten fingertip track coordinates, and the ninth figure (b) is shown Figure 9 (a) Figure 3 is a schematic diagram of the handwritten fingertip symmetry coordinates of the number 3; please also refer to the tenth figure, which is a schematic diagram of the handwritten fingertip symmetry of the English word s, by which the coordinate sequence can be used as a fingertip Track recognition.

即本發明將影像由視訊鏡頭擷取之後,經過膚色二值化處理後,先篩選出的膚色區塊並保留較大區塊,再輔以紅膚色區塊分布比例篩選出手部區塊;接著以手部區塊外框為指尖搜尋範圍,搜尋此外框上所有可能為手部的尖點,再從尖點中判斷出指尖位置,以接續進行指尖追蹤及記錄,透過將指尖移動狀況的座標加以記錄使之成為軌跡。In the present invention, after the image is captured by the video lens, after the skin color binarization process, the skin color block is first selected and the larger block is reserved, and then the hand block is filtered by the red skin color distribution ratio; Use the outer block of the hand block as the fingertip search range, search for all the cusp points on the frame that may be the hand, and then judge the fingertip position from the sharp point to continue the fingertip tracking and recording. The coordinates of the movement condition are recorded to make it a trajectory.

除此之外,本發明能進一步將所記錄的指尖移動軌跡實現在手寫文字輸入上,以達成由影像追蹤指尖作為輸入介面的操作方式,而且硬體方面只需一台視訊鏡頭,成本將比觸控裝置少上許多,所以具有強大的市場潛力。In addition, the present invention can further implement the recorded fingertip movement trajectory on the handwritten text input to achieve the operation mode of the image tracking fingertip as the input interface, and only one video lens is required for the hardware, and the cost is It will be much less than a touch device, so it has a strong market potential.

然而前述之實施例或圖式並非限定本發明之產品結構或使用方式,任何所屬技術領域中具有通常知識者之適當變化或修飾,皆應視為不脫離本發明之專利範疇。However, the above-described embodiments or drawings are not intended to limit the structure or the use of the present invention, and any suitable variations or modifications of the invention will be apparent to those skilled in the art.

綜上所述,本發明實施例確能達到所預期之使用功效,又其所揭露之具體構造,不僅未曾見諸於同類產品中,亦未曾公開於申請前,誠已完全符合專利法之規定與要求,爰依法提出發明專利之申請,懇請惠予審查,並賜准專利,則實感德便。In summary, the embodiments of the present invention can achieve the expected use efficiency, and the specific structure disclosed therein has not been seen in similar products, nor has it been disclosed before the application, and has completely complied with the provisions of the Patent Law. And the request, the application for the invention of a patent in accordance with the law, please forgive the review, and grant the patent, it is really sensible.

no

第一圖:本發明之流程圖第二圖:本發明之膚色區塊標定結果示意圖第三圖:(a)本發明經膚色二值化之原影像;(b)本發明之紅膚色像素影像示意圖;(c)本發明之手部區塊篩選判別結果第四圖:顯示本發明之手部於各角度下指尖與外框位置示意圖第五圖:揭示本發明之指尖搜尋情況示意圖第六圖:(a)揭示本發明之指尖前點搜尋示意圖;(b)揭示本發明之指尖後點搜尋示意圖第七圖:揭示本發明之影像外框四邊上的尖點位置搜尋結果第八圖:本發明之手部尖點角度計算示意圖第九圖:(a)本發明之手寫指尖軌跡座標點示意圖;(b)本發明之手寫指尖軌跡座標點相連狀態圖第十圖:本發明之英文字s手寫指尖軌跡座標點示意圖First: Flow chart of the present invention. Second figure: Schematic diagram of calibration result of skin color block of the present invention. Third figure: (a) original image binarized by skin color of the present invention; (b) red color pixel image of the present invention Schematic diagram; (c) hand block screening discrimination result of the present invention. FIG. 4 is a schematic view showing the position of the fingertip and the outer frame of the hand of the present invention at various angles. FIG. 5 is a schematic diagram showing the fingertip search situation of the present invention. 6: (a) revealing a schematic diagram of the anterior point search of the fingertip of the present invention; (b) revealing a schematic diagram of the search point of the fingertip of the present invention. FIG. 7 is a view showing the search result of the cusp position on the four sides of the image frame of the present invention. Figure 8: Schematic diagram of the calculation of the cusp angle of the hand of the present invention: (a) Schematic diagram of the handwritten fingertip trajectory coordinate point of the present invention; (b) The handwritten fingertip trajectory coordinate point of the present invention is connected to the state diagram of the tenth figure: The English word s handwriting fingertip trajectory coordinate point diagram of the present invention

Claims (10)

一種追蹤與記錄指尖軌跡的影像處理方法,包括:(A)影像膚色二值化處理:用以將擷取的影像資料進行膚色區塊的判定與二值化處理;(B)手部區塊判定:用以擷取出正確的手部區塊,包括:(B1)膚色區塊標定;(B2)手部區塊篩選;(C)指尖座標追蹤:藉由偵測指尖位置,得到指尖座標;其步驟包括:(C1)計算手部區塊外框;(C2)外框邊界尖點座標搜尋;(C3)指尖條件篩選;(D)指尖軌跡座標記錄:將得到的每一指尖座標加以記錄,以得到連續的指尖軌跡。An image processing method for tracking and recording a fingertip trajectory, comprising: (A) image skin color binarization processing: for determining and binarizing the captured skin image data; (B) hand region Block decision: used to extract the correct hand block, including: (B1) skin color block calibration; (B2) hand block screening; (C) fingertip coordinate tracking: by detecting the fingertip position, Fingertip coordinates; the steps include: (C1) calculation of the hand block outer frame; (C2) outer frame boundary cusp coordinate search; (C3) fingertip condition screening; (D) fingertip track coordinate record: will be obtained Each fingertip coordinate is recorded to obtain a continuous fingertip trajectory. 如申請專利範圍第1項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B1)中,是運用連接元區域標定,把影像中屬於相同物件之相連像素找出來,藉此標定出影像中各個膚色獨立的物件,並統計出在該影像中所有的膚色獨立物件的數量、面積、物件範圍之資訊。The image processing method for tracking and recording the fingertip trajectory described in claim 1 is characterized in that, in the step (B1), the connected pixel region calibration is used to find out the connected pixels belonging to the same object in the image, and borrow This calibrates the individual skin-individual objects in the image, and counts the number, area, and object range of all skin-color independent objects in the image. 如申請專利範圍第2項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B1)中,在整張影像經連接元區域標定之後,進一步利用設定一面積門檻值過濾出前兩大膚色區塊。An image processing method for tracking and recording a fingertip trajectory as described in claim 2, wherein in step (B1), after the entire image is calibrated by the connected element region, the image is further filtered by setting an area threshold value. Two large skin blocks. 如申請專利範圍第3項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B1)中,該面積門檻值為1200像素。An image processing method for tracking and recording a fingertip trajectory as described in claim 3, wherein in the step (B1), the area threshold is 1200 pixels. 如申請專利範圍第4項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B2)中,是以色調(Hue)範圍為最小4度與最大值25度之間的膚色值為紅膚色,藉由影像中紅膚色比例來判定是否為手部。An image processing method for tracking and recording a fingertip trajectory as described in claim 4, wherein in step (B2), the color tone is between a minimum of 4 degrees and a maximum of 25 degrees. The value is red, and it is determined by the proportion of red skin in the image whether it is a hand. 如申請專利範圍第5項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(B2)中,當該影像中兩大膚色區塊紅膚色比例皆大於一定值,則比例大者為手部;若僅一膚色區塊大於紅膚色比例門檻,則此區塊為手部;若兩者皆不符,則畫面判定為無手部區塊。An image processing method for tracking and recording a fingertip trajectory as described in claim 5, wherein, in step (B2), when the proportion of the two major skin color patches in the image is greater than a certain value, the ratio is large. The hand is the hand; if only one skin color block is larger than the red skin color threshold, the block is the hand; if neither of them is inconsistent, the picture is determined to be no hand block. 如申請專利範圍第1項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C1)中,該手部區塊外框計算方式為將手部區塊像素從左至右,由上至下進行統計各點座標位置,找出X與Y座標之最大與最小值,再以此值標示出矩形外框即為手部區塊外框。An image processing method for tracking and recording a fingertip trajectory according to claim 1, wherein in step (C1), the hand block outer frame is calculated by moving the hand block pixel from left to right. From top to bottom, the coordinates of each point are counted, and the maximum and minimum values of the X and Y coordinates are found. Then, the rectangular frame is the outer frame of the hand block. 如申請專利範圍第7項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C2)中,係從該手部區塊外框依序搜尋,以該外框為一維像素,將外框四邊分四部分,由四角落為起點,以順時鐘方向依序搜尋,在遇到該外框上有手部邊緣像素時,將此點設為指尖中點Fm,再以該指尖中點Fm為起點X1,尋找相鄰手部邊緣座標,搜尋到相鄰座標之後將原點設為0,並將該座標設為下一次搜尋的中心X2,依此方式完成第一次搜尋後,再分別往前及往後進行30次遞廻,以搜尋指尖前點Ff及後點Fb,以此求得該外框四邊上的尖點位置。An image processing method for tracking and recording a fingertip trajectory according to claim 7, wherein in step (C2), the outer frame of the hand block is sequentially searched, and the outer frame is one-dimensional. Pixel, divide the four sides of the frame into four parts, starting from the four corners, and searching sequentially in the clockwise direction. When there is a hand edge pixel on the outer frame, set this point as the midpoint of the fingertip Fm, and then Using the fingertip midpoint Fm as the starting point X1, looking for the adjacent hand edge coordinates, after searching for the adjacent coordinates, the origin is set to 0, and the coordinate is set to the center X2 of the next search, and the method is completed in this way. After a search, 30 times of forward and backward are performed separately to search for the front point Ff and the back point Fb, so as to obtain the cusp position on the four sides of the outer frame. 如申請專利範圍第7項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C3)中,係由該外框四邊上的四個尖點中進行指尖位置篩選,其係先以尖點Fm 與前後點Ff 及Fb 計算出兩向量,再以這兩向量計算夾角即可得知尖點座標與前後頭30像素座標之夾角θ,其中:,接著比對四邊上夾角最小的尖點,該夾角最小的尖點即是指尖。An image processing method for tracking and recording a fingertip trajectory according to claim 7, wherein in step (C3), fingertip position screening is performed from four cusps on four sides of the outer frame. First calculate the two vectors with the cusp F m and the front and rear points F f and F b versus Then, the angle between the cusp coordinates and the 30-pixel coordinates of the front and rear heads can be obtained by calculating the angle between the two vectors, wherein: Then, the cusp with the smallest angle on the four sides is compared, and the sharp point with the smallest angle is the fingertip. 如申請專利範圍第9項所述之追蹤與記錄指尖軌跡的影像處理方法,其中,在步驟(C3)中,當該四邊上之各夾角超過45度時,該夾角判定為非指尖位置。An image processing method for tracking and recording a fingertip trajectory according to claim 9, wherein in the step (C3), when the angles on the four sides exceed 45 degrees, the angle is determined to be a non-finger position. .
TW102130377A 2013-08-23 2013-08-23 Method for tracking and recordingfingertip trajectory by image processing TWI507919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102130377A TWI507919B (en) 2013-08-23 2013-08-23 Method for tracking and recordingfingertip trajectory by image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102130377A TWI507919B (en) 2013-08-23 2013-08-23 Method for tracking and recordingfingertip trajectory by image processing

Publications (2)

Publication Number Publication Date
TW201508549A true TW201508549A (en) 2015-03-01
TWI507919B TWI507919B (en) 2015-11-11

Family

ID=53186239

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102130377A TWI507919B (en) 2013-08-23 2013-08-23 Method for tracking and recordingfingertip trajectory by image processing

Country Status (1)

Country Link
TW (1) TWI507919B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106295612A (en) * 2016-08-23 2017-01-04 广西科技大学 A kind of visual monitoring method of finger motion in hand rehabilitation training

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100783552B1 (en) * 2006-10-11 2007-12-07 삼성전자주식회사 Input control method and device for mobile phone
TWI397840B (en) * 2009-07-23 2013-06-01 Ind Tech Res Inst A trajectory-based control method and apparatus thereof
CN103797446A (en) * 2011-09-07 2014-05-14 日东电工株式会社 Method for detecting motion of input body and input device using same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106295612A (en) * 2016-08-23 2017-01-04 广西科技大学 A kind of visual monitoring method of finger motion in hand rehabilitation training

Also Published As

Publication number Publication date
TWI507919B (en) 2015-11-11

Similar Documents

Publication Publication Date Title
US10679146B2 (en) Touch classification
US8768006B2 (en) Hand gesture recognition
CN107038424B (en) Gesture recognition method
JP6417702B2 (en) Image processing apparatus, image processing method, and image processing program
JP6079832B2 (en) Human computer interaction system, hand-to-hand pointing point positioning method, and finger gesture determination method
CN110232311A (en) Dividing method, device and the computer equipment of hand images
CN107818290B (en) Heuristic finger detection method based on depth map
WO2012127618A1 (en) Moving-body detection device, moving-body detection method, moving-body detection program, moving-body tracking device, moving-body tracking method, and moving-body tracking program
KR101809543B1 (en) Method for recognizing contectless fingerprint and electronic apparatus for performing the same.
TWI571772B (en) Virtual mouse driving apparatus and virtual mouse simulation method
TW201407420A (en) Improved video tracking
CN111860494A (en) Optimization method and device for image target detection, electronic equipment and storage medium
CN105046199A (en) Finger tip point extraction method based on pixel classifier and ellipse fitting
CN105335711A (en) Fingertip detection method in complex environment
KR101281461B1 (en) Multi-touch input method and system using image analysis
JP2016099643A (en) Image processing device, image processing method, and image processing program
TWI507919B (en) Method for tracking and recordingfingertip trajectory by image processing
CN102855025A (en) Optical multi-touch contact detection method based on visual attention model
CN105930813B (en) A method of detection composes a piece of writing this under any natural scene
US20150199033A1 (en) Method for simulating a graphics tablet based on pen shadow cues
CN110737364B (en) Control method for touch writing acceleration under android system
Toni et al. A robust hand detection and tracking algorithm with application to natural user interface
TW201401187A (en) Virtual touch method using fingertip detection and system thereof
CN110232321B (en) Method and device for detecting fingertip clicking position, terminal and computer storage medium
CN116863541B (en) Dynamic gesture recognition method and device, related equipment and handwriting recognition method

Legal Events

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