- IRCameraViewController is a powerful camera view controller use face stickers and filters for iOS.
Demo Main Page | Enable Face Sticker |
---|---|
Confirm | Custom filters |
Custom filters | Update display view |
- Camera basic functions.
- Face stickers and filters
- Camera IRCameraViewController.
- Face Stickers IRCameraSticker
- Filters GPUImage
- Git clone this project.
- Copy this project into your own project.
- Add the .xcodeproj into you project and link it as embed framework.
- You can remove the
demo
andScreenShots
folder.
- Add
pod 'IREffectCamera'
in thePodfile
pod install
- See IRCameraSticker.
#import <IRCameraSticker/IRCameraSticker.h>
#import <IRCameraSticker/IRCameraStickerFilter.h>
#import <IRCameraSticker/IRCameraStickersManager.h>
...
- (IBAction)faceStickerTapped {
[_camera displayFaceSticker];
}
Custom image filters(You can see how GPUImage work in the demo project):
- Return
YES
bycustomizePhotoProcessingView
in theIRCameraDelegate
to disable the default filters
#pragma mark - IRCameraDelegate
- (BOOL)customizePhotoProcessingView {
return YES;
}
- Deal with the image by your own way:
#import <GPUImage/GPUImage.h>
- (UIImage *)imageWithSketchFilter:(UIImage *)originImage {
GPUImageFilter *imageFilter = [[GPUImageSketchFilter alloc] init];
return [imageFilter imageByFilteringImage:originImage];
}