OpenCV Invalid background description file

前端 未结 5 1038
长情又很酷
长情又很酷 2021-01-27 10:54

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

5条回答
  •  萌比男神i
    2021-01-27 11:18

    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
    

提交回复
热议问题