summarylogtreecommitdiffstats
path: root/change_opencv_message.patch
blob: 11878da3ffdd0369898e600fbfb3116c4d49ae8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- findpeaks/stats.py
+++ findpeaks/stats.py
@@ -37,11 +37,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>')
+    import cv2
+    return cv2
 
 
 # %% Scaling