CN102693025B - Touch finger identification method for multi-touch interaction system - Google Patents
Touch finger identification method for multi-touch interaction system Download PDFInfo
- Publication number
- CN102693025B CN102693025B CN201110068062.2A CN201110068062A CN102693025B CN 102693025 B CN102693025 B CN 102693025B CN 201110068062 A CN201110068062 A CN 201110068062A CN 102693025 B CN102693025 B CN 102693025B
- Authority
- CN
- China
- Prior art keywords
- finger
- class
- touch
- center
- frame
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000003993 interaction Effects 0.000 title claims abstract description 14
- 239000011159 matrix material Substances 0.000 claims description 7
- 238000010606 normalization Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000003750 conditioning effect Effects 0.000 description 1
Landscapes
- Image Analysis (AREA)
Abstract
The invention discloses a touch finger identification method for a multi-touch interaction system, and belongs to the field of multi-touch technology. The method includes: 1) obtaining fingers F0, F1,...Fn detected in a frame, 2) fitting each finger Fj in the frame into an ellipse Ej; 3) according to the ellipse each finger corresponds to and set finger distance T, clustering fingers in the frame, and obtaining k types of fingers; 4) calculating the center of each class H{F0, F1,...Fp} and a convex hull region R of the class; and 5) considering each class of the current frame and coverage area of each class as touch finger information (H{F0, F1,..., Fp}, R). The touch finger identification method for the multi-touch interaction system has high accuracy and good robustness in touch finer information identification, makes touch finger identification in the multi-touch interaction system of a touch screen more accurate, and makes the touch screen more practical.
Description
Technical field
The invention belongs to field of multi-touch technology, relate to a kind of touch hand recognition methods of multi-touch interaction system particularly.
Background technology
Multi-point touch system progressively moves towards practical recent years, and in multi-point touch system, user operates with multiple finger usually, such as by multiple finger sliding, rotation, translation.
Traditional touch desktop can only finger on identification desktop, can not obtain touching the information of hand and the movable information of hand, but the motion of hand can provide translation, the rotation information of hand more accurately usually.If the movable information touching hand directly can be obtained, will system be user-friendly to, enhance man-machine interaction concordance.
In the middle of multi-point touch system, when desktop is larger, the user of operation increases, when finger number increases, obtain the hand information that each finger is corresponding how effectively, accurately, comprise each concrete corresponding left hand or the right hand that touch finger, and how touch right-hand man moves, left and right touches the overlay area of hand, and these information all can not directly obtain.Therefore in the urgent need to a kind of quick, stable touch hand recognizer.
Summary of the invention
In order to solve the problem identifying in multi-touch interaction system in prior art and touch hand information, the object of the invention is in multi-touch interaction system, identify touch hand information.
For achieving the above object, the invention provides a kind of touch hand recognition methods in multi-touch interaction system, the method in original state to contact cluster, to same class, other touches finger and identifies right-hand man, in the process of contact movement, Continuous Tracking is carried out to contact, and dynamic conditioning is carried out to cluster result.Finger spacing maximum in single hand is set to T.
Technical scheme of the present invention is:
A touch hand recognition methods for multi-touch interaction system, the steps include:
1) finger F detected in a certain frame is obtained
0, F
1... F
n; Wherein, each finger F
j={ f
0, f
1... f
m, f
iit is pixel in finger; Wherein, m, n are positive integer;
2) by each finger F in this frame
jfit to an oval E
j;
3) according to each ellipse of finger correspondence and the finger distance T of setting, cluster is carried out to the finger in this frame, obtain k class finger; Wherein, k is natural number;
4) each class H{F is calculated
0, F
1..., F
pcenter and such convex closure region R; Wherein, p is positive integer and p≤n;
5) each class of present frame and overlay area thereof are touched hand information (H{F as one
0, F
1..., F
p, R).
Further, by finger F
jfit to an oval E
jmethod be:
1) according to finger F
jinterior pixel f
icoordinate (x
i, y
i), calculate elliptical center point coordinate (x
c, y
c);
2) to F
jeach coordinate of interior pixel is normalized, and x after calculating normalization
i, y
icovariance matrix, obtain oval major and minor axis a, b, and the angle theta of transverse and x-axis; Obtain finger F
jthe oval E of matching
j(x
c, y
c, a, b, θ).
Further, described step 3) clustering method be:
A) each finger in this frame is initially a class H
i;
B) H is calculated
iany one finger fitted ellipse E in class
mwith H
jany one finger fitted ellipse E in class
ncentral point distance L, if L maximal value be less than setting finger distance T, then by H
iwith H
jmerge into a class;
C) step b is repeated), until there is no annexable class, obtain k class finger.
Further, according to class H{F
0, F
1..., F
pcenter and in such center of each finger obtain such convex closure region R.
Further, the computing method of described R are: by H{F
0, F
1..., F
pcenter and the center (x of each finger fitted ellipse in such
c, y
c) the point set determination convex closure region R that forms.
Further, each class H{F of described calculating
0, F
1..., F
pthe method at center be:
1) for class H{F
0, F
1..., F
pin the fitted ellipse E (x of each finger
c, y
c, a, b, θ), according to the sequence counterclockwise of θ value;
2) calculate the major axis intersection point of all fitted ellipse in such, calculate the mean value of all intersection points, be such H{F
0, F
1..., F
pcenter (x
h, y
h).
Main contents of the present invention are:
Step S1: be located at the finger F that a certain frame detects
0, F
1... F
n, wherein each finger comprises F
j={ f
0, f
1... f
m, f
iit is pixel in finger.To each finger F
jmatching oval E
j(x
c, y
c, a, b, θ), x
c, y
cbe elliptical center point coordinate, a, b are oval major and minor axis, and θ is oval major axis and the angle of x-axis.
Our fitting algorithm is as follows, and the method complexity is low, easily realizes:
If finger F
jan interior pixel f
icoordinate is (x
i, y
i), calculate (x
c, y
c):
By f
inormalization:
x
i=x
i-x
c
y
i=y
i-y
c
Calculate x
i, y
icovariance matrix:
λ is obtained to this Matrix Calculating eigenwert
0, λ
1, (λ
0> λ
1), λ
0character pair vector (v
0, v
1) then
θ=atan(v
1/v
0)
Step S2: according to maximum contact spacing from T, to F
0, F
1... F
nits cluster is H by cluster
0, H
1..., H
k, k class altogether.
Clustering algorithm:
1. initial each finger is a class H
i.
2. for each class H
i, finding its nearest class is H
j, for arbitrary F
m∈ H
i, F
n∈ H
jif, | F
m-F
n| < T (| F
m-F
n| represent finger distance, refer to the distance of the elliptical center point of touch area matching), then by H
i, H
jand be a class.
3. repeat the 2nd step, until do not have class to merge.
Step S3: for the fitted ellipse E (x of each finger in each class H
c, y
c, a, b, θ) in θ sort in counterclockwise mode.Calculate the intersection point of all transverses in such, be set to (x
1, y
1), (x
2, y
2) ..., (x
n, y
n), get the center of such H; The center of such H is (x
h, y
h): wherein
Calculate the convex closure region R of the point set of each finger centre composition in the center of H and class H, representative touches the region of hand.
Step S4: using the touch hand of each class as present frame, the H{F obtained
0, F
1, F
n, R, as touch hand information, it comprises F
0, F
1..., F
nindividual finger, its center is x
h, y
h, the region covered is R.
After initial clustering, each contact uniquely indicates, and in Continuous Tracking process, the minimum distance according to front and back two frame point carries out Continuous Tracking to sign point, when there being new hand to point out that existing or original finger disappears, and adopts above-mentioned algorithm to recalculate.
The invention has the beneficial effects as follows:
The invention provides the method identifying in multi-touch interaction system and touch hand information.Only need the area information obtaining touching finger, Fast Fitting is oval, just can obtain the direction of calculating finger, to finger cluster, identifies and touches hand information.By fitted ellipse, finger cluster, recognize touch hand information accuracy high, robustness is good.The invention enables in the multi-touch interaction system of touch screen and identify that touch hand is more accurate, make touch-screen more practical.
Accompanying drawing explanation
Fig. 1 is system layout's schematic diagram;
1, desktop, 2, infrared lamp, 3, video camera, 4, projector, 5, main frame;
Fig. 2 is finger fitted ellipse, Clustering Effect figure;
Fig. 3 is process flow diagram of the present invention.
Embodiment
Each detailed problem involved in technical solution of the present invention is described in detail below in conjunction with accompanying drawing.Be to be noted that described embodiment is only intended to be convenient to the understanding of the present invention, and any restriction effect is not play to it.
In order to realize method of the present invention, adopt a CPU to be 1.6G during enforcement, internal memory is 512M, the computing machine of hard disk 320G or the computing machine of other types, and the length of multiple point touching desktop is 1.5 meters, and width is 1.15 meters.System layout's schematic diagram as shown in Figure 1.Fig. 2 gives us the diagram of embodiment, and as can be seen from Figure 2, the carrying out that we the are correct cluster of three hands, Rectangular Bounding Volume represents the result recognized.Adopt Matlab to work out relative program on computers, the process flow diagram of the inventive method refers to Fig. 3, and the concrete implementation step of the inventive method is as follows:
Step S1: being located at the finger that a certain frame detects is F
0, F
1... F
15, 15 touch finger areas altogether, and wherein each finger comprises F
j={ f
0, f
1... f
i... f
m, f
iit is pixel in finger.To each finger F
jmatching oval E
j(x
c, y
c, a, b, θ)
Fitting algorithm is as follows:
If f
icoordinate is (x
i, y
i), calculate (x
c, y
c):
By f
inormalization:
x
i=x
i-x
c
y
i=y
i-y
c
Calculate x
i, y
icovariance matrix:
λ is obtained to this Matrix Calculating eigenwert
0, λ
1, (λ
0> λ
1), λ
0character pair vector (v
0, v
1), then
θ=atan(v
1/v
0)
Step S2: distance T=30 pixel distance in selected maximum finger, is also in other words more than 30 pixel distances, then not thinks and belong to a class; To F
0, F
1... F
15its cluster is H by cluster
0, H
1, H
2, 3 classes altogether.
Clustering algorithm:
1. initial each finger is a class H
i.
2. for each class H
i, finding its nearest class is H
j, for arbitrary F
m∈ H
i, F
n∈ H
jif, | F
m-F
n| < T (| F
m-F
n| represent finger distance, refer to the distance of the elliptical center point of touch area matching), then by H
i, H
jand be a class.
3. repeat the 2nd step, until do not have class to merge.
Step S3: for each class H (i.e. H
0, H
1, H
2) the fitted ellipse E (x of each finger
c, y
c, a, b, θ) in θ with
Counterclockwise mode sorts.Calculate the intersection point of the major axis of each ellipse, be the center x of H
h, y
h, calculate the center of H
With the convex closure region R of the point set of finger centre composition each in class H, representative touches the region of hand.
Step S4: using the touch hand of each class as present frame, the H{F obtained
0, F
1, F
n, R, as touch hand information, it comprises F
0, F
1, F
nindividual finger, its center is x
h, y
h, the region covered is R.
To the touch finger in Fig. 2, fitted ellipse, each as shown in Figure 2 finger areas comprises an ellipse, and to 15 finger areas clusters, it is three classes that result is gathered, and adopts rectangle frame to draw in fig. 2.
The above; be only the embodiment in the present invention; but protection scope of the present invention is not limited thereto; any people being familiar with this technology is in the technical scope disclosed by the present invention; the conversion or replacement expected can be understood; all should be encompassed in and of the present inventionly comprise within scope, therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.
Claims (4)
1. a touch hand recognition methods for multi-touch interaction system, the steps include:
1) finger F detected in a certain frame is obtained
0, F
1... F
n; Wherein, each finger F
j={ f
0, f
1... f
m, f
iit is pixel in finger; Wherein, m, n are positive integer;
2) by each finger F in this frame
jfit to an oval E
j; Wherein, approximating method is: to each finger F
jmatching oval E
j(x
c, y
c, a, b, θ), x
c, y
cbe elliptical center point coordinate, a, b are oval major and minor axis, and θ is oval major axis and the angle of x-axis; If finger F
jan interior pixel f
icoordinate is (x
i, y
i), calculate (x
c, y
c):
by f
inormalization: x
i=x
i-x
c, y
i=y
i-y
c; Calculate x
i, y
icovariance matrix:
λ is obtained to this Matrix Calculating eigenwert
0, λ
1, (λ
0> λ
1), λ
0character pair vector (v
0, v
1), then
θ=atan (v
1/ v
0);
3) according to each ellipse of finger correspondence and the finger distance T of setting, cluster is carried out to the finger in this frame, obtain k class finger; Wherein, k is natural number; Described clustering method is: a) each finger in this frame is initially a class H
i; B) H is calculated
iany one finger fitted ellipse E in class
mwith H
jany one finger fitted ellipse E in class
ncentral point distance L, if L maximal value be less than setting finger distance T, then by H
iwith H
jmerge into a class; C) step b is repeated), until there is no annexable class, obtain k class finger;
4) each class H{F is calculated
0, F
1..., F
pcenter and such convex closure region R; Wherein, p is positive integer and p≤n;
5) each class of present frame and overlay area thereof are touched hand information (H{F as one
0, F
1..., F
p, R).
2. the method for claim 1, is characterized in that according to class H{F
0, F
1..., F
pcenter and in such center of each finger obtain such convex closure region R.
3. method as claimed in claim 2, is characterized in that the computing method of described R are: by H{F
0, F
1..., F
pcenter and the center (x of each finger fitted ellipse in such
c, y
c) the point set determination convex closure region R that forms.
4. method as claimed in claim 3, is characterized in that each class H{F of described calculating
0, F
1..., F
pthe method at center be:
1) for class H{F
0, F
1..., F
pin the fitted ellipse E (x of each finger
c, y
c, a, b, θ), according to the sequence counterclockwise of θ value;
2) calculate the major axis intersection point of all fitted ellipse in such, calculate the mean value of all intersection points, be such H{F
0, F
1..., F
pcenter (x
h, y
h).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110068062.2A CN102693025B (en) | 2011-03-21 | 2011-03-21 | Touch finger identification method for multi-touch interaction system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110068062.2A CN102693025B (en) | 2011-03-21 | 2011-03-21 | Touch finger identification method for multi-touch interaction system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102693025A CN102693025A (en) | 2012-09-26 |
CN102693025B true CN102693025B (en) | 2015-07-08 |
Family
ID=46858540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110068062.2A Expired - Fee Related CN102693025B (en) | 2011-03-21 | 2011-03-21 | Touch finger identification method for multi-touch interaction system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102693025B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186241B (en) * | 2013-04-03 | 2016-07-06 | 中国科学院软件研究所 | A kind of interactive desktop contact right-hand man's recognition methods |
CN106095201B (en) * | 2016-05-30 | 2018-10-09 | 安徽慧视金瞳科技有限公司 | A kind of double-click detection method of projection interactive system |
CN106527917B (en) * | 2016-09-23 | 2020-09-29 | 北京仁光科技有限公司 | Multi-finger touch operation identification method for screen interaction system |
CN106569630B (en) * | 2016-09-30 | 2019-01-22 | 南京仁光电子科技有限公司 | A method of detection touch-control system screen number of contacts |
CN106778141B (en) * | 2017-01-13 | 2019-09-20 | 北京元心科技有限公司 | Unlocking method and device based on gesture recognition and mobile terminal |
CN107633551B (en) * | 2017-08-18 | 2018-07-06 | 中山叶浪智能科技有限责任公司 | The methods of exhibiting and device of a kind of dummy keyboard |
CN109656393A (en) * | 2017-10-10 | 2019-04-19 | 北京仁光科技有限公司 | Refer to tracking, device, equipment and the computer readable storage medium of contact more |
CN108829248B (en) * | 2018-06-01 | 2020-11-20 | 中国科学院软件研究所 | Moving target selection method and system based on user performance model correction |
CN114185477A (en) * | 2021-12-14 | 2022-03-15 | 深圳市闪联信息技术有限公司 | Method and device for recognizing gesture distinguishing operation under writing function of electronic whiteboard |
CN115908573B (en) * | 2023-02-20 | 2023-06-02 | 季华实验室 | Rubber glove opening positioning method, system, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140624A (en) * | 2007-10-18 | 2008-03-12 | 清华大学 | Image matching method |
CN101198925A (en) * | 2004-07-30 | 2008-06-11 | 苹果公司 | Gestures for touch sensitive input devices |
CN101410781A (en) * | 2006-01-30 | 2009-04-15 | 苹果公司 | Gesturing with a multipoint sensing device |
CN101984396A (en) * | 2010-10-19 | 2011-03-09 | 中兴通讯股份有限公司 | Method for automatically identifying rotation gesture and mobile terminal thereof |
-
2011
- 2011-03-21 CN CN201110068062.2A patent/CN102693025B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101198925A (en) * | 2004-07-30 | 2008-06-11 | 苹果公司 | Gestures for touch sensitive input devices |
CN101410781A (en) * | 2006-01-30 | 2009-04-15 | 苹果公司 | Gesturing with a multipoint sensing device |
CN101140624A (en) * | 2007-10-18 | 2008-03-12 | 清华大学 | Image matching method |
CN101984396A (en) * | 2010-10-19 | 2011-03-09 | 中兴通讯股份有限公司 | Method for automatically identifying rotation gesture and mobile terminal thereof |
Non-Patent Citations (1)
Title |
---|
"一种面向实时交互的变形手势跟踪方法";王西颖 等;《软件学报》;20071031;第18卷(第10期);第2423-2433页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102693025A (en) | 2012-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102693025B (en) | Touch finger identification method for multi-touch interaction system | |
CN103093196B (en) | Character interactive input and recognition method based on gestures | |
US10372328B2 (en) | Intelligent touchscreen keyboard with finger differentiation | |
US10679146B2 (en) | Touch classification | |
CN102622225B (en) | Multipoint touch application program development method supporting user defined gestures | |
JP5784141B2 (en) | Handwriting input method by superimposed writing | |
CN101408824A (en) | Method for recognizing mouse gesticulation | |
CN102981742A (en) | Gesture interaction system based on computer visions | |
CN103226387A (en) | Video fingertip positioning method based on Kinect | |
CN102768595B (en) | A kind of method and device identifying touch control operation instruction on touch-screen | |
CN103455794A (en) | Dynamic gesture recognition method based on frame fusion technology | |
CN101901350A (en) | Characteristic vector-based static gesture recognition method | |
CN103092437A (en) | Portable touch interactive system based on image processing technology | |
US20140104201A1 (en) | Electronic apparatus and handwritten document processing method | |
CN101354747B (en) | Method and apparatus for recognizing hand-written symbol | |
Xu et al. | Recognition of in-air handwritten Chinese character based on leap motion controller | |
CN103150114B (en) | A kind of convenient input method for touch screen | |
Hang et al. | Dynamic gesture recognition method based on improved dtw algorithm | |
CN103186241B (en) | A kind of interactive desktop contact right-hand man's recognition methods | |
CN104915009A (en) | Gesture prediction method and system | |
CN103809912A (en) | Tablet personal computer based on multi-touch screen | |
CN102722309B (en) | Method for identifying touch-control information of touch gestures in multi-point touch interaction system | |
CN113296616B (en) | Pen point selection method and device and intelligent terminal | |
CN103885597A (en) | Space input recognition method and system | |
Richhariya et al. | Novel Input of Continuous Recognition of Hand Gesture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150708 |