Package | com.distriqt.extension.scanner |
Class | public class ScannerOptions |
Inheritance | ScannerOptions Object |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
Constructor
| ScannerOptions | ||
setSymbologies(symbologies:Array):ScannerOptions
Sets the symbologies to scan for
| ScannerOptions | ||
setXDensity(x_density:int):ScannerOptions
Sets the x scan density
| ScannerOptions | ||
setYDensity(y_density:int):ScannerOptions
Sets the y scan density
| ScannerOptions |
symbologies | property |
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_density | property |
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_density | property |
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
ScannerOptions | () | Constructor |
public function ScannerOptions()
Constructor
setSymbologies | () | method |
public function setSymbologies(symbologies:Array):ScannerOptions
Sets the symbologies to scan for
Parameters
symbologies:Array |
ScannerOptions — ScannerOptions 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
|
ScannerOptions — ScannerOptions 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
|
ScannerOptions — ScannerOptions instance for chaining calls
|
See also