opencv_createsamples未显示任何错误消息,但示例未显示

2024-06-01 01:24:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用开放的cv2创建阳性样本,以创建一个haar级联。我在它运行的终端中使用所有正确的参数执行了opencv_createsamples,没有错误,但是样本不会出现在目标文件中

我尝试了许多不同版本的opencv_创建示例函数,但都没有成功。我还升级了所有库和绑定

这是我的终端命令:

opencv_createsamples -img image0.jpg -bg bg.txt -vec info -show -maxxangle 0.5 -maxyangle 0.5 -maxzangle 0.5 

这是它在终端中所说的,它似乎成功地运行了命令。但是里面没有图片

Info file name: (NULL)
Img file name: image0.jpg
Vec file name: info
BG  file name: bg.txt
Num: 1000
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: TRUE
Scale: 4
Width: 24
Height: 24
Max Scale: -1
Create training samples from single image applying distortions...
Done

Tags: name命令infotxt终端opencvmaxfile