Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/croath/UIImageView-BetterFace
a UIImageView category to let the picture-cutting with faces showing better
https://github.com/croath/UIImageView-BetterFace
face ios uiimageview
Last synced: 3 months ago
JSON representation
a UIImageView category to let the picture-cutting with faces showing better
- Host: GitHub
- URL: https://github.com/croath/UIImageView-BetterFace
- Owner: croath
- License: mit
- Archived: true
- Created: 2013-10-22T11:11:11.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T23:30:11.000Z (over 7 years ago)
- Last Synced: 2024-07-18T07:46:28.265Z (4 months ago)
- Topics: face, ios, uiimageview
- Language: Objective-C
- Homepage:
- Size: 3.64 MB
- Stars: 774
- Watchers: 35
- Forks: 94
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/croath/UIImageView-BetterFace.svg)](https://travis-ci.org/croath/UIImageView-BetterFace)
UIImageView-BetterFace
======================A UIImageView extension to let the picture-cutting with faces showing better
Last update in v0.2_stable : add a UIImage+BetterFace category, so clipping images becomes possible(clap!)
Looking for an Android version? Check this! [https://github.com/beartung/tclip-android]
##Why?
- Have problems showing the resized image previews?
- People in the preview only have chins but not faces?
- A group photo doesn't look well?Try UIImageView-BetterFace!
Like this:
![preview](https://raw.github.com/croath/UIImageView-BetterFace/master/doc/preview.png)
##How?
1. Drag `UIImageView+BetterFace.h` and `UIImageView+BetterFace.m` to your project
2. Add CoreImage.framework to your project
3. Import the .h file
4. Add this:`[anImageView setNeedsBetterFace:YES];`
5. 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.
6. Done
7. 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~~##Who use BetterFace?
- App of http://getprix.com
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.