title: How to read an image and that image copy to another directory?
body: <p>I read an image with OpenCV for processing and copy that image to another directory folder. But I get following error. How can solve this and can copy it perfectly?</p>
  <pre><code>    image_file = os.path.join(&quot;&lt;ROOT_PATH&gt;&quot;, file_)
      image = cv2.imread(image_file, cv2.IMREAD_UNCHANGED)
      image = np.stack([image]*3, axis=-1)  # make image 3-channel
      crop_img = image[int(ymin):int(ymax), int(xmin):int(xmax)]
      plt.imshow(crop_img)
      shutil.copy2(crop_img, &quot;&lt;dst_folder&gt;&quot;)
  </code></pre>
  <p><strong>Error:</strong></p>
  <blockquote>
  <p>TypeError: expected str, bytes or os.PathLike object, not numpy.ndarray</p>
  </blockquote>