I have a trouble which didn't have knowledge how to crop all of the images with specific crop size setting and need loop it to all the images within the folder. once done, let it export to new folder or maybe can set a custom directory path.
I have tried some of the example which i found but it's single file read, only can preview the cropped image (not save) and need manually edit the path.
import cv2
y=0
x=0
h=1000
w=1356
crop = image[y:y+h, x:x+w]
cv2.imshow('Image', crop)
cv2.waitKey(0)
I not sure is there any code could be reference and be used.