getProcessingUnit method
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 DocumentException An error has occurred during Document Library execution.
Implementation
ProcessingUnit getProcessingUnit() {
Pointer<Int32> pProcessingUnit = calloc();
try {
var err = documentSDK.id3DocumentMrzReader_GetProcessingUnit(_pHandle.value, pProcessingUnit);
if (err != DocumentError.success.value) {
throw DocumentException(err);
}
final vProcessingUnit = ProcessingUnitX.fromValue(pProcessingUnit.value);
return vProcessingUnit;
} finally {
calloc.free(pProcessingUnit);
}
}