$image
$image
<p>Encapsulates logic that can detect a QR Code in an image, even if the QR Code is rotated or skewed, or partially obscured.</p>
calculateModuleSize(mixed $topLeft, mixed $topRight, mixed $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>
mixed | $topLeft | |
mixed | $topRight | |
mixed | $bottomLeft |
module size
findAlignmentInRegion(mixed $overallEstModuleSize, mixed $estAlignmentX, mixed $estAlignmentY, mixed $allowanceFactor) : mixed
<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>
mixed | $overallEstModuleSize | |
mixed | $estAlignmentX | |
mixed | $estAlignmentY | |
mixed | $allowanceFactor |
if an unexpected error occurs during detection
calculateModuleSizeOneWay(mixed $pattern, mixed $otherPattern) : mixed
<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>
mixed | $pattern | |
mixed | $otherPattern |
sizeOfBlackWhiteBlackRunBothWays(mixed $fromX, mixed $fromY, mixed $toX, mixed $toY) : mixed
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>
mixed | $fromX | |
mixed | $fromY | |
mixed | $toX | |
mixed | $toY |
sizeOfBlackWhiteBlackRun(mixed $fromX, mixed $fromY, mixed $toX, mixed $toY) : mixed
<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.
mixed | $fromX | |
mixed | $fromY | |
mixed | $toX | |
mixed | $toY |
computeDimension(mixed $topLeft, mixed $topRight, mixed $bottomLeft, mixed $moduleSize) : mixed
<p>Computes the dimension (number of modules on a size) of the QR Code based on the position of the finder patterns and estimated module size.</p>
mixed | $topLeft | |
mixed | $topRight | |
mixed | $bottomLeft | |
mixed | $moduleSize |