Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To perform barcode recognition, Aspose.BarCode for C++ provides class BarCodeReader that relies on machine vision algorithms. Such algorithms are suitable for parallel execution, and as such, allow speeding up the recognition process by utilizing several CPU cores simultaneously.
To perform multithread barcode reading, class BarCodeReader provides a group of properties called ProcessorSettings that can be used to set all necessary parameters to optimize CPU core usage. Such parameters are initialized globally for all BarCodeReader objects and in most cases do not require additional tuning.
In Aspose.BarCode for C++, multithreading is based on the system parameter called ThreadPool; therefore, to enable efficient use of multithreading, it is necessary to set minimal and maximal values of available cores through system methods SetMinThreads and SetMaxThreads, respectively.
To define multithread recognition settings manually, the following parameters can be used:
In cases when there is a reason not to use additional CPU cores and to perform single-thread barcode recognition, this can be implemented by setting corresponding parameters UseAllCores, UseOnlyThisCoresCount, and MaxAdditionalAllowedThreads of class ProcessorSettings.
To fix the number of CPU cores that can be allocated for barcode recognition, it is required to apply specific settings to multithreading parameters UseAllCores, UseOnlyThisCoresCount, and MaxAdditionalAllowedThreads of class ProcessorSettings.
To set automated allocation of the maximal possible number of cores for barcode recognition, the following settings need to be applied. In this case, class BarCodeReader defines the number of required cores without the need for explicit manual instructions.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.