最近在研究OpenCv对摄像头的调用。现将代码贴出,供大家批评指正。
1、申明
#include"./opencv2/opencv.hpp"
#ifdef _DEBUG
#pragma comment(lib,"opencv_core249d.lib")
#pragma comment(lib,"opencv_highgui249d.lib")
#else
#pragma commen...
分类:
其他好文 时间:
2014-12-17 12:54:06
阅读次数:
257
#include "highgui.h"
#include "cv.h"
#pragma comment(lib, "cv.lib")
#pragma comment(lib, "cxcore.lib")
#pragma comment(lib, "highgui.lib")
int main( )
{
IplImage *src = cvLoadImage( "0.jp...
分类:
其他好文 时间:
2014-12-17 09:10:10
阅读次数:
133
霍夫圆变换: 1 #include 2 #include 3 #include 4 #include 5 6 #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) 7 8 using n...
分类:
其他好文 时间:
2014-12-16 13:14:13
阅读次数:
154
1.S.O.答案第一名#pragma commentis a compiler directive which indicates Visual C++ to leave a comment in the generated object file. The comment can then be ...
分类:
其他好文 时间:
2014-12-15 13:41:14
阅读次数:
144
Canny边缘检测先不说函数作用,来代码: 1 #include 2 #include 3 #include 4 5 #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) 6 7 usin...
分类:
其他好文 时间:
2014-12-15 00:00:56
阅读次数:
307
(1)source insight 阅读VC++源码,注释为乱码解决方案1、options->preferences->Syntax Formatting->Styles;2、在Style Name 选择 Comment,再对其Font Name 选择Pick,然后再选择“新宋体”。(2)sourc...
分类:
其他好文 时间:
2014-12-12 18:23:14
阅读次数:
130
原文:winsock2之最简单的win socket编程
server.cpp #include #include #pragma comment(lib,"ws2_32.lib")
int main(int argc,char **argv)
{ //创建套接字 WORD myVersionReq...
1 #pragma once 2 #include 3 using namespace DuiLib; 4 5 #ifdef _DEBUG 6 # ifdef _UNICODE 7 # pragma comment(lib, "DuiLib_ud.lib") 8 # els...
分类:
其他好文 时间:
2014-12-11 23:40:51
阅读次数:
289
1、字符编码:在某文件中所使用的字符编码指示文件将显示什么字符。 设置字符编码 2、php发送数据到WEB浏览器:echo、print3、注释:#编号注释; #This is a comment//双斜杠: //This is also a comment/* */:允许注释分布在多行。4、预定义变...
分类:
Web程序 时间:
2014-12-11 17:18:38
阅读次数:
195
Duilib学习二 第一个程序 Hello World#pragma once#include using namespace DuiLib;#ifdef _DEBUG# ifdef _UNICODE# pragma comment(lib, "DuiLib_ud.lib")# ...
分类:
其他好文 时间:
2014-12-11 00:09:36
阅读次数:
166