Spaces:
Sleeping
Sleeping
import cv2 | |
path = '2000.jpg' | |
img = cv2.imread(path) | |
half = img.shape[1] // 2 | |
img = img[:, :half, :] | |
cv2.imwrite('4.jpg', img) | |
import cv2 | |
path = '2000.jpg' | |
img = cv2.imread(path) | |
half = img.shape[1] // 2 | |
img = img[:, :half, :] | |
cv2.imwrite('4.jpg', img) | |