title: human foot detection computer vision
body: <p>I have tried matlab CascadeObjectDetector by feeding negative and positive images,but it does not do the job.I want to detect if human standing in the pic is bare feet or not. Object detector should detect bare feet.In negative images I have only given shoes images.If I can do this in opencv somehow,please share that technique too.</p>
  
  <p><a href="https://drive.google.com/open?id=0BxPo4LdSrdTNZnRtVW96cTlFaEU" rel="nofollow noreferrer">non feet images(negative)</a></p>
  
  <p><a href="https://drive.google.com/open?id=0BxPo4LdSrdTNUWlDLTFuckpZaUE" rel="nofollow noreferrer">feet images(positive)</a></p>
  
  <p>feet images folder contain labelingSession.mat which contain info for ROI(region of interest)</p>
  
  <pre><code>positiveInstances = labelingSession.ImageSet.ROIBoundingBoxes(1,:);
  
  %Add the image directory to the MATLAB path.
  
  imDir = fullfile(matlabroot,'toolbox','vision','visiondata',...
  'feet');
  
  addpath(imDir);
  %Specify the foler for negative images.
  negativeFolder = fullfile(matlabroot,'toolbox','vision','visiondata',...
  'nonfeet');
  
  %Create an imageDatastore object containing negative images.
  negativeImages = imageDatastore(negativeFolder);
  %Train a cascade object detector called 'stopSignDetector.xml' using HOG          features. NOTE: The command can take several minutes to run.
  trainCascadeObjectDetector('shoeDetector.xml',positiveInstances, ...
  negativeFolder,'FalseAlarmRate',0.1,'NumCascadeStages',5);
  </code></pre>