fixed grammar error
This commit is contained in:
parent
98763247d9
commit
21e22962d9
@ -259,12 +259,12 @@ bool CvCascadeClassifier::updateTrainingSet( double& acceptanceRatio)
|
||||
{
|
||||
int64 posConsumed = 0, negConsumed = 0;
|
||||
imgReader.restart();
|
||||
int posCount = fillPassedSamles( 0, numPos, true, posConsumed );
|
||||
int posCount = fillPassedSamples( 0, numPos, true, posConsumed );
|
||||
if( !posCount )
|
||||
return false;
|
||||
cout << "POS count : consumed " << posCount << " : " << (int)posConsumed << endl;
|
||||
|
||||
int negCount = fillPassedSamles( numPos, numNeg, false, negConsumed );
|
||||
int negCount = fillPassedSamples( numPos, numNeg, false, negConsumed );
|
||||
if ( !negCount )
|
||||
return false;
|
||||
curNumSamples = posCount + negCount;
|
||||
@ -273,7 +273,7 @@ bool CvCascadeClassifier::updateTrainingSet( double& acceptanceRatio)
|
||||
return true;
|
||||
}
|
||||
|
||||
int CvCascadeClassifier::fillPassedSamles( int first, int count, bool isPositive, int64& consumed )
|
||||
int CvCascadeClassifier::fillPassedSamples( int first, int count, bool isPositive, int64& consumed )
|
||||
{
|
||||
int getcount = 0;
|
||||
Mat img(cascadeParams.winSize, CV_8UC1);
|
||||
|
@ -98,7 +98,7 @@ private:
|
||||
void save( const String cascadeDirName, bool baseFormat = false );
|
||||
bool load( const String cascadeDirName );
|
||||
bool updateTrainingSet( double& acceptanceRatio );
|
||||
int fillPassedSamles( int first, int count, bool isPositive, int64& consumed );
|
||||
int fillPassedSamples( int first, int count, bool isPositive, int64& consumed );
|
||||
|
||||
void writeParams( FileStorage &fs ) const;
|
||||
void writeStages( FileStorage &fs, const Mat& featureMap ) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user