getBackgroundColorUniformityThreshold method
Gets the background color uniformity threshold. If the score is above this value, the background color of the image is definitely uniform. Hint: Default value is 80.
return Background color uniformity threshold. throws FaceException An error has occurred during Face Library execution.
Implementation
int getBackgroundColorUniformityThreshold() {
Pointer<Int> pBackgroundColorUniformityThreshold = calloc();
try {
var err = faceSDK.id3FacePortraitProcessor_GetBackgroundColorUniformityThreshold(_pHandle.value, pBackgroundColorUniformityThreshold);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vBackgroundColorUniformityThreshold = pBackgroundColorUniformityThreshold.value;
return vBackgroundColorUniformityThreshold;
} finally {
calloc.free(pBackgroundColorUniformityThreshold);
}
}