public IBarcodeCameraView
Represents camera screen for barcodes scanning
void setListener(@NotNull
io.scanbot.sdk.ui.view.barcode.IBarcodeCameraView.Listener listener)
listener - which will receive callbacks on user interactions.void setCameraOrientationMode(@NotNull
io.scanbot.sdk.ui.view.base.configuration.CameraOrientationMode cameraOrientationMode)
Set camera orientation mode
cameraOrientationMode - CameraOrientationMode.LANDSCAPE or CameraOrientationMode.PORTRAITvoid setCameraModule(@NotNull
io.scanbot.sdk.camera.CameraModule cameraModule)
Set camera module
cameraModule - one of the supported modes - CameraModulevoid setCameraZoomFactor(float zoomFactor)
Set current zoom by a linear zoom value ranging from 0f to 1.0f. LinearZoom 0f represents the minimum zoom while linearZoom 1.0f represents the maximum zoom. Default value is 0f.
zoomFactor - Target zoom factorvoid setCameraZoomRange(@NotNull
io.scanbot.sdk.camera.ZoomRange zoomRange)
Set custom available zoom range. Min value 0f and max value 1.0f. Default value is ZoomRange0f,1f.
void setBarcodeFormatsFilter(@NotNull
java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeFormat> barcodeFormats)
Set barcode format to scan
barcodeFormats - List of BarcodeFormat to scanvoid setAcceptedDocumentFormats(@NotNull
java.util.List<? extends io.scanbot.sdk.barcode.entity.BarcodeDocumentFormat> formats)
Sets list of BarcodeDocumentFormat to scan
formats - accepted document formatsvoid setDetectorType(@NotNull
io.scanbot.sdk.barcode.BarcodeDetectorType type)
Allows to set custom detector type for the barcode detection BarcodeDetectorType.ML_BASED is used by default and uses ML mechanisms to detect the barcode on the frame or BarcodeDetectorType.PLAIN if it is needed to scan just one QR code or PDF-417 which is clearly visible it might work much faster
type - of the detector to usevoid setBarcodeDetector(@NotNull
io.scanbot.sdk.barcode.ScanbotBarcodeDetector scanbotBarcodeDetector)
Set ScanbotBarcodeDetector that performs detection and recognition
void setMinimumTextLength(int minimumTextLength)
Set minimum required text length of the detected barcode. The default value is 0 (the setting is turned off). NOTE: Currently works for ITF barcodes only!
void setMaximumTextLength(int maximumTextLength)
Set maximum text length of the detected barcode. Setting to zero removes the limit. The default value is 0 (the setting is turned off). NOTE: Currently works for ITF barcodes only!
void setMinimum1DQuietZoneSize(int minimum1DQuietZoneSize)
Set minimum required quiet zone on the barcode. Measured in modules (the size of a minimal bar on the barcode). The default value is 10. NOTE: Currently works for ITF barcodes only!
void setGs1DecodingEnabled(boolean gs1DecodingEnabled)
When this set to true, the scanner assumes that the barcode can be a GS1 barcode.
Turn it off, if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29).
The default is true.
NOTE: Currently works for CODE128 barcodes only!