-
Notifications
You must be signed in to change notification settings - Fork 470
opencv_createsamples not creating anything inside the 'samples' folder #9
Comments
Sorry, I don't see anything wrong with your command. |
You are using 7 postive images. |
I have same issue...nothing is created in samples folder...I am on Mac |
Hey I have the same issue. I'm on Windows. Only thing I changed is the w and h ratio, adjusted it to the right proportion with my images. I ran the command several times. Still no vec file shows up |
I was wondering if the number of samples in the step 5 should be the same as the number of positive images? I saw some people set the parameter different from the number of positive images. |
See this resource for more information: http://note.sonots.com/SciSoftware/haartraining.html#e5c54f60 The author of
The tutorial he's referencing is this one: http://note.sonots.com/SciSoftware/haartraining/document.html |
@mrnugget i have changed the value from 7000 to 7 (as i have also used 7 positive images) in createsamples.pl, but then i didnt get the output. Anyone can help? |
hi man is this fixed? |
Basically, if you can't run the command then it has bad parameters. I found many different answers on the internet because I had this problem twice and in the end it was always because I made some mistake when setting the parameters:
Also try change this value: -w 32 -h 32 (sweet spot is between 15 to 35)
I hope this helps. |
Still not working @developer239 no vec files created |
I solved it changing the name of files, remove the spaces. |
when I run the command: perl bin/createsamples.pl positives.txt negatives.txt samples 1500 it doesn't create anything inside the 'samples' directory. still i m facing same issue .. Please help me I m running this command on REDHAT |
Hey guys, I am wondering if I could help. I just met with this kind of problem while trying to use the createsamples function in opencv. |
I don't have any spaces in my files. I have been trying with Cygwin on Windows and Ubuntu in VM. This used to work before. I am not sure what the issue is. I am using single channel grayscale images too. I am also avoiding setting unnecessary parameters like max angle for x, y, z and other parameters which are not needed. I am using 7404 positive samples and I tried that also (I clearly remember using some different number other than the number of positive samples and still getting it to work a year ago or so). I have been stuck on this since hours and I don't know why this has been closed. I tried both 2.4.13 and 2.4.9 OpenCV versions. |
Hi there!
when I run the command:
perl bin/createsamples.pl positives.txt negatives.txt samples 1500
"opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1
-maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40"
it doesn't create anything inside the 'samples' directory. I attach a screen capture showing it:
Am I doing something wrong?
Thanks a lot!! :)
The text was updated successfully, but these errors were encountered: