summarylogtreecommitdiffstats
path: root/change_opencv_message.patch
blob: 1505607b6f5f6303e4eba6e0ef5cced5ce333512 (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 or the light version opencv-python-headless>')
+    import cv2
+    return cv2
 
 
 # %% Scaling