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.Analyse;
import commands.Build; 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 config = new Config(source_path); //Initialise le fichier de configuration selon le chemin donné
config.readConfig(); config.readConfig();

View File

@ -56,6 +56,7 @@ public class GestionnaireCopies {
images.addAll(pdfAnalyzer.convertPagesToBWJPG(document,1)); images.addAll(pdfAnalyzer.convertPagesToBWJPG(document,1));
// appelle la methode qui convertit les pages en images (jpg) noir et blanches // appelle la methode qui convertit les pages en images (jpg) noir et blanches
document.close();
} }
} catch (IOException e) { } catch (IOException e) {

View File

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