一杯清酒邀明月
天下本无事,庸人扰之而烦耳。
摘要: 1 #include "opencv2/imgproc/imgproc.hpp" 2 #include "opencv2/highgui/highgui.hpp" 3 #include <stdlib.h> 4 #include <stdio.h> 5 6 using namespace cv; 7 阅读全文
posted @ 2020-01-09 13:12 一杯清酒邀明月 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 1 #include "opencv2/imgproc/imgproc.hpp" 2 #include "opencv2/highgui/highgui.hpp" 3 #include <stdlib.h> 4 #include <stdio.h> 5 6 using namespace cv; 7 阅读全文
posted @ 2020-01-09 13:10 一杯清酒邀明月 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 1 #include "opencv2/imgproc/imgproc.hpp" 2 #include "opencv2/highgui/highgui.hpp" 3 #include <math.h> 4 #include <stdlib.h> 5 #include <stdio.h> 6 7 u 阅读全文
posted @ 2020-01-09 13:09 一杯清酒邀明月 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1 #include "opencv2/imgproc/imgproc.hpp" 2 #include "opencv2/highgui/highgui.hpp" 3 #include "highgui.h" 4 #include <stdlib.h> 5 #include <stdio.h> 6 阅读全文
posted @ 2020-01-09 13:08 一杯清酒邀明月 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1 #include "opencv2/imgproc/imgproc.hpp" 2 #include "opencv2/highgui/highgui.hpp" 3 4 using namespace std; 5 using namespace cv; 6 7 /// 全局变量 8 int DE 阅读全文
posted @ 2020-01-09 13:06 一杯清酒邀明月 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 1 #include <opencv2/core/core.hpp> 2 #include <iostream> 3 #include <string> 4 5 using namespace cv; 6 using namespace std; 7 8 class MyData 9 { 10 pu 阅读全文
posted @ 2020-01-09 13:05 一杯清酒邀明月 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1 #include "opencv2/core/core.hpp" 2 #include "opencv2/imgproc/imgproc.hpp" 3 #include "opencv2/highgui/highgui.hpp" 4 #include <iostream> 5 int main( 阅读全文
posted @ 2020-01-09 13:04 一杯清酒邀明月 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1 #include <opencv2/core/core.hpp> 2 #include <opencv2/highgui/highgui.hpp> 3 #include <iostream> 4 5 using namespace std; 6 using namespace cv; 7 8 d 阅读全文
posted @ 2020-01-09 13:03 一杯清酒邀明月 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 1 #include <cv.h> 2 #include <highgui.h> 3 #include <iostream> 4 5 using namespace cv; 6 7 int main( int argc, char** argv ) 8 { 9 double alpha = 0.5; 阅读全文
posted @ 2020-01-09 13:02 一杯清酒邀明月 阅读(893) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 1 #include <cv.h> 2 #include <highgui.h> 3 4 using namespace cv; 5 6 int main( int argc, char** argv ) 7 { 8 if(argc != 2) 9 { 10 printf("useage 阅读全文
posted @ 2020-01-09 13:01 一杯清酒邀明月 阅读(431) 评论(0) 推荐(0) 编辑
摘要: Mat 在2001年刚刚出现的时候,OpenCV基于 C 语言接口而建。为了在内存(memory)中存放图像,当时采用名为 IplImage 的C语言结构体,时至今日这仍出现在大多数的旧版教程和教学材料。但这种方法必须接受C语言所有的不足,这其中最大的不足要数手动内存管理,其依据是用户要为开辟和销毁 阅读全文
posted @ 2020-01-09 12:59 一杯清酒邀明月 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1 //EmguCV常用函数总结: 2 //读取图片 3 Mat SCr = new Mat(Form1.Path, Emgu.CV.CvEnum.LoadImageType.AnyColor); 4 //根据路径创建指定的灰度图片 5 Mat scr = new Mat(Form1.Path, E 阅读全文
posted @ 2020-01-09 12:48 一杯清酒邀明月 阅读(1971) 评论(0) 推荐(0) 编辑
摘要: 使用OpencvSharp的InRange函数对图像进行RGB颜色的分割。 1 using System; 2 using OpenCvSharp; 3 using OpenCvSharp.Extensions; 4 using OpenCvSharp.XFeatures2D; 5 using st 阅读全文
posted @ 2020-01-09 12:42 一杯清酒邀明月 阅读(2273) 评论(0) 推荐(0) 编辑
摘要: //下列for写法比一般的for写法要快很多,时间紧 ,大概的思路是其只需要计算一次length 1 int[] arr={1,2,3,4,5,6}; 2 for(int i=0 , iLen=arr.Length ; i<iLen ; i++) //必须是显示申明,不能var 3 { 4 .... 阅读全文
posted @ 2020-01-09 12:30 一杯清酒邀明月 阅读(3173) 评论(1) 推荐(1) 编辑
摘要: 运行注册表编辑器,依次定位到HKEY_CURRENT_USER\Software\Microsoft\Windows\WindowsError Reporting,在右侧窗口中找到并双击打开DontshowUI,然后在弹出的窗口中将默认值“0”修改为“1”。 那么,当程序崩溃时,就不会再出现”xx程 阅读全文
posted @ 2020-01-09 11:56 一杯清酒邀明月 阅读(1139) 评论(0) 推荐(0) 编辑
摘要: 说明 必须包含名空间System.Collection.Generic Dictionary里面的每一个元素都是一个键值对(由二个元素组成:键和值) 键必须是唯一的,而值不需要唯一的 键和值都可以是任何类型(比如:string, int, 自定义类型,等等) 通过一个键读取一个值的时间是接近O(1) 阅读全文
posted @ 2020-01-09 11:45 一杯清酒邀明月 阅读(299) 评论(0) 推荐(1) 编辑
摘要: 问题描述 界面上放置大量的控件(尤其是自定义控件)会导致在窗体加载时,速度变得缓慢;当切换页面时,也会时常产生闪烁的问题,非常影响用户体验。 解决方法 将此代码写在要解决闪烁问题的父窗体中: 1 protected override CreateParams CreateParams 2 { 3 g 阅读全文
posted @ 2020-01-09 11:40 一杯清酒邀明月 阅读(1240) 评论(0) 推荐(0) 编辑
摘要: 隐藏windows7/8“卸载或更改程序”里的软件 通过修改注册表即可隐藏电脑中已安装的软件,这个方法会造成卸载列表无法加载已安装的软件,请谨慎操作!提示:删除注册表后windows自带的卸载程序、其他的软件自带卸载软件功能都查找不到此软件,所以对电脑不是很熟悉的朋友请忽略这篇文章!在win7系统的 阅读全文
posted @ 2020-01-09 11:37 一杯清酒邀明月 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 电脑蓝屏代码大全 编号 代码 含意 0 0x00000000 作业完成。 1 0x00000001 不正确的函数。 2 0x00000002 系统找不到指定的档案。 3 0x00000003 系统找不到指定的路径。 4 0x00000004 系统无法开启档案。 5 0x00000005 拒绝存取。  阅读全文
posted @ 2020-01-09 11:27 一杯清酒邀明月 阅读(2152) 评论(0) 推荐(0) 编辑
摘要: 综合布线施工规范与工艺 一、一般规定 1、本章适用于住宅单相人户配电箱户表后的室内强弱电电路布线及电器、灯具安装。 2、配电箱户表后应根据室内用电设备的不同功率分别配线供电;大功率家电设备应独立配线安装插座。 3、配线时,相线与零线的颜色应不同;同一住宅相线(L)颜色应统一,零线(N)宜用蓝色,保护 阅读全文
posted @ 2020-01-09 11:25 一杯清酒邀明月 阅读(1908) 评论(0) 推荐(0) 编辑