擅长:python、mysql、java
<p>正如函数名alread建议的<code>cv2.CascadeClassifier.detectMultiScale</code>,<a href="https://docs.opencv.org/2.4/modules/objdetect/doc/cascade_classification.html#cascadeclassifier-detectmultiscale" rel="nofollow noreferrer">documentation</a>表示:</p>
<blockquote>
<p>Detects objects of different sizes in the input image</p>
</blockquote>
<p>另请参阅文档:</p>
<blockquote>
<p>Python: cv2.CascadeClassifier.detectMultiScale(image[, scaleFactor[,
minNeighbors[, flags[, <strong>minSize</strong>[, maxSize]]]]]) → objects</p>
<p><strong>minSize</strong> – Minimum possible object size. Objects smaller than that are
ignored.</p>
</blockquote>
<p>因此,要么按大小过滤结果矩形的列表,要么通过设置minSize参数来阻止小对象。在</p>