[英]Segmentation Fault in TrainCascade on OpenCV
I'm getting this weird error. 我收到这个奇怪的错误。 I have 437 positive images and 3019 negative images.
我有437张正面图片和3019张负面图片。
The positive images all taken of 35x35 pixels. 正片图像均为35x35像素。
This is the command that I use: 这是我使用的命令:
opencv_traincascade -data data -vec lv.vec -bg bg.txt -numPos 437 -numNeg 3019 -numStages 10 -w 35 -h 35
opencv_traincascade-数据数据-vec lv.vec -bg bg.txt -numPos 437 -numNeg 3019 -numStages 10 -w 35 -h 35
if I use -featureType LBP
, it hangs on the 0-stage not calculating anything. 如果我使用
-featureType LBP
,它会挂在0阶段,不进行任何计算。 If I remove it, this is what happens: 如果删除它,将会发生以下情况:
When I try to retry the process, I get: 当我尝试重试该过程时,我得到:
What I've tried: 我试过的
numNeg
lower. numNeg
。 numPos
near to samples / numStages
. numPos
接近samples / numStages
。 numNeg
to 300. numNeg
重新降低至300。 But the same Segmentation fault: 11 appears. 但是出现相同的细分错误:11 。
I haven't got this error before. 我以前没有这个错误。
Do you know what am I doing bad? 你知道我在做什么不好吗?
Thank you in advance. 先感谢您。
重新安装整个OpenCV和二进制文件解决了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.