Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import cv2
- from matplotlib import pyplot as plt
- while(1):
- img=cv2.imread('D:IMG_0590_1.jpg')
- ball = img[278:104, 330:158]
- img[181:355, 100:274] = ball
- cv2.imshow('img',img)
- if cv2.waitKey(10) & 0xFF == ord('q'):
- break
- cv2.destroyAllWindows()
- ball = img[278:104, 330:158]
- ball = img[104:278, 158:330]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement