Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
even more explicit imports
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukashiixo committed Oct 4, 2023
1 parent 904de81 commit 8a7a865
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/src/modules/delete_files.py
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
4 changes: 2 additions & 2 deletions app/src/modules/doublepage_img_rename.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/src/modules/hocr_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions app/src/modules/rotate_and_split_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions app/src/modules/run_tesseract.py
Original file line number Diff line number Diff line change
@@ -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):

Expand Down
4 changes: 2 additions & 2 deletions app/src/modules/singlepage_img_rename.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 8a7a865

Please sign in to comment.