# getProcessingUnit method

ProcessingUnit getProcessingUnit()

Gets the processing unit where to run the detection process. Hint: Default value is CPU.

return Processing unit where to run the detection process. throws FaceException An error has occurred during Face Library execution.

## Implementation

    ProcessingUnit getProcessingUnit() {
      Pointer<Int32> pProcessingUnit = calloc();
      try {
        var err = faceSDK.id3FaceDetector_GetProcessingUnit(_pHandle.value, pProcessingUnit);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vProcessingUnit = ProcessingUnitX.fromValue(pProcessingUnit.value);
        return vProcessingUnit;
      } finally {
        calloc.free(pProcessingUnit);
      }
    }