Bootstrap

OpenCV入门:ROI感兴趣区域(鼠标事件选定区域)

OpenCV入门:ROI感兴趣区域(鼠标事件选定区域)

OpenCV入门:ROI感兴趣区域(鼠标事件选定区域)

博客 http://blog.csdn.net/qq_23968185/article/details/51335291


 
 
  1. #include <iostream>
  2. #include "opencv2/core/core.hpp"
  3. #include "opencv2/imgproc/imgproc.hpp"
  4. #include "opencv2/highgui/highgui.hpp"
  5. using namespace std;
  6. using namespace cv;
  7. bool draw;
  8. Mat src; //原始图像
  9. Mat roi; //ROI图像
  10. Point cursor; //初始坐标
  11. Rect rect; //标记ROI的矩形框
  12. /*
  13. void onMouse(int event, int x, int y, int flags, void *param);
  14. 第一个参数,鼠标操作时间的整数代号,在opencv中,event鼠标事件总共有10中,从0-9依次代表如下:
  15. EVENT_MOUSEMOVE =0, //滑动
  16. EVENT_LBUTTONDOWN =1, //左键点击
  17. EVENT_RBUTTONDOWN =2, //右键点击
  18. EVENT_MBUTTONDOWN =3, //中间点击
  19. EVENT_LBUTTONUP =4, //左键释放
  20. EVENT_RBUTTONUP =5, //右键释放
  21. EVENT_MBUTTONUP =6, //中间释放
  22. EVENT_LBUTTONDBLCLK =7, //左键双击
  23. EVENT_RBUTTONDBLCLK =8, //右键双击
  24. EVENT_MBUTTONDBLCLK =9 //中间释放
  25. 第二个参数,代表鼠标位于窗口的(x,y)坐标位置,窗口左上角默认为原点,向右为x轴,向下为y轴;
  26. 第三个参数,代表鼠标的拖拽事件,以及键盘鼠标联合事件,总共有32种事件,这里不再赘述。
  27. 第四个参数,函数参数的编号。
  28. */
  29. void onMouse(int event, int x, int y, int flags, void *param)
  30. {
  31. Mat img = src.clone();
  32. switch (event)
  33. {
  34. //按下鼠标左键
  35. case CV_EVENT_LBUTTONDOWN:
  36. //点击鼠标图像时,清除之前ROI图像的显示窗口
  37. cvDestroyWindow( "ROI");
  38. //存放起始坐标
  39. cursor = Point(x, y);
  40. //初始化起始矩形框
  41. rect = Rect(x, y, 0, 0);
  42. draw = true;
  43. break;
  44. //松开鼠标左键
  45. case CV_EVENT_LBUTTONUP:
  46. if (rect.height > 0 && rect.width > 0)
  47. {
  48. //将img中的矩形区域复制给roi,并显示在SignROI窗口
  49. roi = img(Rect(rect.x, rect.y, rect.width, rect.height));
  50. rectangle(img, rect, Scalar( 0, 0, 255), 2);
  51. namedWindow( "SignROI");
  52. imshow( "SignROI", img);
  53. //将画过矩形框的图像用原图像还原
  54. src.copyTo(img);
  55. imshow( "SrcImage", img);
  56. //显示ROI图像
  57. namedWindow( "ROI");
  58. imshow( "ROI", roi);
  59. waitKey( 0);
  60. }
  61. draw = false;
  62. break;
  63. //移动光标
  64. case CV_EVENT_MOUSEMOVE:
  65. if (draw)
  66. {
  67. //用MIN得到左上点作为矩形框的起始坐标,如果不加这个,画矩形时只能向一个方向进行
  68. rect.x = MIN(x, cursor.x);
  69. rect.y = MIN(y, cursor.y);
  70. rect.width = abs(cursor.x - x);
  71. rect.height = abs(cursor.y - y);
  72. //防止矩形区域超出图像的范围
  73. rect &= Rect( 0, 0, src.cols, src.rows);
  74. }
  75. break;
  76. }
  77. }
  78. int main()
  79. {
  80. src = imread( "C:\\Users\\Phajaan\\Desktop\\bylw\\opencv\\男枪.jpg");
  81. if (src.data == 0)
  82. {
  83. cout << "图片不存在" << endl;
  84. return -1;
  85. }
  86. namedWindow( "SrcImage");
  87. imshow( "SrcImage", src);
  88. /*
  89. void setMouseCallback(const string& winname, MouseCallback onMouse, void* userdata=0 );
  90. Parameters:
  91. 第一个参数,windows视窗名称,对名为winname的视窗进行鼠标监控;
  92. 第二个参数,鼠标响应处理函数,监听鼠标的点击,移动,松开,判断鼠标的操作类型,并进行响应的函数处理;
  93. 第三个参数,鼠标响应处理函数的ID,与鼠标相应处理函数相匹配就行,暂时只用到默认为0的情况。
  94. */
  95. setMouseCallback( "SrcImage", onMouse, NULL);
  96. waitKey();
  97. return 0;
  98. }

