| Home > Function descriptions > | History back Previous chapter Next chapter Print |
GetFDTFaceList |
|
uEye ActiveX Manual Version 4.00
Syntax
VARIANT GetFDTFaceList()
Description
GetFDTFaceList() returns a list of information on the detected faces.
|
|
Parameters
<none>
Return values
<list of information on detected faces> |
|
IS_NO_SUCCESS |
General error message |
Related properties
Related functions
C++ Example
LONG nNumberOfDetectedFaces = AxuEyeCam.GetFDTNumberFaces();
VARIANT variantFaceList = AxuEyeCam.GetFDTFaceList();
SAFEARRAY *pArrayFaceList = variantFaceList.parray;
INT* arrayFaceList = NULL;
SafeArrayAccessData(pArrayFaceList, (void**)&arrayFaceList);
for (int i = 0; i < nNumberOfDetectedFaces; i++)
{
INT nFacePosX = arrayFaceList[i * 6 + 0];
INT nFacePosY = arrayFaceList[i * 6 + 1];
INT nFaceWidth = arrayFaceList[i * 6 + 2]; // (not used by uEye XS)
INT nFaceHeight = arrayFaceList[i * 6 + 3];
INT nAngle = arrayFaceList[i * 6 + 4];
INT nPosture = arrayFaceList[i * 6 + 5];
}
SafeArrayDestroy(pArrayFaceList);
SafeArrayUnaccessData(pArrayFaceList);
C# Example
int nNumberOfFaces = axuEyeCam.GetFDTNumberFaces();
int[] arrayFaceList = (int[])axuEyeCam.GetFDTFaceList();
for (int i = 0; i < nNumberOfFaces; i++)
{
int nFacePosX = arrayFaceList[i * 6 + 0];
int nFacePosY = arrayFaceList[i * 6 + 1];
int nFaceWidth = arrayFaceList[i * 6 + 2]; // (not used by uEye XS)
int nFaceHeight = arrayFaceList[i * 6 + 3];
int nAngle = arrayFaceList[i * 6 + 4];
int nPosture = arrayFaceList[i * 6 + 5];
}
VB Example
Dim nNumberOfFaces As Integer = AxuEyeCam.GetFDTNumberFaces()
Dim arrayFaceList As Array = AxuEyeCam.GetFDTFaceList()
Dim i As Integer
For i = 0 To nNumberOfFaces - 1
Dim nFacePosX As Integer = arrayFaceList.GetValue(i * 6 + 0)
Dim nFacePosY As Integer = arrayFaceList.GetValue(i * 6 + 1)
Dim nFaceWidth As Integer = arrayFaceList.GetValue(i * 6 + 2) // (not used by uEye XS)
Dim nFaceHeight As Integer = arrayFaceList.GetValue(i * 6 + 3)
Dim nAngle As Integer = arrayFaceList.GetValue(i * 6 + 4)
Dim nPosture As Integer = arrayFaceList.GetValue(i * 6 + 5)
Next i