I am slicing an image using Python's split_image package.
from split_image import split_image
img = "path\to\input\image"
split_image(img, 4, 2, False, False, open("\path\to\output\images", "w"))
Essentially, the above code should read the input image, split it into 8 parts and write the set of sliced images to a folder. However, I get the following error:
[Errno 13] Permission denied: "\path\to\output\images".
Is there a workaround for this problem?