Skip to content

Commit 3cff5ac

Browse files
author
Ruslan Yarullin
committed
fix detector
1 parent 3a382b1 commit 3cff5ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Qrcode/Detector/FinderPatternFinder.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ public function __construct($image, $resultPointCallback = null)
5959

6060
final public function find($hints)
6161
{/*final FinderPatternInfo find(Map<DecodeHintType,?> hints) throws NotFoundException {*/
62-
// $tryHarder = $hints != null && $hints['TRY_HARDER'];
63-
$tryHarder = true;
62+
$tryHarder = true;//$hints != null && $hints['TRY_HARDER'];
6463
$pureBarcode = $hints != null && $hints['PURE_BARCODE'];
6564
$maxI = $this->image->getHeight();
6665
$maxJ = $this->image->getWidth();
@@ -101,7 +100,7 @@ final public function find($hints)
101100
if ($confirmed) {
102101
// Start examining every other line. Checking each line turned out to be too
103102
// expensive and didn't improve performance.
104-
$iSkip = 2;
103+
$iSkip = 3;
105104
if ($this->hasSkipped) {
106105
$done = $this->haveMultiplyConfirmedCenters();
107106
} else {

0 commit comments

Comments
 (0)