From 35eecdeb45d3ea131bc9b9c21c119ddc6fa62711 Mon Sep 17 00:00:00 2001 From: srowen Date: Sat, 17 Dec 2011 00:45:50 +0000 Subject: [PATCH] Add result point callback to multi QR code detector git-svn-id: https://zxing.googlecode.com/svn/trunk@2090 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- .../google/zxing/multi/qrcode/detector/MultiDetector.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java b/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java index 3300e7fea..f55272eda 100644 --- a/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java +++ b/core/src/com/google/zxing/multi/qrcode/detector/MultiDetector.java @@ -19,6 +19,7 @@ package com.google.zxing.multi.qrcode.detector; import com.google.zxing.DecodeHintType; import com.google.zxing.NotFoundException; import com.google.zxing.ReaderException; +import com.google.zxing.ResultPointCallback; import com.google.zxing.common.BitMatrix; import com.google.zxing.common.DetectorResult; import com.google.zxing.qrcode.detector.Detector; @@ -45,7 +46,9 @@ public final class MultiDetector extends Detector { public DetectorResult[] detectMulti(Map hints) throws NotFoundException { BitMatrix image = getImage(); - MultiFinderPatternFinder finder = new MultiFinderPatternFinder(image); + ResultPointCallback resultPointCallback = + hints == null ? null : (ResultPointCallback) hints.get(DecodeHintType.NEED_RESULT_POINT_CALLBACK); + MultiFinderPatternFinder finder = new MultiFinderPatternFinder(image, resultPointCallback); FinderPatternInfo[] infos = finder.findMulti(hints); if (infos.length == 0) {