Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import cv2
  2. img = cv2.imread("paint-horse-running-in-field.jpg")
  3. crop_img = img[y:y+h, x:x+w]
  4. cv2.imshow("paint-horse-running-in-field.jpg", crop_img)
  5. cv2.waitKey(0)
  6.  
  7. The error: import cv2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement