SyntaxFix
Write A Post
Hire A Developer
Questions
Followings gives dimensions as well as channels:
import numpy as np from PIL import Image with Image.open(filepath) as img: shape = np.array(img).shape