$image
$image :
detect( $hints = null) : \Zxing\Qrcode\Detector\{@link
<p>Detects a QR Code in an image.</p>
$hints |
if QR Code cannot be found
if a QR Code cannot be decoded
DetectorResult} encapsulating results of detecting a QR Code
calculateModuleSize( $topLeft, $topRight, $bottomLeft) : \Zxing\Qrcode\Detector\estimated
<p>Computes an average estimated module size based on estimated derived from the positions of the three finder patterns.</p>
$topLeft | ||
$topRight | ||
$bottomLeft |
module size
findAlignmentInRegion( $overallEstModuleSize, $estAlignmentX, $estAlignmentY, $allowanceFactor) : \Zxing\Qrcode\Detector\{@link
<p>Attempts to locate an alignment pattern in a limited region of the image, which is guessed to contain it. This method uses {@link AlignmentPattern}.</p>
$overallEstModuleSize | ||
$estAlignmentX | ||
$estAlignmentY | ||
$allowanceFactor |
if an unexpected error occurs during detection
AlignmentPattern} if found, or null otherwise
calculateModuleSizeOneWay( $pattern, $otherPattern)
<p>Estimates module size based on two finder patterns -- it uses {@link #sizeOfBlackWhiteBlackRunBothWays(int, int, int, int)} to figure the width of each, measuring along the axis between their centers.</p>
$pattern | ||
$otherPattern |
sizeOfBlackWhiteBlackRunBothWays( $fromX, $fromY, $toX, $toY)
See {@link #sizeOfBlackWhiteBlackRun(int, int, int, int)}; computes the total width of a finder pattern by looking for a black-white-black run from the center in the direction of another po$(another finder pattern center), and in the opposite direction too.</p>
$fromX | ||
$fromY | ||
$toX | ||
$toY |
sizeOfBlackWhiteBlackRun( $fromX, $fromY, $toX, $toY)
<p>This method traces a line from a po$in the image, in the direction towards another point.
It begins in a black region, and keeps going until it finds white, then black, then white again. It reports the distance from the start to this point.
This is used when figuring out how wide a finder pattern is, when the finder pattern may be skewed or rotated.
$fromX | ||
$fromY | ||
$toX | ||
$toY |