detectMulti method
Implementation
List<DetectorResult> detectMulti(Map<DecodeHintType, Object>? hints) {
final resultPointCallback =
hints?[DecodeHintType.NEED_RESULT_POINT_CALLBACK]
as ResultPointCallback?;
final finder = MultiFinderPatternFinder(image, resultPointCallback);
final infos = finder.findMulti(hints);
if (infos.isEmpty) {
throw NotFoundException.instance;
}
final result = <DetectorResult>[];
for (FinderPatternInfo info in infos) {
try {
result.add(processFinderPatternInfo(info));
} on ReaderException catch (_) {
// ignore
}
}
if (result.isEmpty) {
return _EMPTY_DETECTOR_RESULTS;
} else {
return result.toList();
}
}