QRExtendedParameters
QRExtendedParameters class
Stores a QR Structured Append information of recognized barcode
new QRExtendedParameters()
Example:
//This sample shows how to get QR Structured Append data
let reader = new BarCodeReader("test.png", null, DecodeType.QR);
let results = reader.readBarCodes();
for(let i = 0; i < results.length; i++)
{
let result = results[i];
console.log("BarCode Type: " + result.getCodeTypeName());
console.log("BarCode CodeText: " + result.getCodeText());
console.log("QR Structured Append Quantity: " + result.getExtended().getQR().getQRStructuredAppendModeBarCodesQuantity());
console.log("QR Structured Append Index: " + result.getExtended().getQR().getQRStructuredAppendModeBarCodeIndex());
console.log("QR Structured Append ParityData: " + result.getExtended().getQR().getQRStructuredAppendModeParityData());
}
Methods
| Name | Description |
|---|---|
| equals(obj) | Returns a value indicating whether this instance is equal to a specified QRExtendedParameters value. |
| getErrorLevel() | Reed-Solomon error correction level of recognized barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. |
| getMicroQRVersion() | Version of recognized MicroQR Code. From M1 to M4. |
| getQRErrorLevel() | Reed-Solomon error correction level of recognized barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. |
| getQRStructuredAppendModeBarCodeIndex() | Gets the index of the QR structured append mode barcode. Index starts from 0. Default value is -1.Value: The quantity of |
| getQRStructuredAppendModeBarCodesQuantity() | Gets the QR structured append mode barcodes quantity. Default value is -1.Value: The quantity of the QR structured appen |
| getQRStructuredAppendModeParityData() | Gets the QR structured append mode parity data. Default value is -1.Value: The index of the QR structured append mode ba |
| getQRVersion() | Version of recognized QR Code. From Version1 to Version40. |
| getRectMicroQRVersion() | Version of recognized RectMicroQR Code. From R7x43 to R17x139. |
| getStructuredAppendModeBarCodeIndex() | Gets the index of the QR structured append mode barcode. Index starts from 0. Default value is -1. Value: The quantity o |
| getStructuredAppendModeBarCodesQuantity() | Gets the QR structured append mode barcodes quantity. Default value is -1. Value: The quantity of the QR structured appe |
| getStructuredAppendModeParityData() | Gets the QR structured append mode parity data. Default value is -1. Value: The index of the QR structured append mode b |
| getVersion() | Version of recognized QR Code. From Version1 to Version40. |
| hashCode() | Returns the hash code for this instance. |
| isEmpty() | Tests whether all parameters has only default values Value |
| toString() | Returns a human-readable string representation of this QRExtendedParameters. |
equals(obj)
Returns a value indicating whether this instance is equal to a specified QRExtendedParameters value.
| Parameter | Description |
|---|---|
| obj | An object value to compare to this instance. |
Returns: true if obj has the same value as this instance; otherwise, false.
getErrorLevel()
Reed-Solomon error correction level of recognized barcode. From low to high: LevelL, LevelM, LevelQ, LevelH.
getMicroQRVersion()
Version of recognized MicroQR Code. From M1 to M4.
Returns: Version of recognized MicroQR Code. From M1 to M4.
getQRErrorLevel()
Deprecated. See method description for replacement.
Reed-Solomon error correction level of recognized barcode. From low to high: LevelL, LevelM, LevelQ, LevelH.
Returns: Reed-Solomon error correction level of recognized barcode.
getQRStructuredAppendModeBarCodeIndex()
Deprecated. See method description for replacement.
Gets the index of the QR structured append mode barcode. Index starts from 0. Default value is -1.Value: The quantity of the QR structured append mode barcode.
getQRStructuredAppendModeBarCodesQuantity()
Deprecated. See method description for replacement.
Gets the QR structured append mode barcodes quantity. Default value is -1.Value: The quantity of the QR structured append mode barcode.
getQRStructuredAppendModeParityData()
Deprecated. See method description for replacement.
Gets the QR structured append mode parity data. Default value is -1.Value: The index of the QR structured append mode barcode.
getQRVersion()
Deprecated. See method description for replacement.
Version of recognized QR Code. From Version1 to Version40.
Returns: Version of recognized QR Code
getRectMicroQRVersion()
Version of recognized RectMicroQR Code. From R7x43 to R17x139.
Returns: Version of recognized RectMicroQR Code
getStructuredAppendModeBarCodeIndex()
Gets the index of the QR structured append mode barcode. Index starts from 0. Default value is -1. Value: The quantity of the QR structured append mode barcode.
Returns: the index of the QR structured append mode barcode.
getStructuredAppendModeBarCodesQuantity()
Gets the QR structured append mode barcodes quantity. Default value is -1. Value: The quantity of the QR structured append mode barcode.
Returns: the QR structured append mode barcodes quantity.
getStructuredAppendModeParityData()
Gets the QR structured append mode parity data. Default value is -1. Value: The index of the QR structured append mode barcode.
Returns: the QR structured append mode parity data.
getVersion()
Version of recognized QR Code. From Version1 to Version40.
hashCode()
Returns the hash code for this instance.
Returns: A 32-bit signed integer hash code.
isEmpty()
Tests whether all parameters has only default values Value
Returns: true if all parameters has only default values; otherwise, false .
toString()
Returns a human-readable string representation of this QRExtendedParameters.
Returns: A string that represents this QRExtendedParameters.