title: OpenCV traincascade for LBP training
body: <p>I am trying to create head detector using LBP features in OpenCV, using traincascade utility. The head detector, I hope, will result in something similar to OpenCV's profileface created by Vladim Pivarevsky. I want to recreate the model because current model only handle frontal and left side face.</p>
  
  <p>I follow <a href="http://note.sonots.com/SciSoftware/haartraining.html">Naotoshi Seo tutorial</a> and use  dataset from <a href="http://www.irshadali.info/index.php/downloads">Irshad Ali website</a>. Unfortunately, resulting model performs slowly with lots of false detection.</p>
  
  <p>The traincascade is run as follow:</p>
  
  <pre><code>opencv_traincascade -data "data" -vec "samples.vec" -bg "out_negatives.dat" -numPos 26000 -numNeg 4100 -numStages 16 -featureType LBP -w 20 -h 20 -bt GAB -minHitRate 0.995 -maxFalseAlarmRate 0.3 -weightTrimRate 0.95 -maxDepth 1 -maxWeakCount 100 -maxCatCount 256 -featSize 1
  </code></pre>
  
  <p>I tried using other dataset, now frontal face from <a href="http://fei.edu.br/~cet/facedatabase.html">http://fei.edu.br/~cet/facedatabase.html</a> but the result is still same: slow detection and lot of false positives. </p>
  
  <p>Anybody have knowledge or experience in creating cascade haar/lbp model? Please give any suggestion so I can improve the accuracy of the model. I tried using OpenCV built-in model, and the result is good (lbpfrontalface.xml). Thank you so much!</p>