blob: b53efa2678e048a9a580d5d7b94d2b4c39530494 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- findpeaks/stats.py
+++ findpeaks/stats.py
@@ -41,11 +41,8 @@
# %% Import cv2
def _import_cv2():
# Only for 2D images required
- try:
- import cv2
- return cv2
- except:
- raise ImportError('cv2 must be installed manually. Try to: <pip install opencv-python> or <pip install opencv-python-headless>')
+ import cv2
+ return cv2
# %% Scaling
|