-
Notifications
You must be signed in to change notification settings - Fork 0
/
QCFaceDetectionPlugIn.h
43 lines (34 loc) · 1.12 KB
/
QCFaceDetectionPlugIn.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
41
42
43
//
// QCFaceDetectionPlugIn.h
// QCFaceDetection
//
// Created by Ivan Wick on 8/23/10.
// Copyright (c) 2010 __MyCompanyName__. All rights reserved.
//
#import <Quartz/Quartz.h>
#import <OpenCV/OpenCV.h>
@interface QCFaceDetectionPlugIn : QCPlugIn
{
IplImage * ocvImage;
CvHaarClassifierCascade *cascade;
CvMemStorage *storage;
BOOL lastTest;
}
/*
Declare here the Obj-C 2.0 properties to be used as input and output ports for the plug-in e.g.
@property double inputFoo;
@property(assign) NSString* outputBar;
You can access their values in the appropriate plug-in methods using self.inputFoo or self.inputBar
*/
@property(assign /*dynamic*/) id<QCPlugInInputImageSource> inputImage;
@property(assign) BOOL inputTest;
@property(assign) double outputTest;
@property(assign) double outputWidth;
@property(assign) double outputHeight;
@property(assign) double outputPositionX;
@property(assign) double outputPositionY;
@property(assign) double outputFaceDetected;
-(CGSize)resize:(CGSize)origSize forTotalPixels:(int)pixels;
-(CGRect)detectFirstFace:(IplImage*)frameImage;
-(CGRect)flipCoordinates:(CGRect)r withinSize:(CGSize)s;
@end