File size: 127 Bytes
ce847a6
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import cv2

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