diff --git a/pdf/Template/20191010114705.pdf b/pdf/Template/20191010114705.pdf new file mode 100644 index 0000000..0f0954b Binary files /dev/null and b/pdf/Template/20191010114705.pdf differ diff --git a/pdf/Test16Num.pdf b/pdf/Test16Num.pdf new file mode 100644 index 0000000..8543075 Binary files /dev/null and b/pdf/Test16Num.pdf differ diff --git a/pdf/TestBleu.pdf b/pdf/TestBleu.pdf new file mode 100644 index 0000000..867d300 Binary files /dev/null and b/pdf/TestBleu.pdf differ diff --git a/pdf/TestCharInvalides.pdf b/pdf/TestCharInvalides.pdf new file mode 100644 index 0000000..5b37940 Binary files /dev/null and b/pdf/TestCharInvalides.pdf differ diff --git a/pdf/TestDecale.pdf b/pdf/TestDecale.pdf new file mode 100644 index 0000000..2ad698e Binary files /dev/null and b/pdf/TestDecale.pdf differ diff --git a/pdf/TestFausseTaille.pdf b/pdf/TestFausseTaille.pdf new file mode 100644 index 0000000..a0491cc Binary files /dev/null and b/pdf/TestFausseTaille.pdf differ diff --git a/pdf/TestIdentique1.pdf b/pdf/TestIdentique1.pdf index 6fda462..a68c9c0 100644 Binary files a/pdf/TestIdentique1.pdf and b/pdf/TestIdentique1.pdf differ diff --git a/pdf/TestIdentique2.pdf b/pdf/TestIdentique2.pdf index c45ef74..ac2353f 100644 Binary files a/pdf/TestIdentique2.pdf and b/pdf/TestIdentique2.pdf differ diff --git a/pdf/TestManuscrit1.pdf b/pdf/TestManuscrit1.pdf new file mode 100644 index 0000000..7037de5 Binary files /dev/null and b/pdf/TestManuscrit1.pdf differ diff --git a/pdf/TestNormal.pdf b/pdf/TestNormal.pdf index 245772e..4d39179 100644 Binary files a/pdf/TestNormal.pdf and b/pdf/TestNormal.pdf differ diff --git a/pdf/TestNormal2.pdf b/pdf/TestNormal2.pdf index c70000f..4fc0aaf 100644 Binary files a/pdf/TestNormal2.pdf and b/pdf/TestNormal2.pdf differ diff --git a/pdf/TestNormal3.pdf b/pdf/TestNormal3.pdf new file mode 100644 index 0000000..4a4cf94 Binary files /dev/null and b/pdf/TestNormal3.pdf differ diff --git a/pdf/TestNote100.pdf b/pdf/TestNote100.pdf new file mode 100644 index 0000000..3250a19 Binary files /dev/null and b/pdf/TestNote100.pdf differ diff --git a/pdf/TestNote100_2.pdf b/pdf/TestNote100_2.pdf new file mode 100644 index 0000000..c449095 Binary files /dev/null and b/pdf/TestNote100_2.pdf differ diff --git a/pdf/TestNoteDecimale.pdf b/pdf/TestNoteDecimale.pdf new file mode 100644 index 0000000..a893638 Binary files /dev/null and b/pdf/TestNoteDecimale.pdf differ diff --git a/pdf/TestNumVide.pdf b/pdf/TestNumVide.pdf new file mode 100644 index 0000000..9737cc2 Binary files /dev/null and b/pdf/TestNumVide.pdf differ diff --git a/pdf/TestPlace.pdf b/pdf/TestPlace.pdf new file mode 100644 index 0000000..97431bd Binary files /dev/null and b/pdf/TestPlace.pdf differ diff --git a/pdf/TestPolice.pdf b/pdf/TestPolice.pdf new file mode 100644 index 0000000..4435213 Binary files /dev/null and b/pdf/TestPolice.pdf differ diff --git a/pdf/TestQualite1.pdf b/pdf/TestQualite1.pdf new file mode 100644 index 0000000..e13c1f9 Binary files /dev/null and b/pdf/TestQualite1.pdf differ diff --git a/pdf/TestRetourne.pdf b/pdf/TestRetourne.pdf index 01a8be2..7b88833 100644 Binary files a/pdf/TestRetourne.pdf and b/pdf/TestRetourne.pdf differ diff --git a/pdf/TestRouge.pdf b/pdf/TestRouge.pdf new file mode 100644 index 0000000..f0900c7 Binary files /dev/null and b/pdf/TestRouge.pdf differ diff --git a/src/csv/GenerateCSV.java b/src/csv/GenerateCSV.java index b02de71..07a1df5 100644 --- a/src/csv/GenerateCSV.java +++ b/src/csv/GenerateCSV.java @@ -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; diff --git a/src/ocr/OCR.java b/src/ocr/OCR.java index 469ca4b..55925fc 100644 --- a/src/ocr/OCR.java +++ b/src/ocr/OCR.java @@ -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) {