Skip to content

Commit

Permalink
Update mtcnn.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaQi authored Jun 28, 2017
1 parent 6eaec78 commit ca62865
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/mtcnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,18 +489,18 @@ mtcnn::mtcnn(int row, int col){
factor_count++;
}
float minside = row<col ? row : col;
int count = 0;
for (vector<float>::iterator it = scales_.begin(); it != scales_.end(); it++){
if (*it > 1){
cout << "the minsize is too small" << endl;
while (1);
}
if (*it < (MIN_DET_SIZE / minside)){
scales_.resize(count);
break;
}
count++;
}
int count = 0;
for (vector<float>::iterator it = scales_.begin(); it != scales_.end(); it++){
if (*it > 1){
cout << "the minsize is too small" << endl;
while (1);
}
if (*it < (MIN_DET_SIZE / minside)){
scales_.resize(count);
break;
}
count++;
}
simpleFace_ = new Pnet[scales_.size()];
}

Expand Down

0 comments on commit ca62865

Please sign in to comment.