public class Settings
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Settings.ThreadingLevelFaceSDK threading level, used to set different number of threads for different levels | 
| Constructor and Description | 
|---|
| Settings() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | setEnableClosedEyesDetection(boolean enabled)Toggles closed eyes detection. | 
| static void | setEnableFaceOcclusionDetection(boolean enabled)Toggles face occlusion detection. | 
| static void | setEnableLogging(boolean enableLogging)Sets whether to enable FaceSDK logging. | 
| static void | setNumThreads(int numThreads,
             Settings.ThreadingLevel threadingLevel)Sets the maximum number of threads available for FaceSDK at the specified level. | 
| static void | setOvBindThreads(boolean ovBindThreads)Sets the CPU bind setting for OpenVINO backend. | 
| static void | setOvMaxBatchSize(int ovMaxBatchSize)Sets the maximum batch size for OpenVINO backend. | 
| static void | setOvNumThroughputStreams(int ovNumThroughputStreams)Sets the number of CPU execution streams for OpenVINO backend. | 
public static void setNumThreads(int numThreads,
                                 Settings.ThreadingLevel threadingLevel)
numThreads - Maximum number of threads available for FaceSDK at the specified levelthreadingLevel - Threading level to apply settingpublic static void setOvNumThroughputStreams(int ovNumThroughputStreams)
ovNumThroughputStreams - Number of CPU execution streams, valid values are -1 (auto-tune
     number of streams), 0 (use the default setting) and any positive value, other values are
     dropped without an errorpublic static void setOvBindThreads(boolean ovBindThreads)
ovBindThreads - Whether to bind execution threads to CPU physical cores or notpublic static void setOvMaxBatchSize(int ovMaxBatchSize)
ovMaxBatchSize - Max batch sizepublic static void setEnableLogging(boolean enableLogging)
enableLogging - Whether to enable logging or notpublic static void setEnableFaceOcclusionDetection(boolean enabled)
Function call is equivalent to setting FACESDK_ENABLE_FACE_OCCLUSION_DETECTION environment variable before loading FaceSDK library. Function call takes precedence over environment variables.
enabled - Whether to enable the detection or notpublic static void setEnableClosedEyesDetection(boolean enabled)
Function call is equivalent to setting FACESDK_ENABLE_CLOSED_EYES_DETECTION environment variable before loading FaceSDK library. Function call takes precedence over environment variables.
enabled - Whether to enable the detection or not