Need help with AndroidFaceCropper?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

454 Stars 97 Forks Apache License 2.0 21 Commits 2 Opened issues


Android bitmap Face Cropper

Services available


Need anything else?

Contributors list


Android bitmap Face Cropper

Link to sample apk and jar


To crop faces automatically, you have to instantiate an object of

class in that way:
FaceCropper mFaceCropper = new FaceCropper();

method supports
argument as a drawable resource, or directly a


There are 4 important methods to configure its behavior:

setMaxFaces(int faces)
, to adjust the maximum number of faces to be recognized.

setFaceMinSize(int faceMinSize)
, in pixels.

setFaceMarginPx(int faceMarginPx)
, in pixels, and for each side.

setEyeDistanceFactorMargin(float eyeDistanceFactorMargin)
, as a multiplier of the distance between the detected face eyes.

setDebug(boolean debug)
, to enable painting red circles over detected faces.

getFullDebugImage(Bitmap bitmap)
, to obtain a non-cropped image as the original, but with the detected faces painted, and the cropped area painted in green.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.