效果图:


        <div class="recommend-box"><div class="recommend-item-box type_blog clearfix" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_30248399/article/details/95618837&quot;,&quot;strategy&quot;:&quot;BlogCommendFromMachineLearnPai2&quot;,&quot;index&quot;:&quot;0&quot;}">
<div class="content" style="width: 712px;">
	<a href="https://blog.csdn.net/weixin_30248399/article/details/95618837" target="_blank" rel="noopener" title="Opencv在视频中静态、动态方式绘制矩形框ROI">
	<h4 class="text-truncate oneline" style="width: 552px;">
			<em>Opencv</em>在视频中静态、动态方式绘制矩形框<em>ROI</em>		</h4>
	<div class="info-box d-flex align-content-center">
		<p class="date-and-readNum oneline">
			<span class="date hover-show">09-14</span>
			<span class="read-num hover-hide">
				阅读数 
				39</span>
			</p>
		</div>
	</a>
	<p class="content" style="width: 712px;">
		<a href="https://blog.csdn.net/weixin_30248399/article/details/95618837" target="_blank" rel="noopener" title="Opencv在视频中静态、动态方式绘制矩形框ROI">
			<span class="desc oneline">Opencv视频处理中的目标跟踪经常用到要在视频上画一个矩形框ROI,标注出要跟踪的物体,这里介绍两种在视频中绘制矩形框的方法,一种是“静态的”,一种是“动态的”。静态的是指在绘制过程中,视频暂停播放...</span>
		</a>
		<span class="blog_title_box oneline ">
								<span class="type-show type-show-blog type-show-after">博文</span>
										<a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_30248399">来自:	<span class="blog_title"> weixin_30248399的博客</span></a>
											</span>
	</p>
