Class BarcodeAccumulationConfiguration

java.lang.Object
io.scanbot.sdk.barcode.BarcodeAccumulationConfiguration

public class BarcodeAccumulationConfiguration extends Object
Configuration for how to accumulate results. Frame accumulation is only applied in live mode and when BarcodeSelectionMethod is ALL.
  • Constructor Details

    • BarcodeAccumulationConfiguration

      public BarcodeAccumulationConfiguration(int accumulationTime, boolean removeUnconnectedResults, BarcodeAccumulationMethod method)
      Constructs BarcodeAccumulationConfiguration with the given params.
      Parameters:
      accumulationTime - The time in milliseconds to accumulate barcodes across multiple frames. Default is `500`.
      removeUnconnectedResults - If true, the results from previous frames that are not connected to results on the current frame will be removed. This is should be enabled when large camera movements are expected. For small camera movements, the option can be disabled. Default is `true`.
      method - The method how to display barcodes from previous frames. Default is `INTERPOLATE_BY_CAMERA`.
    • BarcodeAccumulationConfiguration

      public BarcodeAccumulationConfiguration()
      Constructs BarcodeAccumulationConfiguration with default parameters.
  • Method Details

    • getAccumulationTime

      public int getAccumulationTime()
      Getter for accumulationTime field. See constructor documentation for more information about the field.
      Returns:
      accumulationTime
    • setAccumulationTime

      public void setAccumulationTime(int accumulationTime)
      Setter for accumulationTime field. See constructor documentation for more information about the field.
      Parameters:
      accumulationTime - Value to set.
    • getRemoveUnconnectedResults

      public boolean getRemoveUnconnectedResults()
      Getter for removeUnconnectedResults field. See constructor documentation for more information about the field.
      Returns:
      removeUnconnectedResults
    • setRemoveUnconnectedResults

      public void setRemoveUnconnectedResults(boolean removeUnconnectedResults)
      Setter for removeUnconnectedResults field. See constructor documentation for more information about the field.
      Parameters:
      removeUnconnectedResults - Value to set.
    • getMethod

      public BarcodeAccumulationMethod getMethod()
      Getter for method field. See constructor documentation for more information about the field.
      Returns:
      method
    • setMethod

      public void setMethod(BarcodeAccumulationMethod method)
      Setter for method field. See constructor documentation for more information about the field.
      Parameters:
      method - Value to set.