开发者

OpenCV Python support HaarDetectObjects documentation wrong?

开发者 https://www.devze.com 2023-02-04 17:25 出处:网络
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))

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号