</div>
</div>
<div class="comment-edit-box d-flex">
	<a id="commentsedit"></a>
	<div class="user-img">
		<a href="//me.csdn.net/liuxiaohuidegushi" target="_blank" rel="noopener">
			<img class="" src="https://avatar.csdn.net/9/0/F/3_liuxiaohuidegushi.jpg">
		</a>
	</div>
	<form id="commentform">
		<input type="hidden" id="comment_replyId">
		<textarea class="comment-content" name="comment_content" id="comment_content" placeholder="想对作者说点什么"></textarea>
		<div class="opt-box"> <!-- d-flex -->
			<div id="ubbtools" class="add_code">
				<a href="#insertcode" code="code" target="_self"><i class="icon iconfont icon-daima"></i></a>
			</div>
			<input type="hidden" id="comment_replyId" name="comment_replyId">
			<input type="hidden" id="article_id" name="article_id" value="79022106">
			<input type="hidden" id="comment_userId" name="comment_userId" value="">
			<input type="hidden" id="commentId" name="commentId" value="">
			<div style="display: none;" class="csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_384&quot;,&quot;dest&quot;:&quot;&quot;}"><a href="#" target="_blank" class="comment_area_btn" rel="noopener">发表评论</a></div>
			<div class="dropdown" id="myDrap">
				<a class="dropdown-face d-flex align-items-center" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
				<div class="txt-selected text-truncate">添加代码片</div>
				<svg class="icon d-block" aria-hidden="true">
					<use xlink:href="#csdnc-triangledown"></use>
				</svg>
				</a>
				<ul class="dropdown-menu" id="commentCode" aria-labelledby="drop4">
					<li><a data-code="html">HTML/XML</a></li>
					<li><a data-code="objc">objective-c</a></li>
					<li><a data-code="ruby">Ruby</a></li>
					<li><a data-code="php">PHP</a></li>
					<li><a data-code="csharp">C</a></li>
					<li><a data-code="cpp">C++</a></li>
					<li><a data-code="javascript">JavaScript</a></li>
					<li><a data-code="python">Python</a></li>
					<li><a data-code="java">Java</a></li>
					<li><a data-code="css">CSS</a></li>
					<li><a data-code="sql">SQL</a></li>
					<li><a data-code="plain">其它</a></li>
				</ul>
			</div>  
			<div class="right-box">
				<span id="tip_comment" class="tip">还能输入<em>1000</em>个字符</span>
				<input type="button" class="btn btn-sm btn-cancel d-none" value="取消回复">
				<input type="submit" class="btn btn-sm btn-red btn-comment" value="发表评论">
			</div>
		</div>
	</form>
</div>

	<div class="comment-list-container">
	<a id="comments"></a>
	<div class="comment-list-box">
	</div>
	<div id="commentPage" class="pagination-box d-none"></div>
	<div class="opt-box text-center">
		<div class="btn btn-sm btn-link-blue" id="btnMoreComment"></div>
	</div>
</div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59" data-report-view="{&quot;mod&quot;:&quot;kp_popu_59-78&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_59-78&quot;,&quot;keyword&quot;:&quot;&quot;}"><script type="text/javascript">
(function() {
    var s = "_" + Math.random().toString(36).slice(2);
    document.write('<div style="" id="' + s + '"></div>');
    (window.slotbydup = window.slotbydup || []).push({
        id: "u3491668",
        container:  s
    });
})();

求一条oracle语句 查询昨天的数据
10-19

求一条oracle语句 查询从昨天0点0分0秒 到昨天 23点59分59秒的sql语句 论坛

java数据结构栈题目
10-22

用栈算出3*(7-2)式子。 求代码,谢谢,大神们。 论坛

<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/zang141588761/9363167&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu2&quot;,&quot;index&quot;:&quot;8&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/zang141588761/9363167&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu2&quot;,&quot;index&quot;:&quot;8&quot;}">
	<a href="https://download.csdn.net/download/zang141588761/9363167" rel="noopener" target="_blank">
		<div class="content clearfix">
			<div class="">
				<h4 class="text-truncate oneline clearfix">
					<em>OpenCV</em>截取图像的任意区域(<em>ROI</em>),规则的图形(圆、椭圆、矩形),不规则鼠标自己选择					</h4>
				<span class="data float-right">12-17</span>
			</div>
			<div class="desc oneline">
					OpenCV截取图像的任意区域(ROI),规则的图形(圆、椭圆、矩形),不规则鼠标自己选择.				</div>
			<span class="type-show type-show-download">下载</span>
		</div>
	</a>
</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79022106&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;1&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79022106&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;1&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79022106&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:0,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79022106&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:0,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/wsds_mzm/article/details/79022106" target="_blank">              		<h4 class="text-truncate oneline" style="width: 626px;"><em>OpenCV</em><em>入门</em>:<em>ROI</em><em>感兴趣区域</em>(<em>鼠标事件</em><em>选定区域</em>) - WSDS_M..._CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">11-22</span>                    </p>                  </div>                </a>            	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79021589&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;2&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79021589&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;2&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79021589&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:1,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/wsds_mzm/article/details/79021589&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:1,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/wsds_mzm/article/details/79021589" target="_blank">              		<h4 class="text-truncate oneline" style="width: 626px;"><em>OpenCV</em><em>入门</em>:<em>ROI</em><em>感兴趣区域</em>(已知<em>ROI</em>的区域范围) - WSDS_..._CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">11-23</span>                    </p>                  </div>                </a>            	</div>

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60" data-report-view="{&quot;mod&quot;:&quot;kp_popu_60-43&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_60-43&quot;,&quot;keyword&quot;:&quot;&quot;}"><div id="three_ad8" class="mediav_ad"></div>
<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/gechengweisky/5878273&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu2&quot;,&quot;index&quot;:&quot;9&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/gechengweisky/5878273&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu2&quot;,&quot;index&quot;:&quot;9&quot;}">
	<a href="https://download.csdn.net/download/gechengweisky/5878273" rel="noopener" target="_blank">
		<div class="content clearfix">
			<div class="">
				<h4 class="text-truncate oneline clearfix">
					<em>OpenCV</em>利用鼠标进行矩形<em>ROI</em>选取					</h4>
				<span class="data float-right">08-06</span>
			</div>
			<div class="desc oneline">
					OpenCV利用鼠标进行矩形ROI选取,且该矩形ROI区域有且仅有一个存在。				</div>
			<span class="type-show type-show-download">下载</span>
		</div>
	</a>
</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zuliang001/article/details/82054923&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;3&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zuliang001/article/details/82054923&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;3&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zuliang001/article/details/82054923&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:2,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/zuliang001/article/details/82054923&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:2,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/zuliang001/article/details/82054923" target="_blank">              		<h4 class="text-truncate oneline" style="width: 633px;"><em>OpenCV</em>:鼠标选取<em>感兴趣区域</em>(<em>ROI</em>),画不规则矩形,画多边..._CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">4-24</span>                    </p>                  </div>                </a>            	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/sss_369/article/details/84845042&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;4&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/sss_369/article/details/84845042&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;4&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/sss_369/article/details/84845042&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:3,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/sss_369/article/details/84845042&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:3,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/sss_369/article/details/84845042" target="_blank">              		<h4 class="text-truncate oneline" style="width: 641px;"><em>OpenCV</em>:<em>鼠标事件</em> 选取矩形<em>ROI</em>区域 - SSS_369 - CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">1-1</span>                    </p>                  </div>                </a>            	</div>
		<div class="recommend-item-box blog-expert-recommend-box" style="display: block;">
		<div class="d-flex">
			<div class="blog-expert-recommend">
				<div class="blog-expert">
					<div class="blog-expert-flexbox" data-report-view="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><a href="https://blog.csdn.net/weixin_30248399" target="_blank"><img src="https://avatar.csdn.net/A/5/7/3_weixin_30248399.jpg" alt="weixin_30248399" title="weixin_30248399"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="weixin_30248399" data-nick="weixin_30248399">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><a href="https://blog.csdn.net/weixin_30248399" target="_blank"><h5 class="oneline" title="weixin_30248399">weixin_30248399</h5></a></span>  <p></p><p class="article-num" title="3686篇文章"> 3686篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><a href="https://blog.csdn.net/zuliang001" target="_blank"><img src="https://avatar.csdn.net/8/6/1/3_zuliang001.jpg" alt="蝴蝶飞啊飞啊π" title="蝴蝶飞啊飞啊π"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="zuliang001" data-nick="蝴蝶飞啊飞啊π">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><a href="https://blog.csdn.net/zuliang001" target="_blank"><h5 class="oneline" title="蝴蝶飞啊飞啊π">蝴蝶飞啊飞啊π</h5></a></span>  <p></p><p class="article-num" title="114篇文章"> 114篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><a href="https://blog.csdn.net/qq_35054151" target="_blank"><img src="https://avatar.csdn.net/3/1/6/3_qq_35054151.jpg" alt="树莓派派酒" title="树莓派派酒"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="qq_35054151" data-nick="树莓派派酒">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/WSDS_MZM/article/details/79022106&quot;}"><a href="https://blog.csdn.net/qq_35054151" target="_blank"><h5 class="oneline" title="树莓派派酒">树莓派派酒</h5></a></span>  <p></p><p class="article-num" title="82篇文章"> 82篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div></div>
				</div>
			</div>
		</div>
	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_41995541/article/details/89914184&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;5&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_41995541/article/details/89914184&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;5&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_41995541/article/details/89914184&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_41995541/article/details/89914184&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/weixin_41995541/article/details/89914184" target="_blank">              		<h4 class="text-truncate oneline" style="width: 641px;"><em>OpenCV</em>+选定图中<em>感兴趣区域</em><em>ROI</em> - QMec的博客 - CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">5-9</span>                    </p>                  </div>                </a>            	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weierqiuba/article/details/70011375&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;6&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weierqiuba/article/details/70011375&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;6&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weierqiuba/article/details/70011375&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weierqiuba/article/details/70011375&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/weierqiuba/article/details/70011375" target="_blank">              		<h4 class="text-truncate oneline" style="width: 626px;"><em>opencv</em> 鼠标选取图像<em>感兴趣区域</em> - wei_god的专栏 - CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">10-31</span>                    </p>                  </div>                </a>            	</div>
OpenCVROI 总结

04-24 阅读数 4万+

OpenCV中的ROI内存模型 博文 来自: QQ哥的专栏

Opencv学习---定义ROI(感兴趣区域) - 君子性非异 - CSDN博客

4-23

opencv中的ROI(感兴趣区域)的设置 - 曾经的张 博客 - CSDN博客

4-16

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61" data-report-view="{&quot;mod&quot;:&quot;kp_popu_61-622&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_61-622&quot;,&quot;keyword&quot;:&quot;&quot;}"><div style=""><iframe width="852" frameborder="0" height="66" scrolling="no" src="https://pos.baidu.com/s?hei=66&amp;wid=852&amp;di=u3600846&amp;ltu=https%3A%2F%2Fblog.csdn.net%2FWSDS_MZM%2Farticle%2Fdetails%2F79022106&amp;psi=95a41159452886db94f970868d48f8ba&amp;dai=4&amp;cdo=-1&amp;ari=2&amp;ccd=24&amp;exps=111000,110011&amp;dtm=HTML_POST&amp;chi=1&amp;ltr=https%3A%2F%2Fblog.csdn.net%2Fyoungybird%2Farticle%2Fdetails%2F70792940&amp;psr=1536x864&amp;cec=UTF-8&amp;cce=true&amp;par=1536x824&amp;dri=0&amp;tlm=1568555010&amp;col=zh-CN&amp;cpl=4&amp;ti=OpenCV%E5%85%A5%E9%97%A8%EF%BC%9AROI%E6%84%9F%E5%85%B4%E8%B6%A3%E5%8C%BA%E5%9F%9F%EF%BC%88%E9%BC%A0%E6%A0%87%E4%BA%8B%E4%BB%B6%E9%80%89%E5%AE%9A%E5%8C%BA%E5%9F%9F%EF%BC%89&amp;pss=1519x5617&amp;pcs=1519x722&amp;cja=false&amp;dc=3&amp;drs=1&amp;pis=-1x-1&amp;cmi=6&amp;prot=2&amp;dis=0&amp;cfv=0&amp;ps=4150x410&amp;tcn=1568555011&amp;ant=0&amp;tpr=1568555010979"></iframe></div><script type="text/javascript" src="//rabc1.iteye.com/common/web/production/79m9.js?f=aszggcwz"></script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=61&amp;a=622&amp;c=0&amp;k=&amp;d=1&amp;t=3&amp;u=c4faedfb6d954892bb46c6d427485436"></div></div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/ktigerhero3/article/details/53071364/&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;9&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/ktigerhero3/article/details/53071364/&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;9&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/ktigerhero3/article/details/53071364/&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:8,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/ktigerhero3/article/details/53071364/&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:8,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/ktigerhero3/article/details/53071364/" target="_blank">              		<h4 class="text-truncate oneline" style="width: 633px;"><em>openCV</em>任意几何形状<em>感兴趣区域</em>(<em>ROI</em>)提取 - 沧海一帆的..._CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">5-26</span>                    </p>                  </div>                </a>            	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_31935691/article/details/71699529&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;10&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_31935691/article/details/71699529&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;10&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_31935691/article/details/71699529&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:9,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_31935691/article/details/71699529&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:9,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/qq_31935691/article/details/71699529" target="_blank">              		<h4 class="text-truncate oneline" style="width: 633px;"><em>opencv</em>:<em>感兴趣区域</em>的操作:<em>ROI</em> - Trace - CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">3-28</span>                    </p>                  </div>                </a>            	</div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62" data-report-view="{&quot;mod&quot;:&quot;kp_popu_62-623&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_62-623&quot;,&quot;keyword&quot;:&quot;&quot;}"><script type="text/javascript">
(function() {
    var s = "_" + Math.random().toString(36).slice(2);
    document.write('<div style="" id="' + s + '"></div>');
    (window.slotbydup = window.slotbydup || []).push({
        id: "u3600849",
        container:  s
    });
})();

