Package io.scanbot.sdk.barcode
Class BarcodeAccumulationConfiguration
- java.lang.Object
-
- io.scanbot.sdk.barcode.BarcodeAccumulationConfiguration
-
public class BarcodeAccumulationConfiguration extends java.lang.ObjectConfiguration for how to accumulate results.
-
-
Constructor Summary
Constructors Constructor Description BarcodeAccumulationConfiguration()Constructs BarcodeAccumulationConfiguration with default parameters.BarcodeAccumulationConfiguration(int minConfirmationsStandaloneEAN, int maximumNumberOfAccumulatedFrames, boolean removeUnconnectedResults, BarcodeAccumulationMethod method)Constructs BarcodeAccumulationConfiguration with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaximumNumberOfAccumulatedFrames()Getter for maximumNumberOfAccumulatedFrames field.BarcodeAccumulationMethodgetMethod()Getter for method field.intgetMinConfirmationsStandaloneEAN()Getter for minConfirmationsStandaloneEAN field.booleangetRemoveUnconnectedResults()Getter for removeUnconnectedResults field.voidsetMaximumNumberOfAccumulatedFrames(int maximumNumberOfAccumulatedFrames)Setter for maximumNumberOfAccumulatedFrames field.voidsetMethod(BarcodeAccumulationMethod method)Setter for method field.voidsetMinConfirmationsStandaloneEAN(int minConfirmationsStandaloneEAN)Setter for minConfirmationsStandaloneEAN field.voidsetRemoveUnconnectedResults(boolean removeUnconnectedResults)Setter for removeUnconnectedResults field.
-
-
-
Constructor Detail
-
BarcodeAccumulationConfiguration
public BarcodeAccumulationConfiguration(int minConfirmationsStandaloneEAN, int maximumNumberOfAccumulatedFrames, boolean removeUnconnectedResults, BarcodeAccumulationMethod method)Constructs BarcodeAccumulationConfiguration with the given params.- Parameters:
minConfirmationsStandaloneEAN- In case that ean/upc both with and without extensions are allowed, we require confirmations to consider a standalone EAN or UPC (i.e. without extension) as valid. Default is 2maximumNumberOfAccumulatedFrames- Maximum number of accumulated frames to inspect to verify a scan result. Default is 5removeUnconnectedResults- 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 truemethod- The method how to display barcodes from previous frames. Default is INTERPOLATE_BY_CAMERA
-
BarcodeAccumulationConfiguration
public BarcodeAccumulationConfiguration()
Constructs BarcodeAccumulationConfiguration with default parameters.
-
-
Method Detail
-
getMinConfirmationsStandaloneEAN
public int getMinConfirmationsStandaloneEAN()
Getter for minConfirmationsStandaloneEAN field. See constructor documentation for more information about the field.- Returns:
- minConfirmationsStandaloneEAN
-
setMinConfirmationsStandaloneEAN
public void setMinConfirmationsStandaloneEAN(int minConfirmationsStandaloneEAN)
Setter for minConfirmationsStandaloneEAN field. See constructor documentation for more information about the field.- Parameters:
minConfirmationsStandaloneEAN- Value to set.
-
getMaximumNumberOfAccumulatedFrames
public int getMaximumNumberOfAccumulatedFrames()
Getter for maximumNumberOfAccumulatedFrames field. See constructor documentation for more information about the field.- Returns:
- maximumNumberOfAccumulatedFrames
-
setMaximumNumberOfAccumulatedFrames
public void setMaximumNumberOfAccumulatedFrames(int maximumNumberOfAccumulatedFrames)
Setter for maximumNumberOfAccumulatedFrames field. See constructor documentation for more information about the field.- Parameters:
maximumNumberOfAccumulatedFrames- 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.
-
-