Boring changes - gpulegacy.

pull/1281/head
Roman Donchenko 11 years ago
parent a007c7b980
commit d6146e9543
  1. 4
      modules/gpulegacy/src/cuda/NCVHaarObjectDetection.cu

@ -2138,8 +2138,8 @@ static NCVStatus loadFromXML(const cv::String &filename,
haarClassifierNodes.resize(0);
haarFeatures.resize(0);
cv::Ptr<CvHaarClassifierCascade> oldCascade = (CvHaarClassifierCascade*)cvLoad(filename.c_str(), 0, 0, 0);
if (oldCascade.empty())
cv::Ptr<CvHaarClassifierCascade> oldCascade((CvHaarClassifierCascade*)cvLoad(filename.c_str(), 0, 0, 0));
if (!oldCascade)
{
return NCV_HAAR_XML_LOADING_EXCEPTION;
}

Loading…
Cancel
Save