[英]Why does Cascade return so many faces?
I'm trying to learn OpenCV from its examples, but I've met a big problem with objectDetection.cpp
. 我正在尝试从示例中学习OpenCV,但是我遇到了
objectDetection.cpp
的大问题。 I ran it on my laptop, but it returns me a huge number of faces in the first run and it could not continue to run another round in while
. 我跑了它在我的笔记本电脑,但它返回我在第一次运行面临的一个庞大的数字,它不能继续运行在一轮又一轮
while
。 Has anybody encountered something like this before? 有人遇到过这样的事情吗?
Before defect: 缺陷前:
After defect: 缺陷后:
Try this.May be this will help you. 试试这个。可能对您有帮助。
face_cascade.detectMultiScale(frame_gray, faces, rejectLevels, levelWeights, 1.1, 3, 0 | CV_HAAR_SCALE_IMAGE, Size(16, 16), Size(0, 0), true);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.