title: haar training OpenCV assertion failed
body: <p>I am trying to train a haar-like classifier for pedestrians in OpenCV using 3340 positive images and 1224 negative images. (in a .txt file I keep the negative image names i.e negatives(1).bmp, and in a txt file I keep the positives i.e. picture(1).bmp 1 0 0 64 128.
  Actually positive examples are already cropped images of pedestrians so I only need specify one positive sample per image).</p>
  
  <p>At some point during the training process it stops and says : </p>
  
  <blockquote>
    <p>"Opencv Error: Assertion failed (elements_read==1)in unknown function, file c:\path\cvhaartraining.cpp, line  1858" </p>
  </blockquote>
  
  <p>Any ideas as to what is causing this ?</p>