1 | initial version |
while it's technically possible, to generate synthetic positives from a single image, this method won't lead to an accurate training result.
instead, collect a few hundred positives manually (maybe using the opencv_annotation tool), and leave the original background intact.
you don't need to crop the images, but you have to give a list of imagenames/rects to opencv_createsamples. then decide on appropriate width and height for the training.