This commit is contained in:
Louis Calas 2019-10-10 21:04:45 +02:00
parent 9a58743966
commit 8f6e2cb385
4 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import java.util.concurrent.Callable;
import java.util.concurrent.Callable;
import commands.Analyse;
import commands.Build;

View File

@ -145,7 +145,6 @@ public class Read implements Callable <Void> {
}
Config config = new Config(source_path); //Initialise le fichier de configuration selon le chemin donné
config.readConfig();

View File

@ -13,7 +13,7 @@ import java.util.Map;
import org.apache.pdfbox.pdmodel.PDDocument;
public class GestionnaireCopies {
private List<Copie> listeCopie;
@ -56,6 +56,7 @@ public class GestionnaireCopies {
images.addAll(pdfAnalyzer.convertPagesToBWJPG(document,1));
// appelle la methode qui convertit les pages en images (jpg) noir et blanches
document.close();
}
} catch (IOException e) {

View File

@ -1,6 +1,5 @@
package ocr;
import java.awt.image.BufferedImage;
import java.util.logging.Logger;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
@ -21,8 +20,6 @@ import org.apache.pdfbox.rendering.PDFRenderer;
import lecturePdf.Recadrage;
public class PdfToImage {
//Logger.getLogger("org.apache.pdfbox").setLevel(java.util.logging.Level.OFF);
public List<String> listAllFiles(String directory, String extension) {
// https://www.mkyong.com/java/java-how-to-list-all-files-in-a-directory/