handgesturerecognitionusingopencv

16
Dept. Of CSE,RNSIT 2015-2016 1

Upload: shivam-mishra

Post on 22-Jan-2018

115 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HandGestureRecognitionUsingOpenCV

Dept. Of CSE,RNSIT 2015-2016 1

Page 2: HandGestureRecognitionUsingOpenCV

CONTENTS

• Introduction

• Algorithm’s Flow chart

• Colour Profile

• Binary Representations of Contours

• Analysis of Contours

• Finding Length and Angle

• Conclusion

• References

Dept. Of CSE,RNSIT 2015-2016 2

Hand Gesture Recognition using OpenCV

Page 3: HandGestureRecognitionUsingOpenCV

INTRODUCTION

WHAT IS A GESTURE?

A movement of a limb or the body as an expressionof thought or feeling.(Oxford English Dictionary)

Dept. Of CSE,RNSIT 2015-2016 3

Hand Gesture Recognition using OpenCV

Page 4: HandGestureRecognitionUsingOpenCV

Wireless & Flexible No specialized hardwareSingle Camera Real-time

Dept. Of CSE,RNSIT 2015-2016 4

Hand Gesture Recognition using OpenCV

Page 5: HandGestureRecognitionUsingOpenCV

Get frame

from video

information

Information about

fingertips, number

of fingers etc

Basic flow of hand recognition

Filter out irrelevant polygonDescribe contours with

convex polygons

and find convexity defects

Sample Color

Make binary Get n biggest representation contours

of hand

Dismiss contours

not representing

hands

Flowchart

Dept. Of CSE,RNSIT 2015-2016 5

Hand Gesture Recognition using OpenCV

Page 6: HandGestureRecognitionUsingOpenCV

COLOUR PROFILE

Dept. Of CSE,RNSIT 2015-2016 6

Median 1

Median 2Median 3

Median 4

Median 5

Median 6

Median 7

Figure: Making a color profile of hand, based on median color value sampled from different areas of the hand

Colour Profile

Hand Gesture Recognition using OpenCV

Page 7: HandGestureRecognitionUsingOpenCV

MAKE BINARY REPRESENTATIONS AND EXTRACT RELEVANT CONTOURS

Dept. Of CSE,RNSIT 2015-2016 7

Extract hand based on color recognition. Compute one binary image based on each sampled median and sum the binary images together. Finally filter the result with the nonlinear median blur filter.

Hand Gesture Recognition using OpenCV

Page 8: HandGestureRecognitionUsingOpenCV

ANALYZING CONTOUR GEOMETRIC APAROACH

Dept. Of CSE,RNSIT 2015-2016 8

Hand Gesture Recognition using OpenCV

Page 9: HandGestureRecognitionUsingOpenCV

ANALYZING CONTOUR GEOMETRIC APAROACH

Dept. Of CSE,RNSIT 2015-2016 9

Hand Gesture Recognition using OpenCV

Page 10: HandGestureRecognitionUsingOpenCV

FINDING LENGTH AND ANGLE

• 𝑑𝑖𝑠𝑡𝑎𝑛𝑐𝑒 = (𝑥1 − 𝑥2)2+(𝑦1 − 𝑦2)2

• 𝜃 = cos−1(𝑎𝑥∗𝑏𝑥)+(𝑎𝑦∗𝑏𝑦)

𝑎 ∗|𝑏|

Dept. Of CSE,RNSIT 2015-2016 10

Hand Gesture Recognition using OpenCV

Page 11: HandGestureRecognitionUsingOpenCV

RESULT OF HAND ANALYSIS

The result of data can be further used in:

• Fingertip position

• Hand area

• Drawing Patterns from the tip of finger

Dept. Of CSE,RNSIT 2015-2016 11

Hand Gesture Recognition using OpenCV

Page 12: HandGestureRecognitionUsingOpenCV

THINGS THAT NEEDS IMPROVEMENTS

• Still need to tune the threshold for extracting skin colour.

• For finger tracking one would need to identify each finger individually.

• Can be modified to work with a moving background.

Dept. Of CSE,RNSIT 2015-2016 12

Hand Gesture Recognition using OpenCV

Page 13: HandGestureRecognitionUsingOpenCV

LIMITATIONS

• Inability to differentiate between objects of similar color as that of sample

• Overlapping objects.

• Noise and lighting sensitive

• Manual caliberation

Dept. Of CSE,RNSIT 2015-2016 13

Hand Gesture Recognition using OpenCV

Page 14: HandGestureRecognitionUsingOpenCV

CONCLUSION

• We try to implement a Hand Gesture Recognition tool which can be helpful to read and decipher the sign language.

• This can also be extended to perform certain activities:• such as tracking the finger tips and using it as a pointing object which can

perform the functions of mouse.

• Using the finger tips to draw certain figures on the computer screen

Dept. Of CSE,RNSIT 2015-2016 14

Hand Gesture Recognition using OpenCV

Page 15: HandGestureRecognitionUsingOpenCV

REFERENCES

[1] Higher Mathematics by ML Khanna

[2] Learning OpenCV by Gary Bradski and Adrian Kaehler.

[3] K. Murphy, Hidden Markov Model (HMM) Toolbox

http://www.cs.ubc.ca/ murphyk/Software/HMM/hmm.html.

[4] Computer Vision Application Programming Cook Book by

Robert Laganiere.

[5] OpenCV documentation .

Dept. Of CSE,RNSIT 2015-2016 15

Hand Gesture Recognition using OpenCV

Page 16: HandGestureRecognitionUsingOpenCV

QUESTIONS?

Dept. Of CSE,RNSIT 2015-2016 16

Hand Gesture Recognition using OpenCV