com.aspose.barcode.barcoderecognition

Class ProcessorSettings

  • java.lang.Object
    • com.aspose.barcode.barcoderecognition.ProcessorSettings


  • public class ProcessorSettings
    extends java.lang.Object

    Information about using processor cores

    • Constructor Detail

      • ProcessorSettings

        public ProcessorSettings(boolean useAllCores)

        Initialize an instance of ProcessorSettings class

        Parameters:
        useAllCores -
    • Method Detail

      • getUseAllCores

        public boolean getUseAllCores()

        Is needed to use all cores. Compact framework can not determine the number of cores. For compact framework need use field UseOnlyThisCoresCount, to specify the number of cores.


         
         [Java]
         BarCodeReader.getProcessorSettings().getUseAllCores();
         
      • setUseAllCores

        public void setUseAllCores(boolean value)

        Is needed to use all cores. Compact framework can not determine the number of cores. For compact framework need use field UseOnlyThisCoresCount, to specify the number of cores.


         
         [Java]
         BarCodeReader.getProcessorSettings().setUseAllCores(false);
         reader.setManualHints(ManualHint.InvertImage);
         
      • getUseOnlyThisCoresCount

        public int getUseOnlyThisCoresCount()

        Specify the number of cores to use. You need to change the property "UseAllCores" to "false".


         
         [Java]
         BarCodeReader.getProcessorSettings().getUseOnlyThisCoresCount();
         

      • setUseOnlyThisCoresCount

        public void setUseOnlyThisCoresCount(int value)

        Specify the number of cores to use. You need to change the property "UseAllCores" to "false".


         
         [Java]
         BarCodeReader.getProcessorSettings().setUseOnlyThisCoresCount(3);
         

      • getMaxAdditionalAllowedThreads

        public int getMaxAdditionalAllowedThreads()

        Specify the maximal number of additional threads to run code in parallel


         
         [Java]
         BarCodeReader.getProcessorSettings().getMaxAdditionalAllowedThreads();
         

      • setMaxAdditionalAllowedThreads

        public void setMaxAdditionalAllowedThreads(int value)

        Specify the maximal number of additional threads to run code in parallel


         
         [Java]
         BarCodeReader.getProcessorSettings().setMaxAdditionalAllowedThreads(24);