You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2020. It is now read-only.
People in the preview only have chins but not faces?
A group photo doesn't look well?
Try UIImageView-BetterFace!
Like this:
##How?
Drag UIImageView+BetterFace.h and UIImageView+BetterFace.m to your project
Add CoreImage.framework to your project
Import the .h file
Add this:[anImageView setNeedsBetterFace:YES];
If you want all setImage: methods do the magic: Add hack_uiimageview_bf(); to your main function; Otherwise call setBetterFaceImage: for every image you want to make the face detection.
Done
Still have problems? clone the project and see the demo.
##Too slow?
try set the fast property to YES to get the faster speed(lower accuracy)
##Known issues
it will be slow to render large-size images, and showing the strange animation
it may take a lot of memory while reusing the UIImageView
If you're building your applications using UIImageView-BetterFace, please let me know! (add your application name & App Store link here and pullreuqest this README~
##Debugging
Add BF_DEBUG to your pre compile macros or #define BF_DEBUG to your prefix.pch file in order to see turn ON debugging logs on the console.
##Other
Any issue and pull request is welcome.
About
a UIImageView category to let the picture-cutting with faces showing better