mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-15 19:09:58 +02:00
mbreorder/enhancment: fix missing imports
(not sure if these models really need that, though)
This commit is contained in:
parent
027b87d321
commit
096def1e9d
3 changed files with 6 additions and 8 deletions
|
@ -6,23 +6,23 @@ from logging import Logger
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
import atexit
|
|
||||||
from functools import partial
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from multiprocessing import cpu_count
|
|
||||||
import gc
|
import gc
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ocrd_utils import getLogger, tf_disable_interactive_logs
|
from ocrd_utils import getLogger, tf_disable_interactive_logs
|
||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
from skimage.morphology import skeletonize
|
from skimage.morphology import skeletonize
|
||||||
from tensorflow.keras.models import load_model
|
from tensorflow.keras.models import load_model
|
||||||
|
|
||||||
from .utils.resize import resize_image
|
from .utils.resize import resize_image
|
||||||
from .utils.pil_cv2 import pil2cv
|
from .utils.pil_cv2 import pil2cv
|
||||||
from .utils import (
|
from .utils import (
|
||||||
is_image_filename,
|
is_image_filename,
|
||||||
crop_image_inside_box
|
crop_image_inside_box
|
||||||
)
|
)
|
||||||
|
from .eynollah import PatchEncoder, Patches
|
||||||
|
|
||||||
DPI_THRESHOLD = 298
|
DPI_THRESHOLD = 298
|
||||||
KERNEL = np.ones((5, 5), np.uint8)
|
KERNEL = np.ones((5, 5), np.uint8)
|
||||||
|
|
|
@ -6,25 +6,24 @@ from logging import Logger
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
import atexit
|
|
||||||
from functools import partial
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from multiprocessing import cpu_count
|
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from ocrd_utils import getLogger
|
from ocrd_utils import getLogger
|
||||||
import statistics
|
import statistics
|
||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
from tensorflow.keras.models import load_model
|
from tensorflow.keras.models import load_model
|
||||||
from .utils.resize import resize_image
|
|
||||||
|
|
||||||
|
from .utils.resize import resize_image
|
||||||
from .utils.contour import (
|
from .utils.contour import (
|
||||||
find_new_features_of_contours,
|
find_new_features_of_contours,
|
||||||
return_contours_of_image,
|
return_contours_of_image,
|
||||||
return_parent_contours,
|
return_parent_contours,
|
||||||
)
|
)
|
||||||
from .utils import is_xml_filename
|
from .utils import is_xml_filename
|
||||||
|
from .eynollah import PatchEncoder, Patches
|
||||||
|
|
||||||
DPI_THRESHOLD = 298
|
DPI_THRESHOLD = 298
|
||||||
KERNEL = np.ones((5, 5), np.uint8)
|
KERNEL = np.ones((5, 5), np.uint8)
|
||||||
|
|
|
@ -2,6 +2,5 @@ def test_utils_import():
|
||||||
import eynollah.utils
|
import eynollah.utils
|
||||||
import eynollah.utils.contour
|
import eynollah.utils.contour
|
||||||
import eynollah.utils.drop_capitals
|
import eynollah.utils.drop_capitals
|
||||||
import eynollah.utils.drop_capitals
|
|
||||||
import eynollah.utils.is_nan
|
import eynollah.utils.is_nan
|
||||||
import eynollah.utils.rotate
|
import eynollah.utils.rotate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue