visageSDK
ViewController.h
1 //
2 // ViewController.h
3 //
4 // Created by Visage on 29/05/2018.
5 // Copyright © 2018 Visage Technologies. All rights reserved.
6 //
7 
8 #import <UIKit/UIKit.h>
9 
10 @class CustomGLView;
11 @class TrackerWrapper;
12 
13 
14 @interface ViewController : UIViewController <UIAlertViewDelegate,UINavigationControllerDelegate, UIImagePickerControllerDelegate, UIPopoverControllerDelegate>
15 {
20  NSTimer *resultsDisplayTimer;
21 
26  CustomGLView *glView;
27 
32  TrackerWrapper *tracker;
33 
38  UIImagePickerController *imgPicker;
39 
44  UIPopoverController *popOver;
45 
50  int cameraID;
51 
55  bool ageClicked;
56 
60  bool genderClicked;
61 
65  bool emoClicked;
66 }
67 
68 @property (nonatomic) IBOutlet CustomGLView *glView;
69 @property (nonatomic) TrackerWrapper *tracker;
70 
71 @property (nonatomic) UIImagePickerController *imgPicker;
72 @property (nonatomic, strong) UIPopoverController *popOver;
73 
74 @property (nonatomic) int cameraID;
75 
76 @property (nonatomic) bool ageClicked;
77 @property (nonatomic) bool genderClicked;
78 @property (nonatomic) bool emoClicked;
79 
80 @property (weak, nonatomic) IBOutlet UIView *toolbar;
81 @property (weak, nonatomic) IBOutlet UIView *sidePanel;
82 @property (weak, nonatomic) IBOutlet UIView *transparentView;
83 @property (weak, nonatomic) IBOutlet UIView *analyserPanel;
84 
85 @property (weak, nonatomic) IBOutlet UIButton *menuBttn;
86 @property (weak, nonatomic) IBOutlet UIButton *cameraBttn;
87 @property (weak, nonatomic) IBOutlet UIButton *imageBttn;
88 
89 @property (weak, nonatomic) IBOutlet UISwitch *ageSwitch;
90 @property (weak, nonatomic) IBOutlet UISwitch *genderSwitch;
91 @property (weak, nonatomic) IBOutlet UISwitch *emotionSwitch;
92 @property (weak, nonatomic) IBOutlet UISwitch *pointsSwitch;
93 @property (weak, nonatomic) IBOutlet UISwitch *splinesSwitch;
94 @property (weak, nonatomic) IBOutlet UISwitch *gazeSwitch;
95 @property (weak, nonatomic) IBOutlet UISwitch *axesSwitch;
96 @property (weak, nonatomic) IBOutlet UISwitch *wireframeSwitch;
97 @property (weak, nonatomic) IBOutlet UISwitch *irisSwitch;
98 @property (weak, nonatomic) IBOutlet UISwitch *earsSwitch;
99 @property (weak, nonatomic) IBOutlet UISwitch *VNNSwitch;
100 
101 @property (weak, nonatomic) IBOutlet UILabel *angerLabel;
102 @property (weak, nonatomic) IBOutlet UILabel *fearLabel;
103 @property (weak, nonatomic) IBOutlet UILabel *happinessLabel;
104 @property (weak, nonatomic) IBOutlet UILabel *disgustLabel;
105 @property (weak, nonatomic) IBOutlet UILabel *sadnessLabel;
106 @property (weak, nonatomic) IBOutlet UILabel *surpriseLabel;
107 @property (weak, nonatomic) IBOutlet UILabel *ageLabel;
108 @property (weak, nonatomic) IBOutlet UILabel *genderLabel;
109 
110 @property (weak, nonatomic) IBOutlet UILabel *VNNLabel;
111 
112 @property (weak, nonatomic) IBOutlet UIProgressView *angerProgress;
113 @property (weak, nonatomic) IBOutlet UIProgressView *happinessProgress;
114 @property (weak, nonatomic) IBOutlet UIProgressView *disgustProgress;
115 @property (weak, nonatomic) IBOutlet UIProgressView *fearProgress;
116 @property (weak, nonatomic) IBOutlet UIProgressView *sadnessProgress;
117 @property (weak, nonatomic) IBOutlet UIProgressView *surpriseProgress;
118 
119 @property (weak, nonatomic) IBOutlet UIImageView *genderImg;
120 
121 - (IBAction)menuClick:(id)sender;
122 - (IBAction)cameraClick:(id)sender;
123 - (IBAction)imageClick:(id)sender;
124 
125 - (IBAction)ageClick:(id)sender;
126 - (IBAction)genderClick:(id)sender;
127 - (IBAction)emotionClick:(id)sender;
128 
129 - (IBAction)pointsClick:(id)sender;
130 - (IBAction)splinesClick:(id)sender;
131 - (IBAction)gazeClick:(id)sender;
132 - (IBAction)axesClick:(id)sender;
133 - (IBAction)wireframeClick:(id)sender;
134 - (IBAction)irisClick:(id)sender;
135 - (IBAction)earsClick:(id)sender;
136 - (IBAction)VNNClick:(id)sender;
137 - (NSURL *)applicationDocumentsDirectory;
138 
139 @property (weak, nonatomic) IBOutlet UILabel *message;
140 
141 
142 @end
143 
Implements simple high-level Objective-C interface around VisageSDK::VisageTracker functionallity.
Controls OpenGL view used for tracking output.