opencv3.4中,
rects,rl,wl = self.cascade.detectMultiScale3(img,scaleFactor=1.3,minNeighbors=4,minSize=(30, 30),flags=0,outputRejectLevels=True)
wl可作為分?jǐn)?shù)
發(fā)現(xiàn)過程:https://github.com/opencv/opencv/blob/master/modules/objdetect/include/opencv2/objdetect.hpp
如果再opencv2.x版本中,想輸出分?jǐn)?shù)哨坪,采用同樣的方法,查看objdetect.hpp文件的detectMultiScale封裝形式姜挺,
https://github.com/opencv/opencv/blob/2.4/modules/objdetect/include/opencv2/objdetect/objdetect.hpp