I want to read a sequence of images with VideoCapture but all I could find are examples (such as this one) that in the name of the images there's a proper numeration. My images are in the format: img5000.png, img5002.png, img5004.png...
And I can't find a way to read them without recieving errors. Is there a way to do it?
The code I'm working with is like this one:
import cv2
import numpy
cap = cv2.VideoCapture("/path/img5{:03d}.png",cv2.CAP_IMAGES).
while(1):
ret,frame = cap.read()
cv2.imshow('image',frame)
cv2.waitKey()
print(frame.shape