cv2 load image from path file code example
Example 1: load img cv2
img = cv2.imread('img.jpg')
Example 2: cv2.imwrite path
import cv2
image = cv2.imread('test_img.jpg')
path ='D:/save_image.jpg'
cv2.imwrite(path,image)
img = cv2.imread('img.jpg')
import cv2
image = cv2.imread('test_img.jpg')
path ='D:/save_image.jpg'
cv2.imwrite(path,image)