Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv_traincascade crash without explanation

I try to use opencv_traincascade.exe but it crashes few seconds after I launch it. Here is how I proceeded:

I first create the positive sample using:

opencv_createsamples -info info.txt -vec vecFile.vec -bg neg.txt -num 100 -w 100 -h 100
  • info.txt has 116 lines which are all like:

    imagepath 1 0 0 100 100

    just the name of the file change in the different lines but all the images are of size 100*100 (I am working on high resolution picture on stem cells, therefore in a 25x25 image, I think I would not have enough information to detect what I am looking for)

  • neg.txt contains 715 lines with just file paths

which successfully created 100 samples

and then I launch the training with:

opencv_traincascade -data Cascade -vec vecFile.vec -bg neg.txt -numPos 10 -numNeg 20 -numStages 2 -featureType HAAR -w 100 -h 100

And then I got the following error message:

opencv_traincascade.exe has stopped working

And nothing else.

Any idea what is going on ?

Thanks

opencv_traincascade crash without explanation

same question on stackoverflow

I try to use opencv_traincascade.exe but it crashes few seconds after I launch it. Here is how I proceeded:

I first create the positive sample using:

opencv_createsamples -info info.txt -vec vecFile.vec -bg neg.txt -num 100 -w 100 -h 100
  • info.txt has 116 lines which are all like:

    imagepath 1 0 0 100 100

    just the name of the file change in the different lines but all the images are of size 100*100 (I am working on high resolution picture on stem cells, therefore in a 25x25 image, I think I would not have enough information to detect what I am looking for)

  • neg.txt contains 715 lines with just file paths

which successfully created 100 samples

and then I launch the training with:

opencv_traincascade -data Cascade -vec vecFile.vec -bg neg.txt -numPos 10 -numNeg 20 -numStages 2 -featureType HAAR -w 100 -h 100

And then I got the following error message:

opencv_traincascade.exe has stopped working

And nothing else.

Any idea what is going on ?

Thanks