diff --git a/app/src/modules/delete_files.py b/app/src/modules/delete_files.py index cd62382..e7b0838 100644 --- a/app/src/modules/delete_files.py +++ b/app/src/modules/delete_files.py @@ -1,6 +1,6 @@ import os from pathlib import Path -from modules.is_image import is_image as IsImage +from app.src.modules.is_image import is_image as IsImage rootfolder = './' txt_file = Path('./TesseractOutput/less_mistakes.txt') diff --git a/app/src/modules/doublepage_img_rename.py b/app/src/modules/doublepage_img_rename.py index 3f341a0..6af3c71 100644 --- a/app/src/modules/doublepage_img_rename.py +++ b/app/src/modules/doublepage_img_rename.py @@ -1,8 +1,8 @@ from pathlib import Path -from modules.is_image import is_image as IsImage +from app.src.modules.is_image import is_image as IsImage import os import shutil -from modules.functions_ui import ProgressCounter +from app.src.modules.functions_ui import ProgressCounter import re from natsort import os_sorted diff --git a/app/src/modules/hocr_parser.py b/app/src/modules/hocr_parser.py index 98acf6c..e5f5a84 100644 --- a/app/src/modules/hocr_parser.py +++ b/app/src/modules/hocr_parser.py @@ -2,7 +2,7 @@ from docx.shared import Pt from pathlib import Path from bs4 import BeautifulSoup -from modules.functions_ui import ProgressCounter +from app.src.modules.functions_ui import ProgressCounter output_file = Path('./TesseractOutput/to_be_parsed.docx') hocr_xml = Path('./TesseractOutput/output.xml') diff --git a/app/src/modules/rotate_and_split_image.py b/app/src/modules/rotate_and_split_image.py index 0926c8e..65c063c 100644 --- a/app/src/modules/rotate_and_split_image.py +++ b/app/src/modules/rotate_and_split_image.py @@ -2,8 +2,8 @@ import cv2 import time from pathlib import Path -from modules.is_image import is_image as IsImage -from modules.functions_ui import ProgressCounter +from app.src.modules.is_image import is_image as IsImage +from app.src.modules.functions_ui import ProgressCounter # Set the path to the root directory containing the folder with images rootfolder = './SplitterInput' diff --git a/app/src/modules/run_tesseract.py b/app/src/modules/run_tesseract.py index 9005931..cccca67 100644 --- a/app/src/modules/run_tesseract.py +++ b/app/src/modules/run_tesseract.py @@ -1,9 +1,9 @@ from pathlib import Path import pytesseract import cv2 -from modules.is_image import is_image as IsImage +from app.src.modules.is_image import is_image as IsImage from about_time import about_time -from modules.functions_ui import round_seconds +from app.src.modules.functions_ui import round_seconds def run_tesseract(psm_nr=3): diff --git a/app/src/modules/singlepage_img_rename.py b/app/src/modules/singlepage_img_rename.py index 4912771..ee20641 100644 --- a/app/src/modules/singlepage_img_rename.py +++ b/app/src/modules/singlepage_img_rename.py @@ -1,8 +1,8 @@ from pathlib import Path -from modules.is_image import is_image as IsImage +from app.src.modules.is_image import is_image as IsImage import os import shutil -from modules.functions_ui import ProgressCounter +from app.src.modules.functions_ui import ProgressCounter import re from natsort import os_sorted