| Home > C: Programming > Function descriptions > | History back Previous chapter Next chapter Print |
is_FaceDetection |
|
uEye Camera Manual Version 4.00
|
|
USB uEye XS |
USB uEye XS |
Syntax
INT is_FaceDetection (HIDS hCam,
UINT nCommand,
void *pParam,
UINT nSizeOfParam)
Description
Using is_FaceDetection(), you can control the built-in face detection function if supported by your uEye model.
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the nSizeOfParam input parameter.
With some uEye models, you can use the face detection function to control the automatic brightness.
|
|
|
|
|
|
|
|
|
|
Input parameters
hCam |
Camera handle |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pParam |
Pointer to a function parameter, whose function depends on nCommand. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nSizeOfParam |
Size (in bytes) of the memory area to which pParam refers. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Status flags from FDT_CAPABILITY_CAP_FLAGS
FDT_CAP_SUPPORTED |
The camera supports face detection |
FDT_CAP_SEARCH_ANGLE |
Face detection supports presetting a search angle |
FDT_CAP_SEARCH_AOI |
Face detection supports presetting a search area |
FDT_CAP_INFO_POSX |
Face detection supports output of the X position of a face |
FDT_CAP_INFO_POSY |
Face detection supports output of the Y position of a face |
FDT_CAP_INFO_WIDTH |
Face detection supports output of the width of a face |
FDT_CAP_INFO_HEIGHT |
Face detection supports output of the height of a face |
FDT_CAP_INFO_ANGLE |
Face detection supports output of the orientation angle of a face |
FDT_CAP_INFO_POSTURE |
Face detection supports output of the posture of a face |
FDT_CAP_INFO_FACENUMBER |
Face detection supports output of the number of faces detected |
FDT_CAP_INFO_OVL |
Face detection supports marking detected faces with an overlay box |
FDT_CAP_INFO_NUM_OVL |
Face detection supports setting the maximum number of faces for marking |
FDT_CAP_INFO_OVL_LINEWIDTH |
Face detection supports setting the line width for the overlay boxes |
Contents of the list of detected faces FDT_INFO_LIST
UINT |
nSizeOfListEntry |
Must be preset with the size of a list entry in bytes |
UINT |
nNumDetectedFaces |
Returns the number of detected faces |
UINT |
nNumListElements |
Must be preset with the number of list entries |
UINT |
nReserved[4] |
Reserved |
FDT_INFO_EL |
FaceEntry |
First entry in the list. The memory area for additional list entries has to come directly after this entry. |
Contents of the list entry FDT_INFO_EL
INT |
nFacePosX |
X position of the face (center) The face position always refers to the horizontal and vertical resolution of the face detection function (see note above). |
INT |
nFacePosY |
Y position of the face (center) |
INT |
nFaceWidth |
Width of the face The face size always refers to the horizontal and vertical resolution of the face detection function (see note above). |
INT |
nFaceHeight |
Height of the face. |
INT |
nAngle |
Orientation angle of the face: 0/90/270: Angle in degrees (0° corresponds to 12 o'clock position) -1: Undefined |
UINT |
nPosture |
Posture of the face; see table below 0...8 |
UEYETIME |
TimestampSystem |
Structure with timestamp information in PC system time format, see is_GetImageInfo(). The time resolution is approx. 15 ms. |
UINT64 |
nReserved |
Reserved |
UINT |
nReserved2[4] |
Reserved |
Possible values for posture (viewing direction)
0 |
1 |
2 |
|
|
|
3 |
4 |
5 |
|
|
|
6 |
7 |
8 |
|
|
|
Return values
IS_CANT_COMMUNICATE_WITH_DRIVER |
Communication with the driver failed because no driver has been loaded. |
IS_CANT_OPEN_DEVICE |
An attempt to initialize or select the camera failed (no camera connected or initialization error). |
IS_INVALID_CAPTURE_MODE |
The function can not be executed in the current camera operating mode (free run, trigger or standby). |
IS_INVALID_CAMERA_HANDLE |
Invalid camera handle |
IS_INVALID_PARAMETER |
One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode. |
IS_IO_REQUEST_FAILED |
An IO request from the uEye driver failed. Possibly the versions of the ueye_api.dll (API) and the driver file (ueye_usb.sys or ueye_eth.sys) do not match. |
IS_NO_SUCCESS |
General error message |
IS_NOT_SUPPORTED |
The camera model used here does not support this function or setting. |
IS_OUT_OF_MEMORY |
No memory could be allocated. |
IS_SUCCESS |
Function executed successfully |