mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-15 07:09:55 +02:00
allow even more empty imports for optional dependencies
This commit is contained in:
parent
51e9bfd6d7
commit
c01609ff4e
2 changed files with 11 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
import matplotlib.pyplot as plt
|
try:
|
||||||
import matplotlib.patches as mpatches
|
import matplotlib.pyplot as plt
|
||||||
|
import matplotlib.patches as mpatches
|
||||||
|
except ImportError:
|
||||||
|
plt = mpatches = None
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import os.path
|
import os.path
|
||||||
import cv2
|
import cv2
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
|
import time
|
||||||
import math
|
import math
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
try:
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
except ImportError:
|
||||||
|
plt = None
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from shapely import geometry
|
from shapely import geometry
|
||||||
import cv2
|
import cv2
|
||||||
import imutils
|
import imutils
|
||||||
from scipy.signal import find_peaks
|
from scipy.signal import find_peaks
|
||||||
from scipy.ndimage import gaussian_filter1d
|
from scipy.ndimage import gaussian_filter1d
|
||||||
import time
|
|
||||||
from .is_nan import isNaN
|
from .is_nan import isNaN
|
||||||
from .contour import (contours_in_same_horizon,
|
from .contour import (contours_in_same_horizon,
|
||||||
find_new_features_of_contours,
|
find_new_features_of_contours,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue