C# Класс ZXing.PDF417.Internal.PDF417ScanningDecoder

Показать файл Открыть проект

Открытые методы

Метод Описание
ToString ( ZXing.PDF417.Internal.BarcodeValue barcodeMatrix ) : String

Returns a System.String that represents the ZXing.PDF417.Internal.BarcodeValue jagged array.

decode ( BitMatrix image, ResultPoint imageTopLeft, ResultPoint imageBottomLeft, ResultPoint imageTopRight, ResultPoint imageBottomRight, int minCodewordWidth, int maxCodewordWidth ) : ZXing.Common.DecoderResult

Decode the specified image, imageTopLeft, imageBottomLeft, imageTopRight, imageBottomRight, minCodewordWidth and maxCodewordWidth. TODO: don't pass in minCodewordWidth and maxCodewordWidth, pass in barcode columns for start and stop pattern columns. That way width can be deducted from the pattern column. This approach also allows to detect more details about the barcode, e.g. if a bar type (white or black) is wider than it should be. This can happen if the scanner used a bad blackpoint.

Приватные методы

Метод Описание
adjustBoundingBox ( DetectionResultRowIndicatorColumn rowIndicatorColumn ) : BoundingBox

Adjusts the bounding box.

adjustCodewordCount ( ZXing.PDF417.Internal.DetectionResult detectionResult, ZXing.PDF417.Internal.BarcodeValue barcodeMatrix ) : bool

Adjusts the codeword count.

adjustCodewordStartColumn ( BitMatrix image, int minColumn, int maxColumn, bool leftToRight, int codewordStartColumn, int imageRow ) : int

Adjusts the codeword start column.

checkCodewordSkew ( int codewordSize, int minCodewordWidth, int maxCodewordWidth ) : bool

Checks the codeword for any skew.

correctErrors ( int codewords, int erasures, int numECCodewords ) : int

Given data and error-correction codewords received, possibly corrupted by errors, attempts to correct the errors in-place.

createBarcodeMatrix ( ZXing.PDF417.Internal.DetectionResult detectionResult ) : ZXing.PDF417.Internal.BarcodeValue[][]

Creates the barcode matrix.

createDecoderResult ( ZXing.PDF417.Internal.DetectionResult detectionResult ) : ZXing.Common.DecoderResult

Creates the decoder result.

createDecoderResultFromAmbiguousValues ( int ecLevel, int codewords, int erasureArray, int ambiguousIndexes, int ambiguousIndexValues ) : ZXing.Common.DecoderResult

This method deals with the fact, that the decoding process doesn't always yield a single most likely value. The current error correction implementation doesn't deal with erasures very well, so it's better to provide a value for these ambiguous codewords instead of treating it as an erasure. The problem is that we don't know which of the ambiguous values to choose. We try decode using the first value, and if that fails, we use another of the ambiguous values and try to decode again. This usually only happens on very hard to read and decode barcodes, so decoding the normal barcodes is not affected by this.

decodeCodewords ( int codewords, int ecLevel, int erasures ) : ZXing.Common.DecoderResult

Decodes the codewords.

detectCodeword ( BitMatrix image, int minColumn, int maxColumn, bool leftToRight, int startColumn, int imageRow, int minCodewordWidth, int maxCodewordWidth ) : ZXing.PDF417.Internal.Codeword

Detects the codeword.

getBarcodeMetadata ( DetectionResultRowIndicatorColumn leftRowIndicatorColumn, DetectionResultRowIndicatorColumn rightRowIndicatorColumn ) : ZXing.PDF417.Internal.BarcodeMetadata

Gets the barcode metadata.

getBitCountForCodeword ( int codeword ) : int[]

Gets the bit count for codeword.

getCodewordBucketNumber ( int codeword ) : int

Gets the codeword bucket number.

getMax ( int values ) : int
getModuleBitCount ( BitMatrix image, int minColumn, int maxColumn, bool leftToRight, int startColumn, int imageRow ) : int[]

Gets the module bit count.

getNumberOfECCodeWords ( int barcodeECLevel ) : int

Gets the number of EC code words.

getRowIndicatorColumn ( BitMatrix image, BoundingBox boundingBox, ResultPoint startPoint, bool leftToRight, int minCodewordWidth, int maxCodewordWidth ) : DetectionResultRowIndicatorColumn

Gets the row indicator column.

getStartColumn ( ZXing.PDF417.Internal.DetectionResult detectionResult, int barcodeColumn, int imageRow, bool leftToRight ) : int

Gets the start column.

isValidBarcodeColumn ( ZXing.PDF417.Internal.DetectionResult detectionResult, int barcodeColumn ) : bool

Tests to see if the Barcode Column is Valid

merge ( DetectionResultRowIndicatorColumn leftRowIndicatorColumn, DetectionResultRowIndicatorColumn rightRowIndicatorColumn ) : ZXing.PDF417.Internal.DetectionResult

Merge the specified leftRowIndicatorColumn and rightRowIndicatorColumn.

verifyCodewordCount ( int codewords, int numECCodewords ) : bool

Verifies that all is well with the the codeword array.

Описание методов

ToString() публичный статический Метод

Returns a System.String that represents the ZXing.PDF417.Internal.BarcodeValue jagged array.
public static ToString ( ZXing.PDF417.Internal.BarcodeValue barcodeMatrix ) : String
barcodeMatrix ZXing.PDF417.Internal.BarcodeValue Barcode matrix as a jagged array.
Результат String

decode() публичный статический Метод

Decode the specified image, imageTopLeft, imageBottomLeft, imageTopRight, imageBottomRight, minCodewordWidth and maxCodewordWidth. TODO: don't pass in minCodewordWidth and maxCodewordWidth, pass in barcode columns for start and stop pattern columns. That way width can be deducted from the pattern column. This approach also allows to detect more details about the barcode, e.g. if a bar type (white or black) is wider than it should be. This can happen if the scanner used a bad blackpoint.
public static decode ( BitMatrix image, ResultPoint imageTopLeft, ResultPoint imageBottomLeft, ResultPoint imageTopRight, ResultPoint imageBottomRight, int minCodewordWidth, int maxCodewordWidth ) : ZXing.Common.DecoderResult
image ZXing.Common.BitMatrix Image.
imageTopLeft ResultPoint Image top left.
imageBottomLeft ResultPoint Image bottom left.
imageTopRight ResultPoint Image top right.
imageBottomRight ResultPoint Image bottom right.
minCodewordWidth int Minimum codeword width.
maxCodewordWidth int Max codeword width.
Результат ZXing.Common.DecoderResult