python-3.x - 使用图像更改 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)
解决方案
推荐阅读
- soap - SOAP WebService:soapenv:Server.userExceptionorg.xml.sax.SAXException:坏信封标签:定义
- ssis - 我想在 PackageAuditData 中加载包名称数据。尝试使用带有驱动列的系统变量,但在 ssis 中不起作用
- swift - Objective-C 枚举符合 RawRepresentable
- r - 如何在 R 中对“mm-yyyy”格式进行排序?
- android - 带有 pytorch 的 Android 应用程序
- syntax - 我是否需要在 YAML 中为包含正斜杠 / 的字符串加上引号?
- matlab - MATLAB int32 在第 18 位溢出
- azure - 通过 Terraform 运行 Azure databricks notebook(python)
- custom-element - (一种替代方法)在每个 Svelte 组件的 STYLE 元素中创建动态 CSS
- laravel - 强制浏览器从 laravel 中的外部服务器下载图像文件