Add test copies final
This commit is contained in:
parent
30c472f263
commit
22c4f54616
BIN
pdf/Template/20191010114705.pdf
Normal file
BIN
pdf/Template/20191010114705.pdf
Normal file
Binary file not shown.
BIN
pdf/Test16Num.pdf
Normal file
BIN
pdf/Test16Num.pdf
Normal file
Binary file not shown.
BIN
pdf/TestBleu.pdf
Normal file
BIN
pdf/TestBleu.pdf
Normal file
Binary file not shown.
BIN
pdf/TestCharInvalides.pdf
Normal file
BIN
pdf/TestCharInvalides.pdf
Normal file
Binary file not shown.
BIN
pdf/TestDecale.pdf
Normal file
BIN
pdf/TestDecale.pdf
Normal file
Binary file not shown.
BIN
pdf/TestFausseTaille.pdf
Normal file
BIN
pdf/TestFausseTaille.pdf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
pdf/TestManuscrit1.pdf
Normal file
BIN
pdf/TestManuscrit1.pdf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
pdf/TestNormal3.pdf
Normal file
BIN
pdf/TestNormal3.pdf
Normal file
Binary file not shown.
BIN
pdf/TestNote100.pdf
Normal file
BIN
pdf/TestNote100.pdf
Normal file
Binary file not shown.
BIN
pdf/TestNote100_2.pdf
Normal file
BIN
pdf/TestNote100_2.pdf
Normal file
Binary file not shown.
BIN
pdf/TestNoteDecimale.pdf
Normal file
BIN
pdf/TestNoteDecimale.pdf
Normal file
Binary file not shown.
BIN
pdf/TestNumVide.pdf
Normal file
BIN
pdf/TestNumVide.pdf
Normal file
Binary file not shown.
BIN
pdf/TestPlace.pdf
Normal file
BIN
pdf/TestPlace.pdf
Normal file
Binary file not shown.
BIN
pdf/TestPolice.pdf
Normal file
BIN
pdf/TestPolice.pdf
Normal file
Binary file not shown.
BIN
pdf/TestQualite1.pdf
Normal file
BIN
pdf/TestQualite1.pdf
Normal file
Binary file not shown.
Binary file not shown.
BIN
pdf/TestRouge.pdf
Normal file
BIN
pdf/TestRouge.pdf
Normal file
Binary file not shown.
@ -48,6 +48,12 @@ public class GenerateCSV {
|
|||||||
}
|
}
|
||||||
logger.debug("String validity ok");
|
logger.debug("String validity ok");
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
} else if (s.length()==0 || s==null){
|
||||||
|
|
||||||
|
logger.fatal("Id not recognized");
|
||||||
|
return false;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
logger.fatal("Student id's length is not correct");
|
logger.fatal("Student id's length is not correct");
|
||||||
return false;
|
return false;
|
||||||
|
@ -15,7 +15,7 @@ public abstract class OCR {
|
|||||||
tesseract.setDatapath("Tess4J");
|
tesseract.setDatapath("Tess4J");
|
||||||
tesseract.setLanguage("eng");
|
tesseract.setLanguage("eng");
|
||||||
//tesseract.setOcrEngineMode(2);
|
//tesseract.setOcrEngineMode(2);
|
||||||
tesseract.setTessVariable("tessedit_char_whitelist","0123456789");
|
tesseract.setTessVariable("tessedit_char_whitelist",",0123456789");
|
||||||
str=tesseract.doOCR(img);
|
str=tesseract.doOCR(img);
|
||||||
} catch (TesseractException e) {
|
} catch (TesseractException e) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user