1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-16 22:35:51 +08:00

Interface and naming fixes

This commit is contained in:
Vlad Shakhuro
2015-08-24 01:27:26 +03:00
parent 0928632206
commit 13053d6b6f
11 changed files with 235 additions and 85 deletions

View File

@@ -56,21 +56,23 @@ namespace xobjdetect
class CV_EXPORTS WBDetector {
public:
WBDetector(const std::string& model_filename);
virtual void read(const FileNode &node) = 0;
virtual void write(FileStorage &fs) const = 0;
void train(
virtual void train(
const std::string& pos_samples,
const std::string& neg_imgs);
const std::string& neg_imgs) = 0;
void detect(
virtual void detect(
const Mat& img,
std::vector<Rect> &bboxes,
std::vector<double> &confidences);
std::vector<double> &confidences) = 0;
private:
std::string model_filename_;
virtual ~WBDetector(){}
};
CV_EXPORTS Ptr<WBDetector> create_wbdetector();
} /* namespace xobjdetect */
} /* namespace cv */