OpenCV+选定图中感兴趣区域ROI

05-07 阅读数 171

选定图中感兴趣区域的两种方法 博文 来自: QMec的博客

求一个可以查询姓名相同,身份证号相似的SQL语句
03-25

求一个可以查询姓名相同,身份证号相似的SQL语句 如有以下表数据 FID FName FIC Fsex 1 张三 430403198801271234 男 2 张三 43040319880127123 论坛

程序员生日祝福传递。拜托了各位。
11-26

我女朋友今天生日(11月26号) 希望各位发个短信把祝福传递一下.编辑内容如下: 晶晶:祝你生日快乐,一生幸福。 --(平平朋友) 她的手机号是:13416397101 拜托了各位,祝有情人终成眷属。 论坛

使用opencv选区ROI区域的问题
08-27

请问如何将图中的车牌号区域设为ROI,可以将区域裁剪下来? 论坛

plsql 多表连接更新如何写,大神帮帮忙
08-18

合同表ht 合同所在组织id 合同编号 供应商id fcontrolunitid fnumber fpartbid xxx001 合同1 yyy101 xxx001 合同2 yyy102 xxx001 论坛

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_63" data-pid="63" data-report-view="{&quot;mod&quot;:&quot;kp_popu_63-624&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_63-624&quot;,&quot;keyword&quot;:&quot;&quot;}"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u4221910",
            container: s
        });
    })();

<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/zlj1991/7403471&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu&quot;,&quot;index&quot;:&quot;27&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/zlj1991/7403471&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu&quot;,&quot;index&quot;:&quot;27&quot;}">
	<a href="https://download.csdn.net/download/zlj1991/7403471" rel="noopener" target="_blank">
		<div class="content clearfix">
			<div class="">
				<h4 class="text-truncate oneline clearfix">
					<em>opencv</em> 鼠标响应 实现在视频中画矩形框 指定跟踪目标为后续跟踪打下基础					</h4>
				<span class="data float-right">05-26</span>
			</div>
			<div class="desc oneline">
					此程序可以在视频中用鼠标画一个矩形框,把他视为要跟踪的 目标对象,为后续的单目标跟踪打下基础				</div>
			<span class="type-show type-show-download">下载</span>
		</div>
	</a>
</div>
Opencv鼠标响应(框选以及取点)

01-25 阅读数 8028

