Commit 5f8f56ea authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

report an error when trying to load HOG cascade

parent 481f786f
......@@ -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;
......
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