OpenCV won't accept large image (over 1 GB) Attempted changing the path variable and it still won't accept the image

Viewed 33

So I am trying to read some very large files into opencv using cv2.imread(image_path). However open cv returns the error "error: (-215:Assertion failed) pixels <= CV_IO_MAX_IMAGE_PIXELS in function 'cv::validateInputImageSize'".

I have tried using os.environ["OPENCV_IO_MAX_IMAGE_PIXELS"] = pow(2,30).__str__() as suggested in other threads but I still get the same error. I am at a loss as to how to adjust the maximum pixel values, any help would be very appreciated.

0 Answers
Related