如何生成用于面部检测的XML文件

时间:2014-02-24 08:31:53

标签: c++ opencv

现在我正在为面部检测创建自己的分类器。现在我想训练分类器。所以当我给出命令'opencv_haartraining -data facehaar -vec vecfile.vec -bg negatives.txt -npos 3 -nneg 5时 - nstages 30 -w 30 -h 32'它显示如下。这个错误是什么?我不明白?有人帮我吗?

Data dir name: facehaar
Vec file name: vecfile.vec
BG  file name: negatives.txt, is a vecfile: no
Num pos: 3
Num neg: 5
Num stages: 30
Num splits: 1 (stump as weak classifier)
Mem: 200 MB
Symmetric: TRUE
Min hit rate: 0.995000
Max false alarm rate: 0.500000
Weight trimming: 0.950000
Equal weights: FALSE
Mode: BASIC
Width: 30
Height: 32
Applied boosting algorithm: GAB
Error (valid only for Discrete and Real AdaBoost): misclass
Max number of splits in tree cascade: 0
Min number of positive samples per cluster: 500
Required leaf false alarm rate: 9.31323e-10

Tree Classifier
 Stage
  +---+
  |  0|
  +---+


Number of features used : 234720

Parent node: NULL

*** 1 cluster ***
 POS: 3 3 1.000000
 Invalid background description file.

0 个答案:

没有答案