import os
import cv2
image = cv2.imread('img1.jpg')
cropImg = image[int(302-150):int(302+150), int(278-150):int(278+150)]
cv2.imwrite('crop1.jpg', cropImg)
import os
import cv2
image = cv2.imread('img1.jpg')
cropImg = image[int(302-150):int(302+150), int(278-150):int(278+150)]
cv2.imwrite('crop1.jpg', cropImg)