Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import numpy as np
  2. import cv2
  3. from matplotlib import pyplot as plt
  4. while(1):
  5. img=cv2.imread('D:IMG_0590_1.jpg')
  6. ball = img[278:104, 330:158]
  7. img[181:355, 100:274] = ball
  8.  
  9. cv2.imshow('img',img)
  10.  
  11. if cv2.waitKey(10) & 0xFF == ord('q'):
  12. break
  13. cv2.destroyAllWindows()
  14.  
  15. ball = img[278:104, 330:158]
  16.  
  17. ball = img[104:278, 158:330]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement