OpenCV Haartraining

Posted 一样菜

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OpenCV Haartraining相关的知识,希望对你有一定的参考价值。

opencv_haartraining.exe -data xml -vec pos.vec -bg neg/neg.txt -w 20 -h 20 -mem 144

opencv_haartraining.exe -data xml/ -vec pos.vec -bg neg/neg.txt -nstages 4 -nsplits 1 -minhitrate 0.999 -maxfalsealarm 0.5 -npos 20 -nneg 50 -w 20 -h 20 -mem 1024 -eqw 1 -mode all -bt GAB -minpos 10

opencv_haartraining.exe -data xml/ -vec pos.vec -bg neg/neg.txt -nstages 10 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -npos 15 -nneg 4 -w 20 -h 20 -mem 1024 -eqw 1 -mode all

opencv_haartraining.exe -data C:\C_Project\HandTraining\Haar2\xml -vec C:\C_Project\HandTraining\Haar2\pos.vec -bg C:\C_Project\HandTraining\Haar2\neg\neg.txt -npos 15 -nneg 10 -nsplits 2 -mem 1024 -nonsym -w 20 -h 20 -minpos 10 -nstages 4


opencv_traincascade.exe –size="20*20" xml haarcascade.xml


opencv_traincascade.exe -data xml -vec pos.vec -bg neg/neg.txt -nstages 10 -nsplits 1 -minhitrate 0.988 -maxfalsealarm 0.5 -npos 20 -nneg 50 -w 20 -h 20 -mem 1024 -mode all 

opencv_traincascade.exe -data xml -vec pos.vec -bg neg/neg.txt -numPos 20 -numNeg 50 -numStages 16 -w 20 -h 20 -mem 1024

opencv_traincascade.exe -data xml -vec pos.vec -bg neg/neg.txt -numPos 100 -numNeg 274 -featureType haar -w 20 -h 20 -numStages 20

opencv_createsamples.exe -vec pos.vec -info pos/pos.txt -w 30 -h 30 -num 35
274

opencv_haartraining.exe -data xml/ -vec pos.vec -bg neg/neg.txt -nstages 12 -nsplits 2 -minhitrate 0.999 -maxfalsealarm 0.5 -npos 35 -nneg 139 -w 30 -h 30 -mem 2048 -eqw 1 -mode all


opencv_createsamples.exe -info name763.dat -vec zhengmian_763.vec -num 763 -w 50 -h 55

opencv_traincascade.exe -data DATAHOG -vec 763.vec -bg negname.dat -numPos 700 -numNeg 2100 -featureType HOG -w 50 -h 55 -numStages 20



opencv_traincascade.exe -data xml -vec pos.vec -bg neg/neg.txt -numPos 100 -numNeg 274 -featureType Haar -w 20 -h 20 -numStages 20

opencv_createsamples.exe -vec pos.vec -info pos/pos.txt -w 20 -h 20 -num 20

 

以上是关于OpenCV Haartraining的主要内容,如果未能解决你的问题,请参考以下文章

内存不足opencv haartraining

opencv源代码分析之二:cvhaartraining.cpp

如何用OpenCV训练自己的分类器

如何用OpenCV训练自己的分类器

如何利用OpenCV自带的级联分类器训练程序训练分类器

在 Python 多处理进程中运行较慢的 OpenCV 代码片段