img = img[...,:3]
First, in the code above, many arrays are stored in the img variable.
But I\'m not sure what "img[...,:3]" means.