Question

Hello everybody I have a question about haartraining!Well I have 3000 images with 640x480 sizes for positive images and negative images I want to know If I must crop in smaller sizes like 24x24 or when I set -w and -h parametters in createsample images will be resized??

Was it helpful?

Solution

opencv_createsamples utility is used to increase the number of positive samples. Thus a large set of positive images is created from the set of positive data having the background from the set of negative images, rotating the image etc.

Thus the positive image is scaled to (w,h) specified while creating the sample images.

The only care to be taken is that the ratio of width and height must be proportional to that of the positive images for decent results.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top