Commit 53433884 authored by marina.kolpakova's avatar marina.kolpakova

fix python wrapping

parent f9649a02
......@@ -561,7 +561,7 @@ public:
virtual void detect(InputArray image, InputArray rois, std::vector<Detection>& objects) const;
// Param rects is an output array of bounding rectangles for detected objects.
// Param confs is an output array of confidence for detected objects. i-th bounding rectangle corresponds i-th configence.
CV_WRAP virtual void detect(InputArray image, InputArray rois, OutputArray rects, OutputArray confs) const;
CV_WRAP virtual void detect(InputArray image, InputArray rois, CV_OUT OutputArray rects, CV_OUT OutputArray confs) const;
private:
void detectNoRoi(const Mat& image, std::vector<Detection>& objects) const;
......
......@@ -525,7 +525,7 @@ void cv::SCascade::detect(cv::InputArray _image, cv::InputArray _rois, std::vect
objects.clear();
if (_rois.kind() == cv::_InputArray::NONE)
if (_rois.empty())
return detectNoRoi(image, objects);
int shr = fld.shrinkage;
......@@ -577,7 +577,7 @@ void cv::SCascade::detect(InputArray _image, InputArray _rois, OutputArray _rec
_confs.create(1, objects.size(), CV_32F);
cv::Mat confs = _confs.getMat();
float* confPtr = rects.ptr<float>(0);
float* confPtr = confs.ptr<float>(0);
typedef std::vector<Detection>::const_iterator IDet;
......
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