import numpy as np
import cv2 as cv
img = cv.imread('Ronaldo2.jpg')
assert img is not None, '文件无法读取,使用os.path.exists()检查'
ball = img[280:340, 330:390]
img[273:333, 100:160] = ball
cv.imshow('Image', img)
cv.waitKey(0)
cv.destroyAllWindows()
ROI.zip ROI.zip
需积分: 0 131 浏览量
2024-04-15
21:20:29
上传
评论
收藏 182KB ZIP 举报
ssst、
- 粉丝: 374
- 资源: 42