FaceEncoder.processingUnit Property

Module: FaceEncoder

Type: ProcessingUnit

Definition

Processing unit where to run the encoding 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 id3FaceEncoder_GetProcessingUnit (ID3_FACE_ENCODER hFaceEncoder, id3FaceProcessingUnit * eProcessingUnit)
int id3FaceEncoder_SetProcessingUnit (ID3_FACE_ENCODER hFaceEncoder, id3FaceProcessingUnit eProcessingUnit)

Returns

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