public class BarcodeScannerConfig
Entity represents configuration params for interface ScanbotBarcodeDetector
interface ScanbotBarcodeDetectorpublic BarcodeScannerConfig(@NotNull
java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeFormat> barcodeFormats,
@NotNull
java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeDocumentFormat> acceptedDocumentFormats,
boolean highSensitivityEnabled,
boolean disableMlDetector,
boolean saveCameraPreviewFrame,
@NotNull
BarcodeScannerAdditionalConfig additionalConfig)
Entity represents configuration params for interface ScanbotBarcodeDetector
barcodeFormats - List of enum BarcodeFormat to scan. Defaults to BarcodeFormat.COMMON_CODESacceptedDocumentFormats - List of enum BarcodeDocumentFormat to scan. Defaults to empty list,meaning no filtering is done and all formats are accepted.highSensitivityEnabled - Whether high sensitivity scanning mode should be enabled. Defaults to falsedisableMlDetector - Whether ML-based detection should be disabled.
BarcodeDetectorType.ML_BASED uses ML mechanisms. while BarcodeDetectorType.PLAIN might work much faster if it is needed to scan just one QR code or PDF-417 which is clearly visible.
Default is false.
saveCameraPreviewFrame - Whether detector should save a frame with successful detection result.
If true - class BarcodeScanningResult will contain the camera preview frame Bitmap,
otherwise the preview frame will not be collected.
Defaults to false.
additionalConfig - Additional config wrapped into separate entity.interface ScanbotBarcodeDetectorpublic BarcodeScannerConfig()
Entity represents configuration params for interface ScanbotBarcodeDetector
interface ScanbotBarcodeDetector@NotNull public java.util.List<io.scanbot.sdk.barcode.entity.BarcodeFormat> getBarcodeFormats()
List of
enum BarcodeFormat to scan. Defaults to BarcodeFormat.COMMON_CODES
enum BarcodeFormat@NotNull public java.util.List<io.scanbot.sdk.barcode.entity.BarcodeDocumentFormat> getAcceptedDocumentFormats()
List of
enum BarcodeDocumentFormat to scan. Defaults to empty list,meaning no filtering is done and all formats are accepted.
enum BarcodeDocumentFormatpublic boolean getHighSensitivityEnabled()
Whether high sensitivity scanning mode should be enabled.
Defaults to false
public boolean getDisableMlDetector()
Whether ML-based detection should be disabled.
BarcodeDetectorType.ML_BASED uses ML mechanisms. while BarcodeDetectorType.PLAIN might work much faster if it is needed to scan just one QR code or PDF-417 which is clearly visible.
Default is false.
public boolean getSaveCameraPreviewFrame()
Whether detector should save a frame with successful detection result.
If true - class BarcodeScanningResult will contain the camera preview frame Bitmap,
otherwise the preview frame will not be collected.
Defaults to false.
class BarcodeScanningResult,
Bitmap@NotNull public BarcodeScannerAdditionalConfig getAdditionalConfig()
Additional config wrapped into separate entity.
class BarcodeScannerAdditionalConfig@NotNull public java.util.List<io.scanbot.sdk.barcode.entity.BarcodeFormat> component1()
List of
enum BarcodeFormat to scan. Defaults to BarcodeFormat.COMMON_CODES
enum BarcodeFormat@NotNull public java.util.List<io.scanbot.sdk.barcode.entity.BarcodeDocumentFormat> component2()
List of
enum BarcodeDocumentFormat to scan. Defaults to empty list,meaning no filtering is done and all formats are accepted.
enum BarcodeDocumentFormatpublic boolean component3()
Whether high sensitivity scanning mode should be enabled.
Defaults to false
public boolean component4()
Whether ML-based detection should be disabled.
BarcodeDetectorType.ML_BASED uses ML mechanisms. while BarcodeDetectorType.PLAIN might work much faster if it is needed to scan just one QR code or PDF-417 which is clearly visible.
Default is false.
public boolean component5()
Whether detector should save a frame with successful detection result.
If true - class BarcodeScanningResult will contain the camera preview frame Bitmap,
otherwise the preview frame will not be collected.
Defaults to false.
class BarcodeScanningResult,
Bitmap@NotNull public BarcodeScannerAdditionalConfig component6()
Additional config wrapped into separate entity.
class BarcodeScannerAdditionalConfig@NotNull public BarcodeScannerConfig copy(@NotNull java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeFormat> barcodeFormats, @NotNull java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeDocumentFormat> acceptedDocumentFormats, boolean highSensitivityEnabled, boolean disableMlDetector, boolean saveCameraPreviewFrame, @NotNull BarcodeScannerAdditionalConfig additionalConfig)
Entity represents configuration params for interface ScanbotBarcodeDetector
interface ScanbotBarcodeDetector@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)