Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceDetector.processingUnit Property

Module: FaceDetector

Type: ProcessingUnit

## Definition

Processing unit where to run the detection process.

Hint

Default value is CPU.

Python

    processing_unit: ProcessingUnit

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    ProcessingUnit get processingUnit => getProcessingUnit();
    set processingUnit(ProcessingUnit value) => setProcessingUnit(value);

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public ProcessingUnit processingUnit
    {
        get => GetprocessingUnit();
        set => SetprocessingUnit(ref value);
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public ProcessingUnit getProcessingUnit() throws FaceException
    public void setProcessingUnit(ProcessingUnit processingUnit) throws FaceException

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public var processingUnit: ProcessingUnit
        get {
            return try! getProcessingUnit()
        }
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    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.