getSubjectPosition method
Gets the position of the subject in the image.
return Position of the subject in the image. throws FaceException An error has occurred during Face Library execution.
Implementation
int getSubjectPosition() {
Pointer<Int32> pSubjectPosition = calloc();
try {
var err = faceSDK.id3FacePortrait_GetSubjectPosition(_pHandle.value, pSubjectPosition);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vSubjectPosition = pSubjectPosition.value;
return vSubjectPosition;
} finally {
calloc.free(pSubjectPosition);
}
}