资源说明:AndroidFaceCropper
Android bitmap Face Cropper
Link to sample apk and jar
Usage
To crop faces automatically, you have to instantiate an object of FaceCropper class in that way:
FaceCropper mFaceCropper = new FaceCropper();
mFaceCropper.getCroppedImage(source);
getCroppedImage method supports int argument as a drawable resource, or directly a Bitmap.
Configuration
There are 4 important methods to configure its behavior:
setMaxFaces(int faces), to adjust the maximum number of faces to be recognize
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。