I need a way to iterate quickly through image files and ask for user input at each image. This is for the development of a binary classification training set. Hopefully I will import the images as pims frames such as
frames = pims.ImageSequence("*.jpg",as_grey=True)
Then maybe I can load all of the image files in some kind of sequence with maybe some kind of structure along the lines of (obviously this won't work):
images = [plt.imshow(f) for f in frames]
So that I can do something along the lines of:
classification = []
for i in images:
magic_function_which_plots_image_without_a_delay(i)
value = input()
if value==1:
classification.append(True)
else:
classification.append(False)
So I can have an array of True and False values, one associated with each image. If I do this some thousands of times I hope to have a training set for my binary classification problem. Does anyone know how to view images quickly? Any help is very much appreciated !!