Eye Feature Detection -...

23
Eye Feature Detection Rui Liu PhD student M.E. Final Project for Computer Vision

Transcript of Eye Feature Detection -...

Page 1: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

Eye Feature Detection

Rui Liu

PhD student M.E.

Final Project for Computer Vision

Page 2: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

CONTENT

‣ 1 Introduction

‣ 1.1 Motivation

‣ 1.2 Goals

‣ 1.3 Experiment Devices and Environment

‣ 2 Methods & Algorithms

‣ 3 Experiment Results

‣ 4 Result Analysis

‣ 4.1 Assessment

‣ 4.2 Small Problems and Its Analysis

‣ 4.3 Moving Forward

Page 3: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

1 Introduction

1.1 Motivation for Eye feature detection

(1) What could eye feature indicate?

reflecting psychological state

He sees the truth. It’s written all over our faces.

Page 4: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

Indicating human intention

Maybe want to leave Maybe want to drink

Page 5: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

(2) Motivation: detecting eye features for intuitive human-robot interaction

Page 6: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

1.2 Goals

Pupil detection

pupil localization, pupil diameter/ mean area and its standard deviation in a certain time.

Blink detection

blinking status detection, blinking times and blinking rate in a certain time.

Page 7: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

1.3 Experiment Devices and Environment

Head Mount

HD Camera

Pic Captured

(1) Devices

Page 8: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

Common lab (400 lux)

(2) Environment

Page 9: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

2 Methods & Algorithms

1.1 pupil detection

(1)Method:

a. Circle(d≈44)

b. Dark(Area≈1500)

c. Concentric

d. Region

Pupil

Page 10: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

(2) Algorithm:

a. Circle detection: Two-stage Circular Hough Transform (‘imfindcircle’ )

b. Dark region detection: ‘regionprops’

d= 42Concentric

Page 11: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

‣ (3) Parameter Calculation

pupil center (x, y)

Pupil Diameter d circle detection

Mean Area A = 𝜋𝑑2 𝑡

4

𝑡2𝑡1

/(𝑛𝑡2 − 𝑛𝑡1)

Standard Deviation of Pupil Diameter 𝜎 = (𝑑 𝑛𝑡 −𝑑 )2𝑡2𝑡1

𝑛𝑡2−𝑛𝑡1

Page 12: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

1.2 blink detection

(1) Method:

Blinking pupil disappearing time >𝒕𝟎

OpenBlinking

Page 13: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

‣ (2) Parameter Calculation

Blinking Rate Rate=N/(𝑡2-𝑡1)

Blinking Times N

Page 14: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

3 Experiment Results

3.1 results in different situations

a. Beginning b. Blinking

c. Open d. Near Blinking

Page 15: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

3.2 Result Video

Page 16: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

3.3 Statistics Results

a. Eye status b. Blinking Rate (n/sec)

0 5 10 15 20-0.5

0

0.5

1

1.5

Time(s)

Eye S

tatu

s

Blinking Status

1 -- Blinking

0 -- Open

0 5 10 15 20-0.5

0

0.5

1

1.5

Time(s)

blin

k r

ate

(Tim

es/s

ec)

blink rate

Page 17: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

d. Mean Pupil Area

0 5 10 15 20

1300

1400

1500

1600

Time(s)

Mean P

upil

Are

a(p

ixel2

)

Mean Pupil Area

0 5 10 15 200

20

40

60

Time(s)

Pupil

Dia

mete

r(pix

el)

Pupil Diameter

c. Pupil Diameter

0 5 10 15 200

1

2

3

Time(s)

Sta

ndard

Devia

tion o

f P

upil

Siz

e

Standard Deviation of Pupil Size

e. Standard Deviation of Pupil Size

Page 18: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

4. Result Analysis

4.1 Assessments

Successful Rate for Pupil detection 99%

Successful Rate for Blink detection 100%

Successful Rate for Pupil Contour detection 90%

Page 19: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

4.2 small problems and its analysis

(a) A few pupil contours could not be detected accurately when eye is

near blinking/open

Because

Open Num= 1

Rate= 0.469

—A(d)=1439.44

(d)= 2.314

Actual contour shape is ellipse which

is detected as 2 circles

Page 20: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

(b) Pupil in some frames could not be detected near blinking/open.

Light intensity is too low near blinking/open.

Dark region detection : Failed

Because

Page 21: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

4.3 Moving Forward

In the future, this project could be optimized in next aspects:

(1) The circle detection could be revised as circle/ellipse detection

(2) The sensitivities and thresholds of these algorithms could be

adjusted adaptively

Page 22: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

Q&A

Page 23: Eye Feature Detection - cs-courses.mines.educs-courses.mines.edu/csci507/projects/2014/FinalProject---Eye Featu… · CONTENT ‣1 Introduction ‣ 1.1 Motivation ‣ 1.2 Goals ‣

Thank You !

Rui Liu