#!/usr/bin/env python3
# -*- coding:utf-8 -*-
import cv2
import numpy as np

img = cv2.imread('test.jpg')

print("shape",img.shape)
print("size",img.size)
print("dtype", img.dtype)

# y0,y1,x0,x1
ball=img[500:580,330:390]
img[0:80,740:800]=ball

cv2.imshow("img",img)
while True:
    if cv2.waitKey(20) == 27 :
        break


#px = img[100]
#print(px)
#blue = img[100,100,0]