FaceDetector.processingUnit Property

Module: FaceDetector

Type: ProcessingUnit

Definition

Processing unit where to run the detection process.

Hint

Default value is CPU.

processing_unit: ProcessingUnit

Exceptions

An error has occurred during Face Library execution.
ProcessingUnit get processingUnit => getProcessingUnit();
set processingUnit(ProcessingUnit value) => setProcessingUnit(value);

Exceptions

An error has occurred during Face Library execution.
public ProcessingUnit processingUnit
{
    get => GetprocessingUnit();
    set => SetprocessingUnit(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public ProcessingUnit getProcessingUnit() throws FaceException
public void setProcessingUnit(ProcessingUnit processingUnit) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var processingUnit: ProcessingUnit
    get {
        return try! getProcessingUnit()
    }
}

Exceptions

An error has occurred during Face Library execution.
int id3FaceDetector_GetProcessingUnit (ID3_FACE_DETECTOR hFaceDetector, id3FaceProcessingUnit * eProcessingUnit)
int id3FaceDetector_SetProcessingUnit (ID3_FACE_DETECTOR hFaceDetector, id3FaceProcessingUnit eProcessingUnit)

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.