未创建正样本

时间:2019-01-10 01:43:24

标签: opencv object-detection createsamples

我正在尝试创建用于对象检测的Haar分类器,并且正在关注Mac的下一个教程: https://github.com/mrnugget/opencv-haar-classifier-training

当我启动第5步时,我在终端上得到以下输出,没有创建任何正样本:

opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 75 -h 75 -img ./positive_images/63.jpg -bg tmp -vec samples / 63.jpg.vec -num 16 opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 75 -h 75 -img ./positive_images/77.jpg -bg tmp -vec samples / 77.jpg.vec -num 16 opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 75 -h 75 -img ./positive_images/88.jpg -bg tmp -vec samples / 88.jpg.vec -num 16 opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 75 -h 75 -img ./positive_images/89.jpg -bg tmp -vec samples / 89.jpg.vec -num 16 opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 75 -h 75 -img ./positive_images/76.jpg -bg tmp -vec samples / 76.jpg.vec -num 16 ...

我应该提到的是,当我安装OpenCV 3.4时可以运行,但是现在安装了OpenCV4。如果您认为这可能是个问题,请让我知道如何安装OpenCV 3.4,因为我一直尝试着结束代替安装OpenCV 4。

0 个答案:

没有答案