report an error when trying to load HOG cascade

This commit is contained in:
Vadim Pisarevsky 2015-05-28 17:24:22 +03:00
parent 481f786fe7
commit 5f8f56ea0e

View File

@ -1402,8 +1402,10 @@ bool CascadeClassifierImpl::Data::read(const FileNode &root)
else if( featureTypeStr == CC_LBP )
featureType = FeatureEvaluator::LBP;
else if( featureTypeStr == CC_HOG )
{
featureType = FeatureEvaluator::HOG;
CV_Error(Error::StsNotImplemented, "HOG cascade is not supported in 3.0");
}
else
return false;