Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system...

23
Real-time Eye Gaze Tracking Alireza Rahimpour Fall 2010 1

Transcript of Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system...

Page 1: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Real-timeEyeGazeTracking

Alireza RahimpourFall2010

1

Page 2: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Eyetrackingsystem:Nowadayseyegazetrackinghaswiderangeofapplicationsinhumancomputerinteraction.Oneoftheseapplicationsisusingtrajectoryofeyegazeinsteadoffootorhandfordisabledpeopletoexecutesomecommands.

OtherApplications:ü Automaticmonitoringofdriversforaccidentavoidanceü Commercialusesü Psychologicaluses

2

Page 3: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

DifferenttypesofEyetrackers

1-UsingEOGsignal:• Systemsbasedonelectrooculographyuseelectrodesplacedonthe

facetodetectthemovementsoftheeyesIntrusive

2-Usingactiveinfraredilluminationv Difficultcalibrationv Needhighresolutionandexpensivecamerasv Interference:ExternalsourcesofIR:Sun

3

Page 4: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Other types:

4

Page 5: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

GOAL

Designinganeyetrackingsystemashumancomputerinterfacewhichavoids:

ü specializedhardwareü infraredlightsourcesü expensivecameras

andü Increasestheaccuracyandspeedofthesystemtobeusableinreal-

timeapplications.

5

Page 6: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Eyetrackingsystem

Recently,variousmethodshavebeenproposed,someofthesemethodscansuccessfullytracktheeyegaze.However,theyalwaysrequirespecificcircumstances,trainingorarenotcapableofreal-timeperformance.

Wewanttotracktheeyegazeinreal-timebyusingasimpleandlowcostwebcammountedonordinarylaptops.

Itshouldbeableto:controlthemotionsofmousecursorandclickonanonscreenkeyboardinrealtime.

6

Page 7: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Implementation

Severalmethodscanbeusedforfacialandeyefeatureextraction.

Oneofthemis:Templatematching

TemplateofFeature• Theregionofimagewithmaximumsimilaritywiththetemplate,

referstopositionofourfeatureinimage.

7

Page 8: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Templatematching• SimilaritybetweenimageandTemplate??• Minimizingtheerror:

• Parametrictemplates

ü Correlationfunction8

|),(),(|),(1

0

1

0∑∑−

=

=

++−≡B

j

B

it jviuIjiTvuSAD

Page 9: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Correlationfunctionasameasureofsimilarity

9

∁ 𝑢, 𝑣 =

Fortemplatematching,thetemplatetslidesoverf(image)andCiscalculatedforeachcoordinate.Then,thepointwhichexhibitsmaximumC isreferredtoasthematchpoint.

Page 10: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Templatespecifications

• Size

• Thesize ofthetemplateisnottheonlyissue,butmoreimportantly,trackingperformancedependsonthe“complexity”ofthetemplate.

• Complexity:haveenough brightnessvariations,e.g.,textureorlines,toberecognizedas distinctfeatures

10

Page 11: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Templates

• Templateswithminsizewhichcontainenoughdetailsarechosen.

• Facetemplate:• 106x74pix

• Eyetemplate:• 15x25Pix

• Pupiltemplate:

• Eyecorners:

11

Page 12: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Reducingthesearchwindowsize

ü Reducethesearchareaineachstepbycropping.

ü Usingstructureoffacetodeterminethesearchregionforeachfeature.

12

240X320

106X75

45X36

15X25

Page 13: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Accuracy• Usingweightedcorrelationcoefficientcanincreasetheaccuracy.

• Consideringseveralframesofimages,themaximumindexincorrelationcoefficientmatrixcanbedetermined.

• Forthenextframes,weconsidermoreweightforthewinnerindex(andafewneighbors).

13

Page 14: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Trackingsystem

14

Thesystemconsistsoftwomainmodules:

1)thefacedetectorandtracker

2)theeyeanalysismodule

Theoutputfromtheeyemodulecanbe theinputtoasimplecomputercontrolinterfacebysimulatingakeypress.

Also:Differentmodesaredefinedcorrespondingtoeyeclosuretime.

Page 15: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

EYEGAZEESTIMATION

15

• Horizontaldirection1-usingscleraregionchanges2-usingcenterofpupil

• VerticalDirection1-usingeyecorners2-usinguppereyelids

Page 16: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Eyegazeinhorizontaldirectionusingscleraregion

16

Dividingthemonitorinhorizontaldirectionto16pointsanddefinealphaasfollow:

( )( ) ( )RALA

LA+

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

02468101214161820222426283032

alpha

position

Page 17: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

ScleraRegionextraction

17

Croppedeyeimage:

Contrastenhancement:

Converttobinaryimageusingathreshold:

Morphological operations (opening – closing):

Makingcontoursandcalculatethenumberofpixelsinthemandfinding thecoordinates.

Page 18: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Eyegazedetection

18

• Horizontaldirection2-Usingpupilcentercoordinatewithrespecttoeyecorners

• Verticaldirection:1-eyelids:

2-eyecorners

Page 19: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Experimentandresults

19

ü Framesize240x320pix-30framepersec

ü Distanceofusertomonitor(17”):60cm

ü Dataset:realtimevideotakenfromregularwebcamonlaptops.ü Nospecificilluminationcondition

ü Testedontwoonscreenkeyboard:ü 3x7and5x5keys.

Page 20: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Result(facetrackermodule)

20

Robustnessto:differentusersandbackgroundchangesandheadtilt

Fastmoving ofuserinfrontofthecamera

Page 21: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Results:

Eyegazedetection(withmethod2)Using3x7onscreenkeyboard:

21

DEMO

Page 22: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Detectionrate

Faceillumination

Keyboard VerticalPre.

Horizontalprecision

Method

76.6% sensitive 5x5 4deg. 6.8deg. Method1

90% Notsensitive

3x7 2.8deg 11.3deg. Method2

22

Results:

Method1:usingscleraregion forhorizontaltrackingandeyecornersforvertical.

Method2:usingpupil centerforhorizontalandeyecornersforverticaltracking.

Eyetrackingsystem:

ü Realtimeü Notexpensiveü Moreaccuratecomparedtosimilarsystemsü Noneedtotrainingandoverwhelming calibration

Page 23: Eye tracking presentation - UTKweb.eecs.utk.edu/~arahimpo/eyetracking.pdf · Eye tracking system Recently, various methods have been proposed, some of these methods can successfully

Any Questions?

23