I need to access frames from video by the frame index. So far I used code like this:
video = cv2.VideoCapture(video_path)
status, frame = video.read()
The code reads the first frame. If I use the code repeatedly I will get next frames. But how I can access directly any frame by its index?
In other words, if I want second frame, how can I access directly the second frame without calling read() two times?