Answers for "cv2 write image to folder"

4

cv2 write image python

# Filename
filename = 'savedImage.jpg'
  
# Using cv2.imwrite() method
# Saving the image
cv2.imwrite(filename, img)
Posted by: Guest on April-06-2021
0

cv2.imwrite save to folder

import cv2
import os
img = cv2.imread('1.jpg', 1)
path = 'D:/OpenCV/Scripts/Images'
cv2.imwrite(os.path.join(path , 'waka.jpg'), img)
cv2.waitKey(0)
Posted by: Guest on April-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language