title: How to load images from a folder in sequence based on the number on the images name
body: <p>I want to make a program to show images 1 by 1 every second based on the frame number in <strong>sequence</strong> (the images come from a video and i already change it into images .jpg with 292 frames), but there's some error that make my program to show it 1 by 1 but <strong>not</strong> in sequence, sometimes its jumped (from frame 1 to 100) and sometimes its not.</p>
  
  <pre><code>import glob
  import cv2
  
  img_location = 
  'E:\\User\\Programming\\Python\\Work\\asd\\*.jpg'
  img_loc = sorted(glob.glob(img_location))
  for img in img_loc:
      print('processing %s...' % img,)
      img = cv2.imread(img, 0)
      cv2.imshow("img",img)
      cv2.waitKey(250)
  </code></pre>