vision-based finger detection and its applications

42

Click here to load reader

Upload: yifang

Post on 20-May-2015

9.664 views

Category:

Technology


1 download

DESCRIPTION

Master Thesis Presentation by Chuang Yi-Fan, Image and Vision Lab, Graduate Institute of Networking and Multimedia, National Taiwan University

TRANSCRIPT

Page 1: Vision-based Finger Detection and Its Applications

Vision-Based Finger Detectionand Its Applications

基於電腦視覺之手指偵測及其應用

Yi-Fan Chuang

Advisor: Prof. Yi-Ping Hung Prof. Ming-Sui Lee

Page 2: Vision-based Finger Detection and Its Applications

Outline

IntroductionRelated WorkFingertip Detection and TrackingApplications

i-m-Top Magic Crystal Ball (MaC Ball)

Conclusion & Future Work

2

Page 3: Vision-based Finger Detection and Its Applications

Outline

IntroductionRelated WorkFingertip Detection and TrackingApplications

i-m-Top Magic Crystal Ball (MaC Ball)

Conclusion & Future Work

3

Page 4: Vision-based Finger Detection and Its Applications

Introduction

Interactive systemBare-handed operations are more intuitive to

manipulate digital objects directlyInteractions

• Users: hover/touch gestures• Objects: rotation, scaling, selection, special effects….

Use computer vision techniques• Fingertip detection• Fingertip tracking

4

Page 5: Vision-based Finger Detection and Its Applications

Outline

IntroductionRelated WorkFingertip Detection and TrackingApplications

i-m-Top Magic Crystal Ball (MaC Ball)

Conclusion & Future Work

5

Page 6: Vision-based Finger Detection and Its Applications

Related Work

Enhance DeskFingertip finding

• Template matching

Palm finding• Morphological erosion

H. KOIKE and Y. KOBAYASHI, “Integrating paper and digital information on enhanceddesk: a method for realtime finger tracking on an augmented desk system,“ ACM Transation Computer-Human Interaction, vol. 8, no. 4, pp. 307-322, 2001.

Page 7: Vision-based Finger Detection and Its Applications

Related Work

FTIR (Frustrated Total Internal Reflection)

J. Y. Han, “Low-cost multi-touch sensing through frustrated total internal reflection," in Proceedings of the 18th annual ACM symposium on User interface software and technology (UIST '05). New York, NY, USA: ACM Press, 2005, pp. 115-118.

Page 8: Vision-based Finger Detection and Its Applications

Related Work

Visual TouchpadFingertip detection

• Curvature of contour• Finger Orientation

Touch detection• Two warp images

S. Malik and J. Laszlo, “Visual touchpad: a two-handed gestural input device," in Proceedings of the 6th international conference on Multimodal interfaces (ICMI '04). New York, NY, USA: ACM Press, 2004, pp. 289-296.

Page 9: Vision-based Finger Detection and Its Applications

Related Work

PlayAnyWhereTouch and Hover

• Use appearance of shadows

A. D. Wilson, “Playanywhere: a compact interactive tabletop projection-vision system," in Proceedings of the 18th annual ACM symposium on User interface software and technology (UIST '05). New York, NY, USA: ACM Press, 2005, pp. 83-92.

Page 10: Vision-based Finger Detection and Its Applications

Related Work

Comparison

10

Enhance Desk

(CHI 01’)

FTIR

(UIST 05’)

Visual Touchpad (ICMI 04’)

PlayAnyWhere

(UIST 05’)

MethodTemplate matching

Connected component

analysis

Curvature of contour

Shadow

Detection Touch TouchTouch/Hover(2 cameras)

Touch/Hover(1 camera)

DisadvantageOne user

Only touchOnly touch One user

One finger for one palm

Our Work: Touch/Hover (1 camera) Multi-user with multi-finger

Page 11: Vision-based Finger Detection and Its Applications

Outline

IntroductionRelated WorkFingertip Detection and TrackingApplications

i-m-Top Magic Crystal Ball (MaC Ball)

Conclusion & Future Work

11

Page 12: Vision-based Finger Detection and Its Applications

Overview

System setupAn IR camera with IR illuminators to observe

hands

J. Rekimoto and N. Matsushita, “Perceptual surfaces: Towards a human and object sensitive interactive display," Workshop on Perceptural User Interfaces (PUI'97), 1997.

Direct observation• Clear shapes

Indirect observation• Unclear shapes

Page 13: Vision-based Finger Detection and Its Applications

System setupDirect observation

• Clear shapes

Indirect observation• Unclear shapes

OverviewClear shapes (MaC Ball)

GestureCaptured

image

Page 14: Vision-based Finger Detection and Its Applications

System setupDirect observation

• Clear shapes

Indirect observation• Unclear shapes

Overview

14

Unclear shapes (i-m-Top)

Gesture Captured image

Page 15: Vision-based Finger Detection and Its Applications

Overview

Fingertip detection

Fingertip tracking

Detection results Kalman filtering

Backgroundsubtraction

Morphological opening

Difference of previous two

Principalcomponent

analysis

Fingertipdetection

15

Page 16: Vision-based Finger Detection and Its Applications

Fingertip Detection

Background subtraction

ObservationContact area leaves strong reflection

(Enhanced image)

Backgroundsubtraction

Morphological opening

Difference of previous two PCA

Fingertipdetection

16

Page 17: Vision-based Finger Detection and Its Applications

Fingertip Detection

Extract finger partUse a morphological opening operation

• The size of structuring element is larger than that of a normal finger and smaller than a palm.

Original

Morphological opening

Finger

(Enhanced image)

Backgroundsubtraction

Morphological opening

Difference of previous two PCA

Fingertipdetection

17

Page 18: Vision-based Finger Detection and Its Applications

Fingertip Detection

Difference and binarization

Principal component analysisFinger direction

Possible fingertips’ positions

(Enhanced image)Backgroundsubtraction

Morphological opening

Difference of previous two PCA

Fingertipdetection

Backgroundsubtraction

Morphological opening

Difference of previous two PCA

Fingertipdetection

18

Page 19: Vision-based Finger Detection and Its Applications

Fingertip Detection

Template matching (pattern matching)TemplateRemove false matchings

• Distance check• Diagonal check

Backgroundsubtraction

Morphological opening

Difference of previous two PCA

Fingertipdetection

Finger patch

Page 20: Vision-based Finger Detection and Its Applications

Detection Results on i-m-TopFingertipdetection

Difference of previous two

& PCA

Morphologicalopening

Background subtraction

(Enhanced image) Separate finger touching and palm hovering

Page 21: Vision-based Finger Detection and Its Applications

Detection Results on MaC Ball

21

Page 22: Vision-based Finger Detection and Its Applications

Fingertip Tracking

Kalman filterSmooth the path

• Predict the new state and its uncertainty• Correct the tracker with its new measurement• Assume white noise and uniform velocity

Original

After Kalman filter

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

t

zvy

zy

zvx

zx

vy

y

vx

x

vy

y

vx

x

tEquationMeasuremen

wvy

wy

wvx

wx

vy

y

vx

x

vy

y

vx

x

ionStateEquat

0000

0100

0000

0001

:

1000

1100

0010

0011

:

1

1

1

1

1

1

1

1

22

Page 23: Vision-based Finger Detection and Its Applications

Performance Evaluation

Real-time system is possible

23

Page 24: Vision-based Finger Detection and Its Applications

Outline

IntroductionRelated WorkFingertips Detection and TrackingApplications

i-m-Top Magic Crystal Ball (MaC Ball)

Conclusion & Future Work

24

Page 25: Vision-based Finger Detection and Its Applications

Hardware Configuration

i-m-TopInteractive Multi-resolution Tabletop

Cooperate with Yi-Wei Chia25

