add Detection struct to interface

This commit is contained in:
marina.kolpakova
2012-10-06 21:43:25 +04:00
parent 754fd7311b
commit 8e092f8b5d
4 changed files with 18 additions and 5 deletions

View File

@@ -493,6 +493,16 @@ protected:
class CV_EXPORTS SoftCascade
{
public:
struct CV_EXPORTS Detection
{
cv::Rect rect;
float confidence;
int kind;
enum {PEDESTRIAN = 0};
};
//! An empty cascade will be created.
SoftCascade();
@@ -511,7 +521,7 @@ public:
virtual ~SoftCascade();
//! return vector of bounding boxes. Each box contains one detected object
virtual void detectMultiScale(const Mat& image, const std::vector<cv::Rect>& rois, std::vector<cv::Rect>& objects,
virtual void detectMultiScale(const Mat& image, const std::vector<cv::Rect>& rois, std::vector<Detection>& objects,
int rejectfactor = 1) const;
protected: