import cv2 count=0 while True: frame=cv2.imread(f'./imagesMQZ/frame534.jpeg') count+=1 cv2.imshow('Frame', frame) cv2.waitKey(0) # Wait for a key press to close the window cv2.destroyAllWindows()