此问题已解决,我使用info.lst
的文件在文件末尾有一个空行,一旦删除它就运行得很好
我正在尝试创建一组正面图像来训练我的负面图像,并在我的Ubuntu 16中输入以下命令
opencv_createsamples -img watch50505.jpg -bg bg.txt -info info/info.lst -pngoutput info -maxxangle 0.5 -maxyangle -0.5 -maxzangle 0.5 -num 1500
并获得以下输出
Info file name: info/info.lst
Img file name: watch50505.jpg
Vec file name: (NULL)
BG file name: bg.txt
Num: 1500
BG color: 0
BG threshold: 80
Invert: FALSE
Max intensity deviation: 40
Max x angle: 0.5
Max y angle: -0.5
Max z angle: 0.5
Show samples: FALSE
Width: 24
Height: 24
Create test samples from single image applying distortions...
Done
当我导航到我的info目录时,我没有得到任何输出。没有任何。我有1917个负面图像来训练。我尝试以超级用户身份运行该命令但尚未输出。有人可以帮帮我吗。我正在关注python btw中的教程,如果有任何帮助的话。