1 | initial version |
You must set OPENCV_IO_MAX_IMAGE_PIXELS before your script
Microsoft Windows [version 10.0.17763.379]
(c) 2018 Microsoft Corporation. Tous droits réservés.
C:\Users\Laurent>set OPENCV_IO_MAX_IMAGE_PIXELS=50000
C:\Users\Laurent>"f:\Program Files\Python\python.exe"
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2 as cv
>>> cv.imread("g:/lib/opencv/samples/data/lena.jpg")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cv2.error: OpenCV(4.1.0-pre) G:\Lib\opencv\modules\imgcodecs\src\loadsave.cpp:75: error: (-215:Assertion failed) pixels <= CV_IO_MAX_IMAGE_PIXELS in function 'cv::validateInputImageSize'