1、方法1:参考链接
os.environ["OPENCV_IO_ENABLE_OPENEXR"]="1"
2、方法2:参考链接
OPENCV_IO_ENABLE_OPENEXR=1 python my_script.py