OpenCV Invalid background description file

前端 未结 5 994
长情又很酷
长情又很酷 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条回答
  •  逝去的感伤
    2021-01-27 11:04

    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

提交回复
热议问题