-
Notifications
You must be signed in to change notification settings - Fork 0
/
DetectFace.h
30 lines (23 loc) · 967 Bytes
/
DetectFace.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// DetectFace.h
// Selvee
//
// Created by Leonard Loo on 13/9/14.
// Copyright (c) 2014 Selvee. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@class DetectFace;
@protocol DetectFaceDelegate <NSObject>
- (void)detectedFaceController:(DetectFace *)controller features:(NSArray *)featuresArray forVideoBox:(CGRect)clap withPreviewBox:(CGRect)previewBox;
@end
@interface DetectFace : NSObject
@property (nonatomic, weak) id delegate;
@property (nonatomic, strong) UIImageView *previewView;
@property (nonatomic, strong) CIImage *outputImage;
@property (nonatomic, strong) UIImageView *outputImageView;
- (void)startDetection;
- (void)stopDetection;
+ (CGRect)videoPreviewBoxForGravity:(NSString *)gravity frameSize:(CGSize)frameSize apertureSize:(CGSize)apertureSize;
+ (CGRect)convertFrame:(CGRect)originalFrame previewBox:(CGRect)previewBox forVideoBox:(CGRect)videoBox isMirrored:(BOOL)isMirrored;
@end