Ask Your Question

Revision history [back]

Some remarks

  1. I use OpenCV 3.0.0 why o why ... OpenCV has provided over 25 fixes for the cascade classifiers since then. Don't use old versions if you don't explicitly need too. Because it will result in you being on your own ...
  2. Skip the relative paths, go for absolute. You are saying that is not the issue but better be safe then sorry. Update your question correspondingly.
  3. Your code is failing at your negative images, so again, something must be wrong there... since your positives are read exactly fine. It seems that after the name, you have a tab indent instead of spaces. OpenCV expects it to be spaces in between values ... so please avoid anything else. Also make sure that there are no weird hidden commands at the end of each line (Windows/Linux conversion line endings and such)