Opencv鼠标响应 博文 来自: 朱铭德的博客

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_64" data-pid="64" data-report-view="{&quot;mod&quot;:&quot;kp_popu_64-626&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_64-626&quot;,&quot;keyword&quot;:&quot;&quot;}"><script type="text/javascript">
(function() {
    var s = "_" + Math.random().toString(36).slice(2);
    document.write('<div style="" id="' + s + '"></div>');
    (window.slotbydup = window.slotbydup || []).push({
        id: "u3600856",
        container:  s
    });
})();

<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix" data-report-view="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/lishicheng64/4537067&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu2&quot;,&quot;index&quot;:&quot;32&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_387&quot;,&quot;dest&quot;:&quot;https://download.csdn.net/download/lishicheng64/4537067&quot;,&quot;strategy&quot;:&quot;BlogCommendFromBaidu2&quot;,&quot;index&quot;:&quot;32&quot;}">
	<a href="https://download.csdn.net/download/lishicheng64/4537067" rel="noopener" target="_blank">
		<div class="content clearfix">
			<div class="">
				<h4 class="text-truncate oneline clearfix">
					在图像上实现鼠标交互,选择<em>感兴趣区域</em>进行处理					</h4>
				<span class="data float-right">08-30</span>
			</div>
			<div class="desc oneline">
					这是在VC6.0上基于MFC对话框基础下,安装了opencv1.0之后可以运行的,包括打开图像,鼠标在图像上移动进行选择感兴趣区域,以及对选择出的感兴趣区域进行一项处理,即角点检测。				</div>
			<span class="type-show type-show-download">下载</span>
		</div>
	</a>
</div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_65" data-pid="65" data-report-view="{&quot;mod&quot;:&quot;kp_popu_65-1378&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_65-1378&quot;,&quot;keyword&quot;:&quot;&quot;}"><script type="text/javascript">
    (function() {
        var s = "_" + Math.random().toString(36).slice(2);
        document.write('<div style="" id="' + s + '"></div>');
        (window.slotbydup = window.slotbydup || []).push({
            id: "u4221803",
            container: s
        });
    })();

BPSK的simulink仿真,及其完整的参数设置,频谱分析图和星座图下载
09-10

BPSK的simulink仿真,及其完整的参数设置,频谱分析图和星座图 相关下载链接://download.csdn.net/download/cherish_shan/10657206?utm_so 论坛

<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_66" data-pid="66" data-report-view="{&quot;mod&quot;:&quot;kp_popu_66-87&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_66-87&quot;,&quot;keyword&quot;:&quot;&quot;}"><div id="three_ad38" class="mediav_ad"></div>
            <div class="recommend-item-box type_hot_word">
                            <div class="content clearfix" style="width: 712px;">
                <div class="float-left">
                                    <span>
                    <a href="https://www.csdn.net/gather_12/MtTaAg0sNy1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c# xml的遍历循环</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_17/MtTaAg0sOC1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c# 取 查看源码没有的</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_15/MtTaAg0sOS1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c#解决高并发 委托</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_15/MtTaAg1sMC1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c#日期转化为字符串</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_14/MtTaAg1sMS1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c# 显示问号</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_1f/MtTaAg1sMi1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c# 字典对象池</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_1d/MtTaAg1sNC1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c#5.0 安装程序</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_14/MtTaAg1sNi1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c# 分页算法</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_1d/MtTaAg1sNy1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c# gmail 发邮件</a>
                </span>
                                    <span>
                    <a href="https://www.csdn.net/gather_14/MtTaAg1sOS1kb3dubG9hZAO0O0OO0O0O.html" target="_blank">
                    c# 多层文件</a>
                </span>
                                    </div>
            </div>
                            </div>
                        <div class="recommend-loading-box">
            <img src="https://csdnimg.cn/release/phoenix/images/feedLoading.gif">
        </div>
        <div class="recommend-end-box" style="display: block;">
            <p class="text-center">没有更多推荐了,<a href="https://blog.csdn.net/" class="c-blue c-blue-hover c-blue-focus">返回首页</a></p>
        </div>
    </div>
</main>
;