visageSDK
docs_VisageAnalyserUnityPlugin.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 
6 
24 
39 {
40  float age;
41  bool ageValid;
42  int gender;
43  bool genderValid;
46 };
47 
83 int _initAnalyser(string dataPath);
84 
89 void _releaseAnalyser();
90 
103 VFAReturnCode _analyseImage(int faceIndex, int options, ManagedAnalysisData& results);
104 
148 VFAReturnCode _analyseStream(int faceIndex, int options, ManagedAnalysisData& results);
149 
153 
int _initAnalyser(string dataPath)
Initialises VisageFaceAnalyser.
float emotionProbabilities[7]
result of emotion estimation, array indices correspond with the native VFAEmotionIndices enumeration...
VFAReturnCode _analyseStream(int faceIndex, int options, ManagedAnalysisData &results)
Performs the specified face analysis tasks on a given frame and outputs results to ManagedAnalysisDat...
bool emotionsValid
boolean flag returning whether emotion estimation has been successful or not
bool _prepareDataForAnalysis()
Prepares data obtained by the track function.
Managed equivalent of the native AnalysisData structure, used as a container for all face analysis re...
VFAReturnCode _analyseImage(int faceIndex, int options, ManagedAnalysisData &results)
Performs the specified face analysis tasks on a given image and outputs results to ManagedAnalysisDat...
bool ageValid
boolean flag returning whether age estimation has been successful or not
float age
result of age estimation
void _releaseAnalyser()
Releases memory allocated by the face analyser in the _initAnalyser() function.
int gender
result of gender estimation
bool genderValid
boolean flag returning whether gender estimation has been successful or not