title: Python/Opencv save multiple images to folder with different names
body: <p>I am working on image processing, I have a folder with all of the images that needs to be processed, and I want to save all the processed images to another folder. How do I do that?</p>
  <pre><code>for img in glob.glob(&quot;Img/*.png&quot;):
      path = '/result'
      image = cv2.imread(img)
      angle, rotated = correct_skew(image)
      print(angle)
      cv2.imwrite(os.path.join(path , 'img.png'), rotated)
      cv2.waitKey(1)
  </code></pre>
  <p>This code can read the image and process it, but I can't figure out how to save all the images with different names, like I want it to be img1.png, img2.png, etc.</p>
  <p>Or is there anyway that I can save the images to another folder with the same names as before?</p>