gpt4 book ai didi

opencv3.0 - 为什么 opencv_traincascade 失败并显示 : "Train dataset for temp stage can not be filled"?

转载 作者:行者123 更新时间:2023-12-01 03:28:58 25 4
gpt4 key购买 nike

到目前为止我尝试过的...

opencv_createsamples -info positive/positive.txt -vec positive.vec -w 100 -h 100 -num 2
opencv_createsamples -info negative/negative.txt -vec negative.vec -w 100 -h 100 -num 2
opencv_traincascade -vec positive.vec -data . -bg negative/negative.txt -numPos 1 -numNeg 1 -numStages 1 -w 100 -h 100

# outputs
Train dataset for temp stage can not be filled. Branch training terminated. Cascade classifier can't be trained. Check the used training parameters.

如何用很少的正数训练 HAAR 模型?目标是在 2d 图像中跟踪 2d 图像。

最佳答案

您的论点之一是“numpos”,但根据 http://docs.opencv.org/2.4/doc/user_guide/ug_traincascade.html ,它应该是带有大写 P 的“numPos”。

关于opencv3.0 - 为什么 opencv_traincascade 失败并显示 : "Train dataset for temp stage can not be filled"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39353605/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com