\Zxing\QrcodeQRCodeReader

This implementation can detect and decode QR Codes in an image.

Summary

Methods
Properties
Constants
__construct()
decode()
reset()
No public properties found
No constants found
getDecoder()
No protected properties found
N/A
extractPureBits()
moduleSize()
$NO_POINTS
$decoder
N/A

Properties

$NO_POINTS

$NO_POINTS

$decoder

$decoder

Methods

__construct()

__construct() : mixed

Returns

mixed —

decode()

decode(mixed  $image, mixed  $hints = null) : \Zxing\Qrcode\a

Locates and decodes a QR code in an image.

Parameters

mixed $image
mixed $hints

Throws

\Zxing\NotFoundException

if a QR code cannot be found

\Zxing\FormatException

if a QR code cannot be decoded

\Zxing\ChecksumException

if error correction fails

Returns

\Zxing\Qrcode\a —

String representing the content encoded by the QR code

reset()

reset() : mixed

Returns

mixed —

getDecoder()

getDecoder() : mixed

Returns

mixed —

extractPureBits()

extractPureBits(mixed  $image) : mixed

This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it. This is a specialized method that works exceptionally fast in this special case.

Parameters

mixed $image

Returns

mixed —

moduleSize()

moduleSize(mixed  $leftTopBlack, mixed  $image) : mixed

Parameters

mixed $leftTopBlack
mixed $image

Returns

mixed —