社区
GAME,图形处理/多媒体
帖子详情
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 怎样才能转成一张图片?谢谢
...全文
319
4
打赏
收藏
ROI 怎样才能转成一张图片?
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 怎样才能转成一张图片?谢谢
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
tony2278
2018-12-24
打赏
举报
回复
是 python。
日立奔腾浪潮微软松下联想
2018-12-24
打赏
举报
回复
这是啥?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)
RoI
Pooling 和
RoI
Align
RoI
Pooling 和
RoI
Align一、基本概念 一、基本概念
RoI
(Region of Interest)是通过不同区域选择方法,从原始图像(original image)得到的候选区域(proposal region)
Matlab
图片
的
ROI
选择
Matlab
图片
的
ROI
选择 目标:利用Matlab进行
图片
的
ROI
标注,并保存。 Matlab代码: clc clear all; close all; %% open a picture [filename, filepath] = uigetfile({'*.jpg;*....
鼠标在
图片
上画矩形(
ROI
)区域并保存
ROI
区域
#include <iostream> #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" using namespace std; using namespace cv; bool draw; Mat src;...
OpenCV 学习(四)之 将
图片
插入另
一张
图片
中的实现(
ROI
)
/** * 将
一张
图片
插入另一种
图片
中 */ static void exam2() { Mat image = Imgcodecs.imread("./images/Lena.jpg"); Mat logo = Imgcodecs.imread("./images/logo2.jpg"); ...
Opencv
图片
ROI
与
图片
融合
背景:做项目时候导师希望设置图像
ROI
,然后将处理的结果合并到原图像上,这里面有两个问题(1)如何
ROI
(2)如何融合不说别的,上代码:#include #include #include using namespace cv;int main(){ //namedWindow("main"); Mat srcImage = imread("../opencv_
ROI
_test/tes
GAME,图形处理/多媒体
1,184
社区成员
14,330
社区内容
发帖
与我相关
我的任务
GAME,图形处理/多媒体
Delphi GAME,图形处理/多媒体
复制链接
扫一扫
分享
社区描述
Delphi GAME,图形处理/多媒体
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章