All modules (except ocl and gpu) compiles and pass tests
This commit is contained in:
@@ -854,7 +854,7 @@ CascadeClassifier::CascadeClassifier()
|
||||
{
|
||||
}
|
||||
|
||||
CascadeClassifier::CascadeClassifier(const std::string& filename)
|
||||
CascadeClassifier::CascadeClassifier(const cv::String& filename)
|
||||
{
|
||||
load(filename);
|
||||
}
|
||||
@@ -868,7 +868,7 @@ bool CascadeClassifier::empty() const
|
||||
return oldCascade.empty() && data.stages.empty();
|
||||
}
|
||||
|
||||
bool CascadeClassifier::load(const std::string& filename)
|
||||
bool CascadeClassifier::load(const cv::String& filename)
|
||||
{
|
||||
oldCascade.release();
|
||||
data = Data();
|
||||
@@ -1209,13 +1209,13 @@ bool CascadeClassifier::Data::read(const FileNode &root)
|
||||
static const float THRESHOLD_EPS = 1e-5f;
|
||||
|
||||
// load stage params
|
||||
std::string stageTypeStr = (std::string)root[CC_STAGE_TYPE];
|
||||
cv::String stageTypeStr = (cv::String)root[CC_STAGE_TYPE];
|
||||
if( stageTypeStr == CC_BOOST )
|
||||
stageType = BOOST;
|
||||
else
|
||||
return false;
|
||||
|
||||
std::string featureTypeStr = (std::string)root[CC_FEATURE_TYPE];
|
||||
cv::String featureTypeStr = (cv::String)root[CC_FEATURE_TYPE];
|
||||
if( featureTypeStr == CC_HAAR )
|
||||
featureType = FeatureEvaluator::HAAR;
|
||||
else if( featureTypeStr == CC_LBP )
|
||||
|
||||
Reference in New Issue
Block a user