Ask Your Question

anushka123shet's profile - activity

2015-12-10 14:43:16 -0600 received badge  Enthusiast
2015-12-08 01:42:08 -0600 received badge  Scholar (source)
2015-12-07 16:34:51 -0600 received badge  Supporter (source)
2015-12-07 15:51:34 -0600 commented question OpenCV 3.0.0 - traincascade.exe : Traindata set for temp stage cannot be filled

I figured out the mistake and got it running. My Negative.txt file was unicode while OpenCV doesn't support unicode. http://code.opencv.org/issues/3235

I wish I had researched this well before itself, would have saved both your and my time. Don't know how I missed this. But thanks again for the effort :)

2015-12-04 11:59:34 -0600 commented question OpenCV 3.0.0 - traincascade.exe : Traindata set for temp stage cannot be filled

Also, sorry about the CAPS. I guess I was just too desperate for some help on this one. I have been stuck with this for almost 3 whole days now. Anyway, will remove the caps right away :)

Please do let me know if any other suggestions comes across your mind.

2015-12-04 11:58:17 -0600 commented question OpenCV 3.0.0 - traincascade.exe : Traindata set for temp stage cannot be filled

Thanks Steven!

I initially started with 10 stages. That didn't work. I just landed up trying different values for -numStages to see if it would make any difference since I couldn't figure out what exactly was causing the error. I tried agan with 5 stages, I get the same error.

2015-12-04 11:55:05 -0600 received badge  Editor (source)
2015-12-04 00:38:08 -0600 asked a question OpenCV 3.0.0 - traincascade.exe : Traindata set for temp stage cannot be filled

Hi,

So, I have 20 positive samples and 500 negative samples. I created the .vec file using createsample utility.Now, when i try to train the classifier using the traincascade.exe utility, I run into the following error:

image description

I have looked into many solutions given to people who have faced similar issues, but none of them worked.

Things I tried: 1. Increasing the negative sample size 2. Checking the path of the negative(or background images) stored in the Negative.txt file 3. Varying different parameters.

Here is some information regarding the path: My working directory has the following files: 1. Traincascade.exe 2. Positive image folder 3. NegativeImageFolder 4. vec file 5. Negative.txt (file that has path to images in the negative image folder)

My Negative.txt file has the absolute file path for the images in the negative image folder. I also tried changing the file path to the following format:

NegativeImageFolder\Image1.pgm

but didn't work! I tried both front and backslash too!

I have run out of ways to change the file path or make any modification to make this work!

Any help on this would be highly appreciated! I am unable to proceed any further with my project.

Thanks in advance