Ask Your Question
0

how to find mouth and detect yawning in realtime video using opencv c++?

asked 2016-04-20 00:41:19 -0600

zohre gravatar image

updated 2016-04-20 01:38:50 -0600

i need to detect face and eyes and mouth to detect a drowsy person. i found face and eyes with xml files of opencv. but it seems finding the mouth using haarcascade is not possible.because it doesnt work good.thats why i Decided to use an algorithm to do it.but using canny and sobel etc didn t help me to find mouth.Specially in images with low Quality.creating a new xml file also is hard. then now i dont know how can i find mouth and detect yawning??i use opencv c++ .may i ask you to help me for it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-04-20 02:11:43 -0600

You probably have to use facial landmark detection (try google it to have some more info). One of the libraries known to work well with OpenCV is Dlib. You could find an example of the face detection with a webcam here. There is plenty of other libraries, most of them easily compatible with OpenCV.

If you are interested to understand how to train these detectors, or create your own, the book: Mastering OpenCV with Practical Computer Vision Projects on the chapter 7 offers a good introduction to it. You could also have a look at the chapter 6 that could be of interest.

edit flag offensive delete link more

Comments

1

I would also suggest OpenCV 3 Blueprints, which has a chapter on emotion classification using facial features, which could be exactly what you want for your application.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-04-20 05:01:32 -0600 )edit

thnx.but i cant study this book.because my country is in Financial sanctions for political reasons and i cant buy this book with credit card.

zohre gravatar imagezohre ( 2016-04-22 23:55:40 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-04-20 00:41:19 -0600

Seen: 2,742 times

Last updated: Apr 20 '16