When I try using this Command: opencv_createsamples -img image.jpg -bg bg.txt -info /info/info.lst -pngoutput info -num 2600
it tells me: Invalid background descrip
I was experiencing the same problem and it was very frustrating. But now it's solved.
1) CTRL + A ; CTRL + C;
on your background description file to copy all it's content.
2) Create a new background description file (e.g.: bg2.txt), and CTRL + V
to paste all the content you copied. Save it.
3) Run your command again, using, of course, the new bg description file (-bg bg2.txt).
It worked for me and might work for you.
Cheers,
Geraldo Neto