ROI 怎样才能转成一张图片?

tony2278 2018-12-22 08:45:56
s1 = cv2.imread(image_path, 0)
y1 = 0
x1 = 0
print(s1.shape)
height, width = s1.shape
cropImg1 = s1[int(y1):int(y1 + height), int(x1):int(x1 + width)]


请问cropImg1 怎样才能使用 imwrite() 保存成图像?cropImg2 怎样才能转成一张图片?谢谢
...全文
273 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
tony2278 2018-12-24
  • 打赏
  • 举报
回复
是 python。
  • 打赏
  • 举报
回复
这是啥?python?
tony2278 2018-12-22
  • 打赏
  • 举报
回复
cv2.imread() ---- Image.open() 互转
tony2278 2018-12-22
  • 打赏
  • 举报
回复
region = s2.crop(x2, y2, x2 + height, y2 + width) ? cv2.imwrite('book-jz.jpg', region)

1,185

社区成员

发帖
与我相关
我的任务
社区描述
Delphi GAME,图形处理/多媒体
社区管理员
  • GAME,图形处理/多媒体社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