Commit cf08b726 authored by Vlad Shakhuro's avatar Vlad Shakhuro

Fix argument types

parent 22b165ca
...@@ -78,7 +78,7 @@ public: ...@@ -78,7 +78,7 @@ public:
One value per bbox — confidence of detector that corresponding One value per bbox — confidence of detector that corresponding
bbox contatins object bbox contatins object
*/ */
void detect(const Mat& image, void detect(InputArray image,
std::vector<Rect>& bboxes, std::vector<Rect>& bboxes,
std::vector<float>& confidence_values) const; std::vector<float>& confidence_values) const;
......
...@@ -59,7 +59,7 @@ public: ...@@ -59,7 +59,7 @@ public:
Returns chosen feature index. Feature enumeration starts from 0 Returns chosen feature index. Feature enumeration starts from 0
*/ */
int train(const Mat_<int>& data, const Mat_<int>& labels); int train(const Mat& data, const Mat& labels);
/* Predict object class given /* Predict object class given
...@@ -101,8 +101,8 @@ public: ...@@ -101,8 +101,8 @@ public:
Returns feature indices chosen for cascade. Returns feature indices chosen for cascade.
Feature enumeration starts from 0 Feature enumeration starts from 0
*/ */
std::vector<int> train(const Mat_<int>& data, std::vector<int> train(const Mat& data,
const Mat_<int>& labels); const Mat& labels);
/* Predict object class given object that can compute object features /* Predict object class given object that can compute object features
...@@ -111,7 +111,7 @@ public: ...@@ -111,7 +111,7 @@ public:
Returns confidence_value — measure of confidense that object Returns confidence_value — measure of confidense that object
is from class +1 is from class +1
*/ */
float predict(const ACFFeatureEvaluator& feature_evaluator); float predict(const Ptr<ACFFeatureEvaluator>& feature_evaluator);
private: private:
/* Parameters for cascade training */ /* Parameters for cascade training */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment