Add a variant of detectMultiScale with an argument 'weights' that

receives the number of neighbors joined into each detected object
This commit is contained in:
Peter Minin
2013-06-06 19:00:55 +04:00
parent 99340b5613
commit ab6be9b7b7
3 changed files with 36 additions and 2 deletions

View File

@@ -382,6 +382,14 @@ public:
Size minSize=Size(),
Size maxSize=Size() );
CV_WRAP virtual void detectMultiScale( const Mat& image,
CV_OUT vector<Rect>& objects,
vector<int>& weights,
double scaleFactor=1.1,
int minNeighbors=3, int flags=0,
Size minSize=Size(),
Size maxSize=Size() );
CV_WRAP virtual void detectMultiScale( const Mat& image,
CV_OUT vector<Rect>& objects,
vector<int>& rejectLevels,
@@ -390,7 +398,8 @@ public:
int minNeighbors=3, int flags=0,
Size minSize=Size(),
Size maxSize=Size(),
bool outputRejectLevels=false );
bool outputRejectLevels=false,
bool outputWeights=false );
bool isOldFormatCascade() const;