\Zxing\Qrcode\DecoderDecoder

<p>The main class which implements QR Code decoding -- as opposed to locating and extracting the QR Code from an image.</p>

Summary

Methods
Properties
Constants
__construct()
decode()
decodeImage()
decodeBits()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
decodeParser()
correctErrors()
$rsDecoder
N/A

Properties

$rsDecoder

$rsDecoder

Methods

__construct()

__construct() : mixed

Returns

mixed —

decode()

decode(mixed  $variable, mixed  $hints = null) : mixed

Parameters

mixed $variable
mixed $hints

Returns

mixed —

decodeImage()

decodeImage(array  $image, mixed  $hints = null) : \Zxing\Qrcode\Decoder\text

<p>Convenience method that can decode a QR Code represented as a 2D array of booleans.

"true" is taken to mean a black module.

Parameters

array $image

booleans representing white/black QR Code modules

mixed $hints

Throws

\Zxing\FormatException

if the QR Code cannot be decoded

\Zxing\ChecksumException

if error correction fails

Returns

\Zxing\Qrcode\Decoder\text —

and bytes encoded within the QR Code

decodeBits()

decodeBits(\Zxing\Common\BitMatrix  $bits, mixed  $hints = null) : \Zxing\Qrcode\Decoder\text

<p>Decodes a QR Code represented as a {@link BitMatrix}. A 1 or "true" is taken to mean a black module.</p>

Parameters

\Zxing\Common\BitMatrix $bits

booleans representing white/black QR Code modules

mixed $hints

Throws

\Zxing\FormatException

if the QR Code cannot be decoded

\Zxing\ChecksumException

if error correction fails

Returns

\Zxing\Qrcode\Decoder\text —

and bytes encoded within the QR Code

decodeParser()

decodeParser(mixed  $parser, mixed  $hints = null) : mixed

Parameters

mixed $parser
mixed $hints

Returns

mixed —

correctErrors()

correctErrors(mixed  $codewordBytes, mixed  $numDataCodewords) : mixed

<p>Given data and error-correction codewords received, possibly corrupted by errors, attempts to correct the errors in-place using Reed-Solomon error correction.</p>

Parameters

mixed $codewordBytes
mixed $numDataCodewords

Throws

\Zxing\ChecksumException

if error correction fails

Returns

mixed —