I have a file where there are 600 images, I want to convert them at once to greyscale
images = [cv2.imread(file) for file in glob.glob("/Users/ad/Desktop/theimages/*.png")]
images_grey=[]
for i in range [0,600]:
images_grey.append (cv2.cvtColor(images[i], cv2.COLOR_BGR2GRAY) )
print(images_grey)
but I get
TypeError: 'type' object is not subscriptable