debug method
Implementation
debug(String s, ParseAlgorithm alg, void Function(OcrMrzResult res) onFoundMrz) {
final ocr = OcrData(text: s, lines: s.split("\n").map((oc) => OcrLine(text: oc, cornerPoints: [])).toList());
switch (alg) {
case ParseAlgorithm.method1:
handleOcrNew(ocr, onFoundMrz, OcrMrzSetting(), [], null, []);
return;
case ParseAlgorithm.method2:
handleOcr(ocr, onFoundMrz, OcrMrzSetting(), [], null, []);
case ParseAlgorithm.method3:
handleOcr3(ocr, onFoundMrz, OcrMrzSetting(), [], null, []);
}
}