cascade classifier cannot open file
I have followed the generally-accepted methods in the tutorial, and created a set of positive and negative images to train the classifier against. The trouble is, that each time I run the command line script to create a .vec file, I get an error stating that creatsamples cannot read the text file containing the positive images data. I am at a complete loss as to what I'm doing wrong. Any ideas? I have tried with/without specifying directory address, I have tried fully-qualified addresses, and I have tried with/without specifying bg.txt address. I'm stuck. Nothing seems to work
if you run that from inside the training folder, it should be positive/positive.txt, etc. without the leading \training .
also, this will not create directories !
And maybe you should try using double backslashes, because in Windows as backslash is an escape character. So try changing to
positive\\positives.txt
,negative\\negatives.txt
andvector\\horses.vec
and indeed without the training like @berak said.Thanks guys, that solved that particular issue, but I get parseError instead now. All part of the fun!
parse errorDone was caused by a spurious entry in the positives.txt file. I removed it and the matching image file and the process worked a treat!
@MrBlueskies as to the parse error Done, do not worry about that one. It is more like a warning to say that less elements were generated than requested with the
num
parameter and that to know the cause, you need to investigate the positives.txt file.