visageSDK
objc_VisageFaceAnalyser.h
1 //
2 // objc_VisageFaceAnalyser.h
3 // SwiftWrapper
4 //
5 // Created by Visage Technologies on 04/09/2020.
6 // Copyright © 2020 Visage Technologies. All rights reserved.
7 //
8 
9 #ifndef objc_VisageFaceAnalyser_h
10 #define objc_VisageFaceAnalyser_h
11 
12 #ifdef __cplusplus
13 #include "VisageFaceAnalyser.h"
14 #endif
15 
16 #import "objc_FaceDataCollection.h"
17 #import "objc_VisageImage.h"
18 #import "objc_AnalysisData.h"
19 
32 typedef NS_OPTIONS(NSInteger, VFAFlags)
33 {
34  VFA_AGE = 1,
35  VFA_GENDER = 1 << 1,
36  VFA_EMOTION = 1 << 2
37 };
38 
42 typedef NS_ENUM(NSInteger, VFAReturnCode)
43 {
44  NoError = 0,
49 };
50 
54 typedef NS_ENUM(NSInteger, VFAEmotionIndices)
55 {
56  Anger = 0,
57  Disgust = 1,
58  Fear = 2,
59  Happiness = 3,
60  Sadness = 4,
61  Surprise = 5,
62  Neutral = 6
63 };
64 
68 @interface VisageFaceAnalyser : NSObject {
69  @private
70  #ifdef __cplusplus
72  #endif
73 }
74 
99 - (VisageFaceAnalyser *)initWithDataPath:(NSString *)dataPath;
100 
133 - (VFAReturnCode)analyseImage:(VisageImage *)image withFaceData:(FaceData *)faceData withOptions:(VFAFlags) options withAnalysisData:(AnalysisData *)results;
134 
160 - (VFAReturnCode)analyseStream:(VisageImage *)frame withFaceData:(FaceData *)faceData withOptions:(VFAFlags) options withAnalysisData:(AnalysisData *)results withFaceIndex:(int) faceIndex;
161 
166 - (void)resetStreamAnalysis:(int)faceIndex;
171 - (void)resetStreamAnalysis;
172 @end
173 #endif /* objc_VisageFaceAnalyser_h */
VisageFaceAnalyser contains face analysis algorithms capable of estimating age, gender and emotion fr...
the function has executed successfully
the FaceData has not been initialized by a previous tracking or detection operation
VFAReturnCode
Enumeration describing potential outcomes of the analyseImage() and analyseStream() methods.
Objective-C wrapper of the native VisageSDK::VisageFaceAnalyser class.
Objective-C wrapper of the native VisageSDK::AnalysisData class.
the license may be missing, invalid file name passed, expired or another related error
Emotion index 5.
Emotion index 6.
VisageFaceAnalyser was not properly initialized by a call to Init() method, or required data files we...
enable gender estimation or check whether gender data files have been properly initialized
Emotion index 0.
Emotion index 2.
enable emotion estimation or check whether emotion data files have been properly initialized
the image pointer or the related data may be null
Emotion index 1.
enable age estimation or check whether age data files have been properly initialized
VFAEmotionIndices
VFAEmotionIndices enumeration facilitates easier access to a specific emotion, particularly when iter...
Objective-C wrapper of the VisageSDK::FaceData class.
Definition: objc_FaceData.h:29
Emotion index 3.
Emotion index 4.
VFAFlags
VFAFlags are used to describe whether age, gender and/or emotion data have been loaded succesfully or...