上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 88 下一页
  2018年10月8日
摘要: RGB颜色空间 在RGB中,一幅图像有三个独立的图像平面或通道组成:红,绿,蓝(以及第四个通道透明度)。 RGB颜色表 资料:网络 ◇ 编制:王践舜 RGB(255,23,140)是光的三原色,也即红绿蓝Red、Green、Blue,它们的最大值是255,相当于100%。 白色:rgb(255,25 阅读全文
posted @ 2018-10-08 21:01 一抹烟霞 阅读(9026) 评论(0) 推荐(0) 编辑
  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 一抹烟霞 阅读(821) 评论(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 一抹烟霞 阅读(1771) 评论(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 一抹烟霞 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 截取图中上方数码管中的数字 基本思路: 1、将图像转化为灰度图 2、截取ROI区域 3、二值化 4、循环遍历每一行和每一列,得到字符的坐标 5、截取并保存 阅读全文
posted @ 2018-10-05 20:49 一抹烟霞 阅读(2777) 评论(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 一抹烟霞 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 这里采用第一种方法 待处理得图 阅读全文
posted @ 2018-10-04 00:10 一抹烟霞 阅读(555) 评论(0) 推荐(0) 编辑
  2018年10月3日
摘要: 当我们得到对象轮廓后,可用boundingRect()得到包覆此轮廓的最小正矩形,minAreaRect()得到包覆轮廓的最小斜矩形,minEnclosingCircle()得到包覆此轮廓的最小圆形,这些函式协助我们填补空隙,或者作进一步的对象辨识,boundingRect()函式返回的是正矩形,所 阅读全文
posted @ 2018-10-03 23:27 一抹烟霞 阅读(6754) 评论(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 一抹烟霞 阅读(1128) 评论(0) 推荐(0) 编辑
上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 88 下一页

Live2D