1 #import <Foundation/Foundation.h> 2 #import <CoreGraphics/CoreGraphics.h> 3 #import <Accelerate/Accelerate.h> 4 #import "CustomGLView.h" 6 #import "AnalyserInformer.h" 10 #include "visageVision.h" 11 #include "VideoGrabber.h" 12 #include "DemoFrameGrabber.h" 13 #include "VisageRendering.h" 14 #include "CameraGrabber.h" 59 NSOperationQueue* opQ;
60 __weak NSBlockOperation* currentTrackOperation;
66 VideoGrabber* videoGrabber;
84 bool inGetTrackingResults;
111 bool instructionsMessage;
117 @property (nonatomic)
bool ageActivated;
118 @property (nonatomic)
bool genderActivated;
119 @property (nonatomic)
bool emotionsActivated;
121 @property (nonatomic)
bool earsActivated;
123 @property (nonatomic)
int activeDisplay;
124 @property (nonatomic)
float tapPositionx;
125 @property (nonatomic)
float tapPositiony;
127 @property (nonatomic)
bool instructionsMessage;
138 - (void)startTrackingFromCam:(
int)camera;
142 - (void)startTrackingFromImage:(UIImage *)image;
146 - (void)startTrackingFromVideo:(NSString *)video;
150 - (void) trackingCamThread:(
id)object;
154 - (void) trackingImageThread:(UIImage *)image;
158 - (void) trackingVideoThread:(NSString*) videoURL;
168 - (void)dummyThread:(
id)object;
172 - (BOOL)startMultithread;
176 - (void)doAnalysis:(
int)faceIndex;
180 - (void)resetAnalyserFilters:(
int)index;
189 - (void)displayTrackingResults:(
int*)trackerStatus Frame:(
VsImage*)frame Face:(VsRect*)rect;
193 - (long)getCurrentTimeMs;
195 - (void)toggleEarsTracking:(
bool)enableEars;
196 - (void)toggleIrisTracking:(
bool)enableIris;
197 - (void)toggleRefineLandmarks:(
bool)enableRefineLandmarks;
198 - (BOOL)initAnalyser;
VisageTracker is a face tracker capable of tracking the head pose, facial features and gaze for multi...
VisageFaceAnalyser contains face analysis algorithms capable of estimating age, gender and emotion fr...
int glHeight
Size of the OpenGL view.
Analysis data structure, used as a container for all face analysis results.
Implements simple high-level Objective-C interface around VisageSDK::VisageTracker functionallity.
Informer * m_informer
Informer used for displaying tracking information.
Controls OpenGL view used for tracking output.
bool ageActivated
Boolean variable that states if age analyser is turned on or off.
bool emotionsActivated
Boolean variable that states if emotions analyser is turned on or off.
AnalyserInformer * analyserInformer
Informer used for displaying analyser information.
int activeDisplay
Current drawing options variable.
Face data structure, used as container for all face tracking and detection results.
bool genderActivated
Boolean variable that states if gender analyser is turned on or off.
Feature points of a face.
Implements a simple frame grabber that serves a single image to the tracker in order to demonstrate t...
int glWidth
Size of the OpenGL view.