\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 : 

Type

Methods

__construct()

__construct() 

decode()

decode(  $variable,   $hints = null) 

Parameters

$variable
$hints

decodeImage()

decodeImage(array  $image,   $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

$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,   $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

$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(  $parser,   $hints = null) 

Parameters

$parser
$hints

correctErrors()

correctErrors(  $codewordBytes,   $numDataCodewords) 

<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

$codewordBytes
$numDataCodewords

Throws

\Zxing\ChecksumException

if error correction fails