-
Notifications
You must be signed in to change notification settings - Fork 1
/
SmileDetector.h
40 lines (27 loc) · 983 Bytes
/
SmileDetector.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
31
32
33
34
35
36
37
38
39
40
//
// CameraCapture.h
// MoodChanger
//
// Created by Austin Feight on 2/2/14.
//
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreImage/CoreImage.h>
#import "ImageProcessing.h"
@protocol SmileDetectorDelegate <NSObject>
- (void)smileDetected;
@end
@interface SmileDetector : UIViewController <AVCaptureVideoDataOutputSampleBufferDelegate>
@property (strong, nonatomic) id delegate;
@property (strong, nonatomic) AVCaptureSession *AVsession;
@property (strong, nonatomic) AVCaptureVideoPreviewLayer *previewLayer;
@property (strong, nonatomic) AVCaptureVideoDataOutput *videoDataOutput;
@property (atomic) dispatch_queue_t videoDataOutputQueue;
@property (strong, nonatomic) CIDetector *faceDetector;
@property (atomic) BOOL isUsingFrontFacingCamera;
@property (strong, nonatomic) UIImage *square;
+ (id)newWithDelegate:(id)delegate;
- (id)initWithDelegate:(id)delegate;
- (void)setDetectionAccuracy:(NSString *)accuracy;
@end