img = cv2.imread('Ball.0.jpg', 0)
img = np.array(img)
print(img.size)
output: 7500
but I want the image size to be [50,50,3] how to do this? The output is 50*50*3=7500
I want it in the format [50, 50, 3] for RGB.
img = cv2.imread('Ball.0.jpg', 0)
img = np.array(img)
print(img.size)
output: 7500
but I want the image size to be [50,50,3] how to do this? The output is 50*50*3=7500
I want it in the format [50, 50, 3] for RGB.