Code covered by the BSD License  

Highlights from
Objects/Faces Detection Toolbox

image thumbnail
from Objects/Faces Detection Toolbox by Sebastien PARIS
Objects/Faces detection using Local Binary Patterns and Haar features

test2.m

  close all
  load('temp_model1');

  model.postprocessing        = 0;

  model.scalingbox            = [1.2 , 1.2 , 1];
  
  proba                       = 0.99;
  I                           = (rgb2gray(imread('class57.jpg')));
 
  tic,[D , stat , fx]         = detector_haar(I , model);,toc

  px                          = 1./(1+exp(-2.*fx));

  [indy , indx]               = find(px > proba);



  imagesc(px)
  hold on
  plot(indx , indy , 'mo' , 'markersize' , 8)
  hold off
  title('Pr(y=1|x)')

Contact us at files@mathworks.com