Skip to content

Commit

Permalink
Merge pull request #2 from sergio91pt/honor_max_faces
Browse files Browse the repository at this point in the history
Honor setMaxFaces(int).
  • Loading branch information
ignasi committed May 24, 2014
2 parents 1590327 + 0ba8014 commit 5ff8ff3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ public Bitmap cropFace(Bitmap original) {

FaceDetector faceDetector = new FaceDetector(
fixedBitmap.getWidth(), fixedBitmap.getHeight(),
MAX_FACES);
mMaxFaces);

FaceDetector.Face[] faces = new FaceDetector.Face[MAX_FACES];
FaceDetector.Face[] faces = new FaceDetector.Face[mMaxFaces];

// The bitmap must be in 565 format (for now).
int faceCount = faceDetector.findFaces(fixedBitmap, faces);
Expand Down

0 comments on commit 5ff8ff3

Please sign in to comment.