lafosca/AndroidFaceCropper
حول
أداة قص الوجوه من الصور النقطية في Android
مشاريع أخرىالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلAndroidFaceCropper
Android bitmap Face Cropper
##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 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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…