Skip to content

Commit

Permalink
little bit speedup
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-null-mezon committed Feb 5, 2019
1 parent ae1d0fb commit 089c9d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/src/faceprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void FaceProcessor::__init()
m_pos = 0;
m_nofaceframes = 0;
f_firstface = true;
m_minFaceSize = cv::Size(80,80);
m_minFaceSize = cv::Size(110,110);
}

FaceProcessor::~FaceProcessor()
Expand Down Expand Up @@ -71,7 +71,7 @@ void FaceProcessor::enrollImage(const cv::Mat &rgbImage, double &resV, double &r
}

std::vector<cv::Rect> faces;
m_classifier.detectMultiScale(img, faces, 1.2, 5, cv::CASCADE_FIND_BIGGEST_OBJECT, m_minFaceSize);
m_classifier.detectMultiScale(img, faces, 1.3, 5, cv::CASCADE_FIND_BIGGEST_OBJECT, m_minFaceSize, m_minFaceSize*4);

if(faces.size() > 0) {
__updateRects(faces[0]);
Expand Down

0 comments on commit 089c9d5

Please sign in to comment.