PortraitProcessor.glassesThreshold Property¶
Module: PortraitProcessor
Type: int
Definition¶
Glasses detection threshold.
If the score is above this value, the person is probably wearing glasses.
Hint
Default value 90.
glasses_threshold: int
Exceptions
An error has occurred during Face Library execution.
int get glassesThreshold => getGlassesThreshold();
set glassesThreshold(int value) => setGlassesThreshold(value);
Exceptions
An error has occurred during Face Library execution.
public int glassesThreshold
{
get => GetglassesThreshold();
set => SetglassesThreshold(ref value);
}
Exceptions
An error has occurred during Face Library execution.
public int getGlassesThreshold() throws FaceException
public void setGlassesThreshold(int glassesThreshold) throws FaceException
Exceptions
An error has occurred during Face Library execution.
public var glassesThreshold: Int
get {
return Int(try! getGlassesThreshold())
}
}
Exceptions
An error has occurred during Face Library execution.
int id3FacePortraitProcessor_GetGlassesThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * glassesThreshold)
int id3FacePortraitProcessor_SetGlassesThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int glassesThreshold)
Returns