createsample.exe crashes every time
Hi I am trying to create samples using opencv_createsamples.exe but it crashes every time. I've checked different builds, opencv2 and opencv3. I don't know how to overcome this. My command looks like this
opencv_createsamples.exe -img C:/Users/dpach/Pictures/Interfejsy/img/1.jpg -maxxangle 15 -maxyangle 15 -maxzangle 1 -w 80 -h 40 -vec test.vec -bgtresh 0 -bgcolor 0 -show
The windows to show samples is opening but after that I receive info that program is not responding. Any ideas ?
I've tried to start it from a pseudo unix bash and I receive then Segmentation fault
It crush after that Create training samples from single image applying distortions...
i can't help you with the crash, but the idea of using a single image for this is doomed anyway (you won't get any quality out of it).
get a proper amount of positives (like in hundreds), and use an info file (image path Rect1 Rect2 ..) instead.
@break I've tried to prepare such file but every time I receive parse error. My file is a simple textfile where each file is in one line. Is that corret ?
should look like:
please see here
@break how to create such file ? I mean that as far as I understand the numbers are: numer of objects on the image, coordinates of the object. How to get such coordinates ? If i have 100 pictures for example I need to manualy find those coordinates and type them in the file ?
there is an annotation tool in opencv/apps, that does exactly that.
start it on the images dir, mark your objects with mouse, and it produces a text file.
Take a look at the following question which already describes quite detailed how to use the annotation tool! Good luck!