Add test copies final

This commit is contained in:
Louis Calas
2019-10-10 23:18:55 +02:00
parent 30c472f263
commit 22c4f54616
23 changed files with 7 additions and 1 deletions

View File

@@ -48,6 +48,12 @@ public class GenerateCSV {
}
logger.debug("String validity ok");
return true;
} else if (s.length()==0 || s==null){
logger.fatal("Id not recognized");
return false;
} else {
logger.fatal("Student id's length is not correct");
return false;

View File

@@ -15,7 +15,7 @@ public abstract class OCR {
tesseract.setDatapath("Tess4J");
tesseract.setLanguage("eng");
//tesseract.setOcrEngineMode(2);
tesseract.setTessVariable("tessedit_char_whitelist","0123456789");
tesseract.setTessVariable("tessedit_char_whitelist",",0123456789");
str=tesseract.doOCR(img);
} catch (TesseractException e) {