Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- img = cv2.imread("paint-horse-running-in-field.jpg")
- crop_img = img[y:y+h, x:x+w]
- cv2.imshow("paint-horse-running-in-field.jpg", crop_img)
- cv2.waitKey(0)
- The error: import cv2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement