https://github.com/irons163/ireffectcamera
IRCameraViewController is a powerful camera view controller use face stickers and filters for iOS.
https://github.com/irons163/ireffectcamera
camera face-tracker facetrack facetracker filters ios stickers
Last synced: 7 months ago
JSON representation
IRCameraViewController is a powerful camera view controller use face stickers and filters for iOS.
- Host: GitHub
- URL: https://github.com/irons163/ireffectcamera
- Owner: irons163
- License: mit
- Created: 2021-05-05T14:26:44.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-05T14:49:15.000Z (about 5 years ago)
- Last Synced: 2025-01-17T05:24:14.319Z (over 1 year ago)
- Topics: camera, face-tracker, facetrack, facetracker, filters, ios, stickers
- Language: Objective-C
- Homepage:
- Size: 17.8 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


# IREffectCamera
- IRCameraViewController is a powerful camera view controller use face stickers and filters for iOS.
## Screenshots
| Demo Main Page | Enable Face Sticker |
|:---:|:---:|
|||
| Confirm | Custom filters |
|||
| Custom filters | Update display view |
|||
## Features
- Camera basic functions.
- Face stickers and filters
## Technologies
- Camera [IRCameraViewController](https://github.com/irons163/IRCameraViewController).
- Face Stickers [IRCameraSticker](https://github.com/irons163/IRCameraSticker)
- Filters [GPUImage](https://github.com/BradLarson/GPUImage)
## Install
### Git
- Git clone this project.
- Copy this project into your own project.
- Add the .xcodeproj into you project and link it as embed framework.
#### Options
- You can remove the `demo` and `ScreenShots` folder.
### Cocoapods
- Add `pod 'IREffectCamera'` in the `Podfile`
- `pod install`
## Usage
### Basic
#### Basic functions
- See [IRCameraViewController](https://github.com/irons163/IRCameraViewController).
#### Face Stickers
- See [IRCameraSticker](https://github.com/irons163/IRCameraSticker).
```obj-c
#import
#import
#import
...
- (IBAction)faceStickerTapped {
[_camera displayFaceSticker];
}
```
### Advanced settings
Custom image filters(You can see how GPUImage work in the demo project):
- Return `YES` by `customizePhotoProcessingView` in the `IRCameraDelegate` to disable the default filters
```obj-c
#pragma mark - IRCameraDelegate
- (BOOL)customizePhotoProcessingView {
return YES;
}
```
- Deal with the image by your own way:
```obj-c
#import
- (UIImage *)imageWithSketchFilter:(UIImage *)originImage {
GPUImageFilter *imageFilter = [[GPUImageSketchFilter alloc] init];
return [imageFilter imageByFilteringImage:originImage];
}
```