public class BarDecoderRecognizerSettings extends RecognizerSettings
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<BarDecoderRecognizerSettings> |
CREATOR |
mNativeContext| Constructor and Description |
|---|
BarDecoderRecognizerSettings() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAutoScaleDetectionEnabled() |
boolean |
isInverseScanMode() |
boolean |
isTryingHarder() |
void |
setAutoScaleDetection(boolean autoScaleDetection)
Allow enabling the autodetection of image scale when scanning barcodes.
|
void |
setInverseScanning(boolean inverseBarcodeScanning) |
void |
setScanCode128(boolean scanCode128) |
void |
setScanCode39(boolean scanCode39) |
void |
setTryHarder(boolean tryHarder) |
boolean |
shouldScanCode128() |
boolean |
shouldScanCode39() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
describeContents, finalize, getNativeContext, isEnabled, requiresAutofocus, requiresLandscapeMode, setEnabledpublic static final android.os.Parcelable.Creator<BarDecoderRecognizerSettings> CREATOR
public boolean shouldScanCode128()
public void setScanCode128(boolean scanCode128)
scanCode128 - whether or not Code128 barcode should be scannedpublic boolean shouldScanCode39()
public void setScanCode39(boolean scanCode39)
scanCode39 - whether or not Code39 barcode should be scannedpublic void setInverseScanning(boolean inverseBarcodeScanning)
inverseBarcodeScanning - Enables scanning of barcodes with inverse intensity values
(e.g. white barcode on black background)public boolean isInverseScanMode()
public void setAutoScaleDetection(boolean autoScaleDetection)
autoScaleDetection - If set to true, prior reading barcode, image scale will be
corrected. This enabled correct reading of barcodes on high
resolution images but slows down the recognition process.public boolean isAutoScaleDetectionEnabled()
public void setTryHarder(boolean tryHarder)
tryHarder - Enables scanning of lower resolution barcodes at cost of additional processing time.public boolean isTryingHarder()
public void writeToParcel(android.os.Parcel dest,
int flags)