Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8056913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:51:36+00:00 2026-06-05T08:51:36+00:00

I am developing an application for iOS that needs to detect when the user

  • 0

I am developing an application for iOS that needs to detect when the user yawns.

What I did is include Open CV and find faces using a haar cascade, and then find mouth inside the faces (too using a haarcascade).

The trouble that I have is that I believed that it would be so easy to detect a yawn like doing something like (face.y – mouth.y) < something = yawn.

But the problem that I have is that the rects for face and mouth are “inestables”, I mean every time that the loop runs X and Y values for the rects of face and mouth are (obviusly) not the same.

Is there any “open mouth” haar cascade that I can use, or how can I know when the user opens the mouth?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:51:38+00:00Added an answer on June 5, 2026 at 8:51 am

    As a general, Support Vector Machine (SVM) is used for facial expression recognition like anger,smile, surprise etc where still active development takes place. Googling give you a lot of papers on this topic, (even one of my class mate did this as his final year project). For that, at first you need to train the SVM and to do that, you need sample images of yawning and normal faces.

    Yawning is almost similar to surprise, where mouth open on both cases. I recommend you to check out page 3 of below paper : Real Time Facial Expression Recognition in Video
    using Support Vector Machines
    (If you can’t access the link, google by paper name)

    The paper (even my classmate) used displacement vector of facial features. For this, you find some feature points on the face. For example, in the paper, they have used eye pupil,extreme points of lids, nose tip, extreme points of mouth region (lips) etc. Then they continuously track the location of the features and find euclidean distance between them. They are used to train the SVM.

    Check out below two papers :

    Feature Points Extraction from Faces

    Fully Automatic Facial Feature Point Detection Using Gabor Feature Based Boosted Classifiers

    Look image below what i mean by feature points on face:

    enter image description here

    In your case, i think you are implementing it in iPhone in real time. So may be you can avoid feature points at eyes (although not an good idea, since when you yawn, eyes become small in size). But compared to it, feature points at lips shows more variations and predominant. So, implementing on lip alone may save time. (Well, it all depends on you).

    Lip Segmentation : It is already discussed in SOF and check out this question : OpenCV Lip Segmentation

    And finally, i am sure you can find a lot of details on googling, because it is an active development area, and a lot of papers are out there.

    Another Option :

    Another option in this region, which i have heard several times, is Active Appearance Model. But I don’t know anything about it. Google it yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an iOS application that needs to determine the probability that a user
We are developing an iOS Application that connects to a server over https using
I am currently developing an iOS application that needs a backend to pull data
I'm developing an iOS application that needs to deploy to iOS 3.1.3. I need
I'm developing an iOS 4 application. I have a main view that contains another
I am currently developing an application which is using the Dropbox iOS SDK version
I'm developing an iOS 4 application with latest SDK and XCode 4.2. I'm using
I'm developing a large scale application for iOS 5 using ARC in xcode. The
I am new in ios development.Now,i am developing an Ipad application using ios 4.2
I'm developing an iOS application that will be used just by a company employees

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.