title: How to train latent SVM model for object detection ? It crashes using Matlab 2012b, Windows 64bit OS
body: <p>How can I train my own detector under Windows 7 in C++ or Matlab2012b? I do not have Linux or I do not have Mac OSX. </p>
  
  <p>I actually searched for it a lot before writing here. What I got is:</p>
  
  <p>I would like to train my own latent SVM model and use it in C++. I checked out the OpenCV sample, cpp/latentsvm_multidetect.cpp. It works with the existing models.  </p>
  
  <p>Authors' website : <a href="http://www.cs.berkeley.edu/~rbg/latent/index.html" rel="nofollow noreferrer">http://www.cs.berkeley.edu/~rbg/latent/index.html</a> . It is mentioned that the software is tested using matlab2011a under linux and mac osx. However, I run matlab2012b under Windows7 64 bit. The code crashes very often, and I tried to fix the bugs, but I cannot cope anymore. </p>
  
  <p>Is there any other source code which I can use under Windows 7 64bit?  </p>
  
  <p>OpenCV : <a href="http://docs.opencv.org/modules/objdetect/doc/latent_svm.html" rel="nofollow noreferrer">http://docs.opencv.org/modules/objdetect/doc/latent_svm.html</a> . There is no code implementation for training. Only detector can be used to detect the objects with existing models. </p>
  
  <p>On the other hand, somebody else asked the same question. <a href="https://stackoverflow.com/questions/11512637/opencv-latent-svm">opencv latent svm</a> . However, The question was closed without being answered. Sad! </p>
  
  <p>Also, <a href="https://stackoverflow.com/questions/11832447/opencv-and-latent-svm-detector">OpenCV and Latent SVM Detector</a> is similar to my question. I am not satisfied with the answer, I read the same in the README file in the source code in Matlab. It does not help me to overcome the bugs in the source code, if I run under Windows 7. For this question, I wanted to add a comment to ask further, I cannot add because of my reputation (I am new here).</p>
  
  <p>I think, Latent SVM is fascinating and something new to detect the objects. Also, I think this should be a general issue to train our own model easily. It would be nice if anyone can guide. </p>
  
  <p>Anyway, I do not understand why the training part is not implemented in OpenCV with the detector part!  </p>