I am displaying a bunch of image frames using this code snippet below:
import cv2 
from IPython import embed
import os
import glob
file_list = ['/home/Sep28',
'/home/Sep21', 
'/home/Sep29',
]
count = 0 
for i in file_list:
             file_names = glob.glob(i+"/kinect_rgb/*")
             file_names.sort()
             print "found"
             for j in file_names:
                img = cv2.imread(j)
                img = img[200:600,100:500]
                cv2.imshow("cropped",img)
                cv2.waitKey(50)
                count = count + 1 
Whenever I am displaying them, the video does not flow in order, it looks like once in three frames and older frame gets inserted. I am not sure as to what could be the reason.
- My images look totally fine inside the folder
- I print the file names and they don't seem to repeat as well.
 
    