Answers.Body: <p>I have once tried Viola Jones Algorithm to do that, it does not capture the subtle differences in the direction of facial segments which are important to detect emotion. Features like HOG (Available in openCV and many famous image processing libraries) can extract better information from the face to classify emotion.</p>
  
  <p>Also there are many other approaches including ANNs and pure rule based approaches But almost everywhere a good alignment approach for faces become the most important aspect of the exercise. So I will suggest exploring some facial alignment approaches and then Features like HOG instead of Viola Jones/ HARR. </p>
  
  <p>For the mathematics part, it is upto you to dive deep into mathematics or just exploring different approaches by codes. A good understanding of Linear Algebra and a little Geometry will help a lot.</p>
  
  <p>Also if you are new to Machine Learning, understanding the basic algorithms might be relevant to you.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-08T18:36:37.230Z
Answers.Text: I'm trying to feed the values that i got from the HOG descriptor to the keras Deep learning model, but the problem arises when feeding the feature to that model, as feature can take any random size from images to images. Can i perform SVM on top. Please refer to any articles, blog post.
Answers.UserDisplayName: Surya Bhusal
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-13T13:06:41.653Z
Answers.Text: No you can not model with any algorithm with changing feature size. Each face will differ in many aspects. I would suggest that you first get some Canonical and normalised face before you extract any features from it. A pre decided size of the crop and location of the eye works in many cases.
Answers.UserDisplayName: vc_dim
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-10T05:54:56.023Z
Answers.LastActivityDate: 2018-01-10T05:54:56.023Z
Answers.UserDisplayName: vc_dim
Answers.Body: <p>An introduction to the <a href="https://www.youtube.com/watch?v=_QZLbR67fUU" rel="nofollow noreferrer">Haar features</a> is provided in the youTube video.  The video indicates the VJ face detector leverages <strong>a selected combination</strong> of Haar features (convolutional kernels) to detect <strong>facial features</strong> (weak classifiers), such as the nose bridge.  The binary presence of the weak classifiers are summed to determine if the window contains a face.</p>
  
  <p>The ability for a VJ algorithm to detect emotion would rely on the ability to assign a set of Haar features (kernels) to recognize features associated with a particular emotion label (surprise, anger, content, fear). </p>
  
  <p>It is conceivable that the initial stage of an  emotion classifier could use a the VJ algorithm to identify a face for additional stages to classify emotion.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-20T17:00:25.977Z
Answers.LastActivityDate: 2018-10-20T17:15:33.407Z
Answers.LastEditDate: 2018-10-20T17:15:33.407Z
Answers.UserDisplayName: gatorback
Body: <p>Can <a href="https://en.wikipedia.org/wiki/Viola%E2%80%93Jones_object_detection_framework" rel="nofollow noreferrer">Viola Jones algorithm</a> be used to detect the facial emotion. Actually it was used in creating harr-cascade file for object and facial detection, but what confused me is whether it can be used to train for emotion detection. </p>
  
  <p>If not, what algorithms can I use? and what are the mathematical bases? (i.e. what mathematics should I be studying?) </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-09T22:22:58.483Z
Comments.Text: Welcome to AI!  Very interesting question that I'd also be interested in knowing the answer to.  *(My guess would be that there is some overlap, but I know next to nothing about this subject!)*
Comments.UserDisplayName: DukeZhou
Tags: <algorithm><image-recognition><emotional-intelligence><math><facial-recognition>
Title: Viola Jones Algorithm
UserDisplayName: Surya Bhusal
ThreadText: # Viola Jones Algorithm
  
  (Asked by: username_0 on 2018-01-09)
  
  Can [Viola Jones algorithm](https://en.wikipedia.org/wiki/Viola%E2%80%93Jones_object_detection_framework) be used to detect the facial emotion. Actually it was used in creating harr-cascade file for object and facial detection, but what confused me is whether it can be used to train for emotion detection.
  
  If not, what algorithms can I use? and what are the mathematical bases? (i.e. what mathematics should I be studying?)
  
  **Tags:** algorithm, image-recognition, emotional-intelligence, math, facial-recognition
  > **Comments:**
  > **username_1**: Welcome to AI!  Very interesting question that I'd also be interested in knowing the answer to.  *(My guess would be that there is some overlap, but I know next to nothing about this subject!)*  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2018-10-20. Score: 2 | Accepted answer
  
  An introduction to the [Haar features](https://www.youtube.com/watch?v=_QZLbR67fUU) is provided in the youTube video. The video indicates the VJ face detector leverages **a selected combination** of Haar features (convolutional kernels) to detect **facial features** (weak classifiers), such as the nose bridge. The binary presence of the weak classifiers are summed to determine if the window contains a face.
  
  The ability for a VJ algorithm to detect emotion would rely on the ability to assign a set of Haar features (kernels) to recognize features associated with a particular emotion label (surprise, anger, content, fear).
  
  It is conceivable that the initial stage of an emotion classifier could use a the VJ algorithm to identify a face for additional stages to classify emotion.
  
  
  ---
  
  ### Answer by username_2 on 2018-01-10. Score: 1
  
  I have once tried Viola Jones Algorithm to do that, it does not capture the subtle differences in the direction of facial segments which are important to detect emotion. Features like HOG (Available in openCV and many famous image processing libraries) can extract better information from the face to classify emotion.
  
  Also there are many other approaches including ANNs and pure rule based approaches But almost everywhere a good alignment approach for faces become the most important aspect of the exercise. So I will suggest exploring some facial alignment approaches and then Features like HOG instead of Viola Jones/ HARR.
  
  For the mathematics part, it is upto you to dive deep into mathematics or just exploring different approaches by codes. A good understanding of Linear Algebra and a little Geometry will help a lot.
  
  Also if you are new to Machine Learning, understanding the basic algorithms might be relevant to you.
  
  > **Comments:**
  > **username_0**: I'm trying to feed the values that i got from the HOG descriptor to the keras Deep learning model, but the problem arises when feeding the feature to that model, as feature can take any random size from images to images. Can i perform SVM on top. Please refer to any articles, blog post.  
  > **username_2**: No you can not model with any algorithm with changing feature size. Each face will differ in many aspects. I would suggest that you first get some Canonical and normalised face before you extract any features from it. A pre decided size of the crop and location of the eye works in many cases.  
  
  ---
  
  