【问题标题】:.vec file is not created in the sample folder in open CV.vec 文件未在打开的 CV 的示例文件夹中创建
【发布时间】:2020-03-05 17:52:06
【问题描述】:

我正在使用开放的CV库,我创建了正图像文件夹和负图像文件夹,还创建了包含文件夹中图像路径的文本文件,点击此链接http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html 当我尝试运行命令时

perl bin/createsamples.pl positives.txt negatives.txt samples 7 "opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40"

但如您在屏幕截图中所见,示例文件夹中没有创建任何内容。有人可以帮帮我吗?

screenshot available here

【问题讨论】:

  • 您能否发布您的positives.txt 和negatives.txt 的某些部分,并告诉我们您从哪里开始opencv_createsamples 以及图像的位置?
  • ./negative_images/000_580182_001.jpg 类似这样的东西。 negative.txt 包含图片路径列表

标签: opencv haar-classifier


【解决方案1】:

尝试使用以下命令: perl bin/createsamples.pl positives.txtnegatives.txt ./samples 1500\ “opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1\ -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40"

刚刚在示例之前添加了 ./,因为它没有获得存储 .vec 文件的确切目录。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-20
    • 1970-01-01
    • 2017-09-28
    • 2013-11-18
    • 1970-01-01
    • 2015-03-13
    • 1970-01-01
    • 2017-01-09
    相关资源
    最近更新 更多