首页 > 解决方案 > 使用图像更改 image_1 的 roi(图像区域),而不会丢失 image_1 中的其他像素

问题描述

pant x1,x2,y1,y2 的图像是腿的坐标
pantalon_end = PANTALON[x11:y11,x22:y22] pantalon_end = cv2.resize(pantalon_end,(59,76)) avatar_end = AVATAR avatar_end2 = avatar_end[x1:y1,x2:y2] = pantalon_end

在代码中我是 AVATAR 图像中的其他像素我如何保存其他像素并更改区域(x1:y1,x2:y2)

标签: python-3.ximagenumpyopencvimage-processing

解决方案


推荐阅读