OpenCV Python 支持 HaarDetectObjects 文档错误?
OpenCV Python 包装器的文档指出 HaarDetectObjects 有这个原型:
HaarDetectObjects(image, cascade, storage, scaleFactor=1.1, minNeighbors=3, flags=0, minSize=(0, 0))
但是当我尝试指定 minSize 参数时,我收到此错误:
cv.HaarDetectObjects( image, faceCascade, faceStorage, scale_factor=1.1, min_neighbors=3, flags=cv.CV_HAAR_DO_CANNY_PRUNING, min_size=(40,40) )
TypeError: function takes at most 6 arguments (7 given)
这是文档错误吗?
谢谢
The documentation for the OpenCV Python wrapper states that HaarDetectObjects have this prototype:
HaarDetectObjects(image, cascade, storage, scaleFactor=1.1, minNeighbors=3, flags=0, minSize=(0, 0))
But when I try to specify the minSize param I get this error:
cv.HaarDetectObjects( image, faceCascade, faceStorage, scale_factor=1.1, min_neighbors=3, flags=cv.CV_HAAR_DO_CANNY_PRUNING, min_size=(40,40) )
TypeError: function takes at most 6 arguments (7 given)
Is this the documentation wrong?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论