-w -h in create_samples
in opencv while creating samples the +ve image will create samples using -ve background images. so, my question is we are metioning -w and -h, how it will impact on generated vector file?
i tried to see the created samples using cmd: opencv_createsamples -w 50 -h 50 -vec filename.jpg.vec so got a image window with resolution of 200200 for -w 50 and -h 50. and +ve and -ve images are of same resolution (300300). if anyone knows in depth concept of this please help us to get into it. thanks in advance,
- an aspirant on opencv
What do you mean with the +ve and -ve images? createsamples is used to create a vector file (format handled during training) or your annotated data. Have a look at how to use it here.
Hi Steven, -w <sample_width> : Width (in pixels) of the output samples. -h <sample_height> : Height (in pixels) of the output samples. i saw this output samples using cmd: opencv_createsamples -w 50 -h 50 -vec filename.jpg.vec
i'm working on this algorithm since 4months. now, i have an idea how algorithm will train some object. so, i'm looking into algorithm how it works internally. i'm getting into each step of training how the parameters (arguments) will impose on that output. i saw in some question you commented that you wrote on book on opencv concept, did you publish? if published please lets know the details of that.
Yes the book is published at Packt under the name of OpenCV 3 Blueprints, and chapter 5 has all the information you need. But again, there are parts in your question that do not make sense. What is the +ve and -ve???
OK Steven thanks for replying, +ve images= positive images that are going to give for training -ve images = negative images which are background images for training