上一页 1 ··· 80 81 82 83 84 85 86 87 88 ··· 92 下一页
  2018年10月7日
摘要: 1 #include 2 #include 3 #include 4 5 using namespace cv; 6 using namespace std; 7 8 int main(int argc, char** argv) { 9 Mat src = imread("test.jpg"); 10 if (src.empty()) { 11 ... 阅读全文
posted @ 2018-10-07 16:26 一抹烟霞 阅读(837) 评论(0) 推荐(0)
摘要: 思路: 1、通过形态学操作、阈值处理、距离变换等方法,使得各个轮廓分开 2、计算轮廓数量 #include <opencv2/opencv.hpp>#include <iostream>#include <math.h>using namespace cv;using namespace std;i 阅读全文
posted @ 2018-10-07 16:09 一抹烟霞 阅读(1825) 评论(0) 推荐(0)
  2018年10月5日
摘要: 1 void getTemplate(void) { 2 3 Mat src =frame; 4 cvtColor(src,src,COLOR_BGR2GRAY); 5 // namedWindow("input image", CV_WINDOW_AUTOSIZE); 6 // imshow("input image", src... 阅读全文
posted @ 2018-10-05 20:50 一抹烟霞 阅读(253) 评论(0) 推荐(0)
摘要: 截取图中上方数码管中的数字 基本思路: 1、将图像转化为灰度图 2、截取ROI区域 3、二值化 4、循环遍历每一行和每一列,得到字符的坐标 5、截取并保存 阅读全文
posted @ 2018-10-05 20:49 一抹烟霞 阅读(2821) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-10-05 20:45 一抹烟霞 阅读(9) 评论(0) 推荐(0)
  2018年10月4日
摘要: 1 #include 2 #include 3 #include 4 5 using namespace cv; 6 using namespace std; 7 8 int max_count = 255; 9 int threshold_value = 100; 10 const char* output_lines = "Hough Lines"; 11... 阅读全文
posted @ 2018-10-04 10:13 一抹烟霞 阅读(332) 评论(0) 推荐(0)
摘要: 这里采用第一种方法 待处理得图 阅读全文
posted @ 2018-10-04 00:10 一抹烟霞 阅读(574) 评论(0) 推荐(0)
  2018年10月3日
摘要: 当我们得到对象轮廓后,可用boundingRect()得到包覆此轮廓的最小正矩形,minAreaRect()得到包覆轮廓的最小斜矩形,minEnclosingCircle()得到包覆此轮廓的最小圆形,这些函式协助我们填补空隙,或者作进一步的对象辨识,boundingRect()函式返回的是正矩形,所 阅读全文
posted @ 2018-10-03 23:27 一抹烟霞 阅读(6928) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 4 using namespace cv; 5 using namespace std; 6 7 int main(int argc, char** argv) { 8 String cascadeFilePath = "F:/CMake_bulid/install/etc/haarcascades/haarcasc... 阅读全文
posted @ 2018-10-03 17:27 一抹烟霞 阅读(1148) 评论(0) 推荐(0)
摘要: 检测并绘制特征点: 匹配: 阅读全文
posted @ 2018-10-03 17:07 一抹烟霞 阅读(1978) 评论(1) 推荐(0)
上一页 1 ··· 80 81 82 83 84 85 86 87 88 ··· 92 下一页

Live2D