Home > Function descriptions > History back  Previous chapter  Next chapter  Print  

GetFDTFaceList

uEye ActiveX Manual Version 4.00

GetFDTFaceList

Syntax

VARIANT GetFDTFaceList()

Description

GetFDTFaceList() returns a list of information on the detected faces.

Hinweis

This function is currently only supported by the USB uEye XS camera model.

Parameters

<none>

Return values

<list of information on detected faces>

 

IS_NO_SUCCESS

General error message

Related properties

EnableUseFDTAOIforAESAGC

Related functions

GetFDTNumberFaces()

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


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com