detect method

List<UQrDetectorResult> detect({
  1. bool tryHarder = true,
  2. int maxSymbols = 8,
})

Implementation

List<UQrDetectorResult> detect({bool tryHarder = true, int maxSymbols = 8}) {
  final List<UQrFinderInfo> infos = UQrFinderPatternFinder(image).find(tryHarder: tryHarder, maxSymbols: maxSymbols);
  final List<UQrDetectorResult> results = <UQrDetectorResult>[];
  for (final UQrFinderInfo info in infos) {
    try {
      final UQrDetectorResult? result = _processFinderPatternInfo(info);
      if (result != null) results.add(result);
    } catch (_) {
      continue;
    }
  }
  return results;
}