title: is there a python function for reading multiple images from a folder into a single array
body: <p>i am trying to read multiple images from a folder in a single numpy array to feed them to my deep learning model. when i print the shape i get the error message that none type object has no shape. which means that the images were not read by opencv(for jpg)/tifffile(for .tif)My code is as follows</p>
  
  <pre><code>import numpy as np
  import cv2 as cv
  import tifffile as tiff
  
  filepath1 = "D:/Programs/transnet/dataset/train"
  filepath2 = "D:/Programs/transnet/dataset/train_label"
  img = np.ndarray((cv.imread(filepath1 + "*.jpg")))
  clt = np.ndarray((tiff.imread(filepath2 + "*.tif")))
  
  print(img.shape)
  print(clt.shape)
  </code></pre>
  
  <p>I have already tried glob.glob but it doesn't work.
  i am expecting a 4 dimensional array of number of rgb images</p>