Page 26: Vision-based Finger Detection and Its Applications

Hardware Configuration

i-m-TopInteractive Multi-resolution Tabletop

Cooperate with Yi-Wei Chia26

Page 27: Vision-based Finger Detection and Its Applications

Software Implementation

Fingertip detection and trackingPalm detection and trackingAssociation between fingertips and palmsPen detectionPriority of pens and palmsEvents definitions

27

Page 28: Vision-based Finger Detection and Its Applications

Palm Detection and Tracking

Palm detectionThe average

position is picked as palm position

Palm trackingKalman filtering

Palmdetection

Morphological opening

(Palm part)

Background subtraction

(Enhanced Image)

Page 29: Vision-based Finger Detection and Its Applications

Association between Fingertips and Palms

Allocate fingertips to palmsUse the angle and the distance between

fingers and palms

,*

,),(cos1,minarg

m

diri

dirposi

pos

j

pp

pfAnglepfm

(Enhanced Image)29

Page 30: Vision-based Finger Detection and Its Applications

Pen Detection and Priority

Pen DetectionUse a higher threshold

Priority of pens and palmsHigher priority for the pen tip

• If there is a palm around the pen tip, this palm and the fingertips associated to the palm will be ignored.

30

Page 31: Vision-based Finger Detection and Its Applications

Events Definitions

HoverPalm position

TouchPalm positionFinger position and its correspondent palmPen position

31

Page 32: Vision-based Finger Detection and Its Applications

Application I: Browsing and Editing

OperationsDrag photo/documentZoom in and zoom outStrokeMove the foveal area

32

Page 33: Vision-based Finger Detection and Its Applications

Application II:Video Retrieval System

OperationsQueryBrowseFeedback

33Video

Top button

Video plane Video wall

Scroll bar

Page 34: Vision-based Finger Detection and Its Applications

Outline

IntroductionRelated WorkFingertip Detection and TrackingApplications

i-m-Top Magic Crystal Ball (MaC Ball)

Conclusion & Future Work

34

Page 35: Vision-based Finger Detection and Its Applications

Magic Crystal Ball (MaC Ball)

An interactive 3D displaySlide fingers (like a wizard) on the ball surface

to control the content

35

Page 36: Vision-based Finger Detection and Its Applications

Hardware Configuration

IR Camera IR Illuminator

Pressure Sensors

User

Transparent Glass Ball

Reflection Mirror

Fresnel Lens

LCD

Display Module Detection Module

Page 37: Vision-based Finger Detection and Its Applications

Software Implementation

Fingertip detection and trackingDetect fingertips’ positionsPointing gesture

Motion detectionOptical flow algorithmWaving gesture

Contact DetectionPressure Sensor (Flexi Force)

• Detect whether users touch MaC Ball

Page 38: Vision-based Finger Detection and Its Applications

Software Implementation

Contact detection – Pressure SensorsObservation

p1 p2p3p1 p2 p1 p2

38

Page 39: Vision-based Finger Detection and Its Applications

Events Definitions

Gesture switch

Pointing Gesture

FingertipsDetection

MotionDetection

MotionDetection

FingertipsDetection

Waving Gesture

Pressuresensors

Touch / Hover 39

Page 40: Vision-based Finger Detection and Its Applications

Application:Virtual Exhibition

OperationsRotateSelectMagnifierChange relics

40Video

Page 41: Vision-based Finger Detection and Its Applications

Outline

IntroductionRelated WorkFingertip Detection and TrackingApplications

i-m-Top Magic Crystal Ball (MaC Ball)

Conclusion & Future Work

41

Page 42: Vision-based Finger Detection and Its Applications

Conclusion & Future Work

Multi-finger detection techniquesSimple and real-timeCost-effective and flexible

Applications i-m-Top: interactive interfaceMaC Ball: interactive 3D display

Future workUse FTIR to enhance the accuracy of fingertip

detection More gestures for interactive systems

42