Packagecom.distriqt.extension.scanner
Classpublic class ScannerOptions
InheritanceScannerOptions Inheritance Object

Scanning options for the scanner interface



Public Properties
 PropertyDefined By
  symbologies : Array
An array containing the symbologies you want to scan for.
ScannerOptions
  x_density : int = 1
The scanner works by making scan passes across the pixel rows and columns of the image.
ScannerOptions
  y_density : int = 1
This y_density controls the number of pixel columns that are skipped between successive vertical scan passes.
ScannerOptions
Public Methods
 MethodDefined By
  
Constructor
ScannerOptions
  
setSymbologies(symbologies:Array):ScannerOptions
Sets the symbologies to scan for
ScannerOptions
  
Sets the x scan density
ScannerOptions
  
Sets the y scan density
ScannerOptions
Property Detail
symbologiesproperty
public var symbologies:Array

An array containing the symbologies you want to scan for. Limiting this to just the codes your application is interested in will improve performance of the scanner.

Note: To enable all symbologies, just leave this array empty.

The default is just QRCODE

x_densityproperty 
public var x_density:int = 1

The scanner works by making scan passes across the pixel rows and columns of the image. The density of the passes is configured at the scanner as a pixel stride for each axis. Setting the stride value to 0 completely disables scanning in that direction. This is very useful when reading linear codes with a visual alignment guide - scanning parallel to the bars is a waste of cycles which may be better applied to support higher resolution or increased density of scans across the symbol. Note that some 2-D symbologies (QR Code) require scans in both directions. In general, 2 to 4 is a good target for the stride setting, unless you have very high or low resolution images. For high resolution QR Codes, we suggest setting this to 1 This x_density controls the number of pixel rows that are skipped between successive horizontal scan passes.

y_densityproperty 
public var y_density:int = 1

This y_density controls the number of pixel columns that are skipped between successive vertical scan passes.

See also

Constructor Detail
ScannerOptions()Constructor
public function ScannerOptions()

Constructor

Method Detail
setSymbologies()method
public function setSymbologies(symbologies:Array):ScannerOptions

Sets the symbologies to scan for

Parameters

symbologies:Array

Returns
ScannerOptionsScannerOptions instance for chaining calls

See also

setXDensity()method 
public function setXDensity(x_density:int):ScannerOptions

Sets the x scan density

Parameters

x_density:int — The x scan density

Returns
ScannerOptionsScannerOptions instance for chaining calls

See also

setYDensity()method 
public function setYDensity(y_density:int):ScannerOptions

Sets the y scan density

Parameters

y_density:int — The y scan density

Returns
ScannerOptionsScannerOptions instance for chaining calls

See also