setProcessingUnit method
- ProcessingUnit processingUnit
Sets the processing unit where to run the detection process. Hint: Default value is CPU.
param processingUnit Processing unit where to run the detection process. throws FaceException An error has occurred during Face Library execution.
Implementation
void setProcessingUnit(ProcessingUnit processingUnit) {
var err = faceSDK.id3FaceDetector_SetProcessingUnit(_pHandle.value, processingUnit.value);
if (err != FaceError.success.value) {
throw FaceException(err);
}
}