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
opencv_createsamples -img image.jpg -bg bg.txt -info /info/info.lst -pngoutput info -num 2600
I had this problem too and I solved it by changing encoding of my bg.txt to UTF-8. Also, my file looks like:
neg/1.jpg neg/2.jpg