detect method

DetectorResult detect([
  1. DecodeHint? hints
])

Detects a QR Code in an image.

@param hints optional hints to detector @return DetectorResult encapsulating results of detecting a QR Code @throws NotFoundException if QR Code cannot be found @throws FormatException if a QR Code cannot be decoded

Implementation

DetectorResult detect([DecodeHint? hints]) {
  _resultPointCallback = hints?.needResultPointCallback;

  final finder = FinderPatternFinder(_image, _resultPointCallback);
  final info = finder.find(hints);

  return processFinderPatternInfo(info);
}