【问题标题】:OpenCV: How to know the progress status of HaarTrainingOpenCV:如何知道 HaarTraining 的进度状态
【发布时间】:2012-04-12 21:48:50
【问题描述】:

我正在使用 OpenCV 2.2(使用 OpenMP 编译)运行 HaarTraining 进程。训练进度显示:

+----+----+-+---------+---------+---------+---------+
|7468| 44%|-|-2.712450| 1.000000| 0.719459| 0.108393|
+----+----+-+---------+---------+---------+---------+
|7469| 44%|-|-2.712449| 1.000000| 0.719459| 0.108393|
+----+----+-+---------+---------+---------+---------+
.......

数字 7469 是什么意思(我只有 7000 个样本)?我怎么知道这个过程什么时候结束?

谢谢!

【问题讨论】:

    标签: image-processing opencv image-recognition


    【解决方案1】:

    N 表示此级联的当前特征。 (见http://cv-kolaric.blogspot.com/2008/03/output-from-haartrainingexe.html

    +----+----+-+---------+---------+---------+---------+
    |  N |%%SMP|F|  ST.THR |    HR   |    FA   | EXP. ERR|
    +----+----+-+---------+---------+---------+---------+
    N = current feature for this cascade (seq->total),
    %%SMP = percentage of samples used, if trimmings enabled (v_wt)
    F = '+' if isFilpped, if symmetry is specified (v_flipped), '-' otherwise
    ST.THR = stage threshold, 
    HR = Hit Rate based on Stage threshold (v_hitrate / numpos), 
    FA = False alarm based on Stage threshold (v_falsealarm / numneg)
    EXP.ERR = Strong classification error of adaboost algorithm,
    based on threshold=0 (v_experr)
    

    为您的所有样本计算不同的特征。例如。 x-y 导数、对比度等。根据您的样本之间的差异,计算出更多的特征,而且您的正图像似乎彼此之间差异太大,无法对它们进行分类。

    尝试在训练之前先对图像进行预处理。例如。删除背景,查找边缘,阈值图像,洪水填充。任何可以使您的正面图像集看起来更相似的东西

    【讨论】:

      猜你喜欢
      • 2021-07-18
      • 2012-06-13
      • 2023-03-04
      • 1970-01-01
      • 2011-08-06
      • 1970-01-01
      • 1970-01-01
      • 2014-01-02
      • 1970-01-01
      相关资源
      最近更新 更多