title: warning can't open/read file: check file path/integrity
body: <pre><code>images_per_class = 80
  fixed_size       = tuple((500, 500))
  train_path       = &quot;dataset/train&quot;
  
  train_labels = os.listdir(train_path)
  for training_name in train_labels:
  dir = os.path.join(train_path, training_name)
  current_label = training_name
     for x in range(1,images_per_class+1):
      # get the image file name
      file = dir + &quot;/&quot; + str(x) + &quot;.jpg&quot;
  
      # read the image and resize it to a fixed-size
      image = cv2.imread(file)
      image = cv2.resize(image, fixed_size)
  </code></pre>
  <p>when i run this code it appeare this error</p>
  <pre><code>error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
  </code></pre>
  <p>and this warning <code>[ WARN:0@19.045] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('dataset/train\Apple/1.jpg'): can't open/read file: check file path/integrity</code></p>
  <p>i dont have probleme with installation of opencv because i use it before andwith another code it fonctionne any help please</p>