Package io.scanbot.sdk.barcode
Class BarcodeAccumulationConfiguration
java.lang.Object
io.scanbot.sdk.barcode.BarcodeAccumulationConfiguration
Configuration for how to accumulate results. Frame accumulation is only applied in live mode and when BarcodeSelectionMethod is ALL.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs BarcodeAccumulationConfiguration with default parameters.BarcodeAccumulationConfiguration(int accumulationTime, boolean removeUnconnectedResults, BarcodeAccumulationMethod method) Constructs BarcodeAccumulationConfiguration with the given params. -
Method Summary
Modifier and TypeMethodDescriptionintGetter for accumulationTime field.Getter for method field.booleanGetter for removeUnconnectedResults field.voidsetAccumulationTime(int accumulationTime) Setter for accumulationTime field.voidsetMethod(BarcodeAccumulationMethod method) Setter for method field.voidsetRemoveUnconnectedResults(boolean removeUnconnectedResults) Setter for removeUnconnectedResults field.
-
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
Getter for method field. See constructor documentation for more information about the field.- Returns:
- method
-
setMethod
Setter for method field. See constructor documentation for more information about the field.- Parameters:
method- Value to set.
-