fix python wrapping

This commit is contained in:
marina.kolpakova
2013-01-16 14:04:32 +04:00
parent f9649a029b
commit 53433884ee
2 changed files with 3 additions and 3 deletions

View File

@@ -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;