An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

![Build Status](https://img.shields.io/badge/build-%20passing%20-brightgreen.svg)
![Platform](https://img.shields.io/badge/Platform-%20iOS%20-blue.svg)

# IREffectCamera

- IRCameraViewController is a powerful camera view controller use face stickers and filters for iOS.

## Screenshots
| Demo Main Page | Enable Face Sticker |
|:---:|:---:|
|![Demo Main Page](./ScreenShots/demo1.png)|![Enable Face Sticker](./ScreenShots/demo2.png)|
| Confirm | Custom filters |
|![Confirm](./ScreenShots/demo3.png)|![Custom filters](./ScreenShots/demo4.png)|
| Custom filters | Update display view |
|![Custom filters](./ScreenShots/demo5.png)|![Update display view](./ScreenShots/demo6.png)|

## 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];
}

```