mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-08 11:49:55 +02:00
rfct: reorganize imports some more
This commit is contained in:
parent
a707455ec6
commit
9d6fc72d20
2 changed files with 9 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
*.egg-info
|
*.egg-info
|
||||||
__pycache__
|
__pycache__
|
||||||
|
sbb_newspapers_org_image/pylint.log
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
|
|
||||||
|
"""
|
||||||
|
tool to extract table form data from alto xml data
|
||||||
|
"""
|
||||||
|
|
||||||
import gc
|
import gc
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
|
@ -15,16 +19,16 @@ import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import seaborn as sns
|
import seaborn as sns
|
||||||
|
|
||||||
environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
|
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
|
||||||
stderr = sys.stderr
|
stderr = sys.stderr
|
||||||
sys.stderr = open(devnull, "w")
|
sys.stderr = open(os.devnull, "w")
|
||||||
from keras import backend as K
|
from keras import backend as K
|
||||||
from keras.models import load_model
|
from keras.models import load_model
|
||||||
|
|
||||||
sys.stderr = stderr
|
sys.stderr = stderr
|
||||||
import tensorflow as tf
|
import tensorflow as tf
|
||||||
|
|
||||||
tf.get_logger().setLevel("ERROR")
|
tf.get_logger().setLevel("ERROR")
|
||||||
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
from scipy.signal import find_peaks
|
from scipy.signal import find_peaks
|
||||||
from scipy.ndimage import gaussian_filter1d
|
from scipy.ndimage import gaussian_filter1d
|
||||||
from shapely import geometry
|
from shapely import geometry
|
||||||
|
@ -34,11 +38,6 @@ from matplotlib import pyplot, transforms
|
||||||
import matplotlib.patches as mpatches
|
import matplotlib.patches as mpatches
|
||||||
import imutils
|
import imutils
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
|
||||||
#
|
|
||||||
__doc__ = """
|
|
||||||
tool to extract table form data from alto xml data
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class eynollah:
|
class eynollah:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue