setThreadCount method

void setThreadCount(
  1. int threadCount
)

Sets the number of threads to use for OCR. Hint: Default value is 1. Allocating more than 1 thread here can increase the speed of the process.

param threadCount Number of threads to use for OCR. throws DocumentException An error has occurred during Document Library execution.

Implementation

void setThreadCount(int threadCount) {
  var err = documentSDK.id3DocumentReader_SetThreadCount(_pHandle.value, threadCount);
  if (err != DocumentError.success.value) {
    throw DocumentException(err);
  }
}