DecodeAreaOption

class DecodeAreaOption(val activated: IScannerOption.DecodeArea = DecodeArea.WholeArea) : IScannerOption

Define the way the engine will decode barcodes on the image with DecodeArea.

Constructors

Link copied to clipboard
constructor(activated: IScannerOption.DecodeArea = DecodeArea.WholeArea)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getEnableCommand(): String

Get the command DecodeArea.WholeArea / DecodeArea.SpecifyArea / DecodeArea.Acuread to the DecodeAreaOption

Link copied to clipboard
fun getSetSpecificAreaDecodingCommand(specifyDecodedArea: IScannerOption.SpecificAreaDecoding = SpecificAreaDecoding.TopOfDecodingArea, percent: Int): String

If DecodeArea.SpecifyArea is enabled, the engine only reads barcodes that intersect the predefined decoding area. The default decoding area is an area of 40% top, 60% bottom, 40% left and 60% right of the engine’s field of view. You can define the decoding area using the SpecificAreaDecoding.TopOfDecodingArea, SpecificAreaDecoding.BottomOfDecodingArea, SpecificAreaDecoding.LeftDecodingArea and SpecificAreaDecoding.RightOfDecodingArea barcodes as well as numeric barcode(s) that represent(s) a desired percentage (0-100). The value of Bottom must be greater than that of Top; the value of Right must be greater than that of Left.