detect method
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([Map<DecodeHintType, Object>? hints]) {
_resultPointCallback = hints?[DecodeHintType.NEED_RESULT_POINT_CALLBACK]
as ResultPointCallback?;
final finder = FinderPatternFinder(_image, _resultPointCallback);
final info = finder.find(hints);
return processFinderPatternInfo(info);
}