Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv_createsamples makes a square white background around image

I have the following image that I want to detect: image description

After running following command:

opencv_createsamples -img banana.png -bg bg.txt -info info/info.txt -pngoutput info -maxxangle 0.5 -maxyangle 0.5 -maxzangle 0.5 -num 1950

It creates the image:

image description

As it can be seen there is a white background around banana. Does anybody knows how to remove it?