kaveh commited on
Commit
6ec4b59
·
1 Parent(s): 1d4bac8

tiff warning fix

Browse files
Files changed (1) hide show
  1. experiments/__init__.py +5 -0
experiments/__init__.py CHANGED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import os
2
+
3
+ # The bright-field TIFFs carry ImageJ/Fiji metadata tags (50838/50839) that OpenCV does not know and
4
+ # reports as warnings on every read. They are harmless; silence them before cv2 is imported anywhere.
5
+ os.environ.setdefault("OPENCV_LOG_LEVEL", "ERROR")