why ignore crossCheckDiagonal when NOT"PURE_BARCODE"
RelicOfTesla opened this issue · comments
RelicOfTesla commented
Dose not work some picture.... Debug and found the diffrent run logic at this code
...
public class FinderPatternFinder {
....
protected final boolean handlePossibleCenter(
....
if (!Float.isNaN(centerJ) && crossCheckDiagonal((int) centerI, (int) centerJ)) {
class FinderPatternFinder
{
....
final public function find($hints)
{
....
$pureBarcode = $hints != null && $hints['PURE_BARCODE'];
....
if (!is_nan($centerJ) &&
(!$pureBarcode || $this->crossCheckDiagonal((int)($centerI), (int)($centerJ), $stateCount[2], $stateCountTotal))
) {
Was skip some crossCheckDiagonal logic...and dose not work at some picture..