上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: CRect rect; CWnd *pWnd = GetDlgItem(IDC_STATIC_PIC); pWnd->GetWindowRect(&rect); ScreenToClient(&rect); //先获取鼠标相对于屏幕的坐标 GetCursorPos(&point); //然后得到static控件的rect坐标 CRect pRect; pWnd->GetClientRe... 阅读全文
posted @ 2017-02-24 16:19 一样菜 阅读(4411) 评论(0) 推荐(0) 编辑
摘要: http://demo.pythoner.com/itt2zh/ch1.html#ch1-1 http://www.runoob.com/bootstrap/bootstrap-tutorial.html html编辑器:http://www.alibuybuy.com/posts/18329.ht 阅读全文
posted @ 2017-02-09 16:29 一样菜 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1.点击div外部隐藏, //*代表tip_box所包含的子元素 $('body').click(function(e) { var target = $(e.target); if(!target.is('#tip_box *') ) { //事件处理 } }); 2.div动态展开 .tip_box{ width:300px... 阅读全文
posted @ 2017-01-17 16:08 一样菜 阅读(3296) 评论(0) 推荐(0) 编辑
摘要: 在远程服务器如:/var/www下创建hello.git 然后git init --bare hello.git cd hello.git会看到下面的目录和文件 然后创建可以访问git的用户 git config --global user.name "name" 例如:json git confi 阅读全文
posted @ 2017-01-13 00:56 一样菜 阅读(1563) 评论(0) 推荐(0) 编辑
摘要: MySQL安装 Apache安装: 阅读全文
posted @ 2017-01-12 12:48 一样菜 阅读(658) 评论(0) 推荐(0) 编辑
摘要: {% if classes|count > 1 %} 全部 {% for c in classes %} {{c['name']}} {% endfor %} {%... 阅读全文
posted @ 2016-12-26 14:42 一样菜 阅读(779) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "iostream" #include "opencv/cv.h" #include "opencv2/opencv.hpp" #include "basicOCR.h" #include "time.h" using namespace std; using namespace cv; void ImageRect(IplImage *... 阅读全文
posted @ 2016-12-15 18:17 一样菜 阅读(1933) 评论(0) 推荐(0) 编辑
摘要: 多行缩进: shift+v >或者< 撤销: :u 阅读全文
posted @ 2016-12-08 14:05 一样菜 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 二维码zbar安装: apt-get install libzbar-devpip install zbarorpip install zbar-tools pip install zbar 阅读全文
posted @ 2016-12-06 16:46 一样菜 阅读(421) 评论(0) 推荐(0) 编辑
摘要: (function(){ var setting = { view:{ dblClickExpand:false, expandSpeed:300 }, data: { simpleData: { enable: true, ... 阅读全文
posted @ 2016-12-02 14:46 一样菜 阅读(438) 评论(0) 推荐(0) 编辑
摘要: Python调用动态库的文件:pycall.py Python调用C++(类)动态链接库 需要extern "C"来辅助,也就是说还是只能调用C函数,不能直接调用方法,但是能解析C++方法。不是用extern "C",构建后的动态链接库没有这些函数的符号表。 g++编译生成动态库libpycall. 阅读全文
posted @ 2016-11-29 18:37 一样菜 阅读(33570) 评论(0) 推荐(2) 编辑
摘要: 参考http://blog.csdn.net/solomon1558/article/details/51967280 1安装cmake以及依赖库 2安装opencv 3.把opencv的so库加入到环境变量 4测试使用 备注: 阅读全文
posted @ 2016-11-29 18:32 一样菜 阅读(27375) 评论(0) 推荐(1) 编辑
摘要: 额外属性 阅读全文
posted @ 2016-11-07 15:53 一样菜 阅读(315) 评论(0) 推荐(0) 编辑
摘要: /* 回调函数的格式如下: int sqlite_callback( void* pv, //由 sqlite3_exec() 的第四个参数传递而来 int argc, //表的列数 char** argv, //指向查询结果的指针数组, 可以由 sqlite3_column_text() 得到 char** col //指向表头名的... 阅读全文
posted @ 2016-11-02 12:25 一样菜 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: Project->Properties->Configuration Properties->Debuging->Working Directory改为$(ProjectDir) ./ 该目录 ../该目录的父目录 阅读全文
posted @ 2016-10-13 17:40 一样菜 阅读(2034) 评论(0) 推荐(0) 编辑
摘要: 像素修改: 使用CImage绘制PNG图片 阅读全文
posted @ 2016-10-13 12:38 一样菜 阅读(6463) 评论(0) 推荐(0) 编辑
摘要: 1、#include 2、在需要开启控制台窗口的地方调用 AllocConsole();//注意检查返回值 3、在需要输出调试的时候调用_cprintf等函数 如_cprintf("i=%d\n", i); 4、关闭控制台的时候调用 FreeConsole(); 注意:上述方法在输出中文时会出现乱码,如果需要输出中文,请使用下面的方法: AllocConsole(); freopen(... 阅读全文
posted @ 2016-10-12 15:02 一样菜 阅读(20670) 评论(2) 推荐(2) 编辑
摘要: //肤色提取,skinArea为二值化肤色图像 void skinExtract(const Mat &frame, Mat &skinArea) { Mat YCbCr; vector planes; //转换为YCrCb颜色空间 cvtColor(frame, YCbCr, CV_RGB2YCrCb); //将多通道图像分离为多个单通道图像 split(YCbCr, pla... 阅读全文
posted @ 2016-10-10 18:24 一样菜 阅读(1175) 评论(0) 推荐(0) 编辑
摘要: memcpy(predata,frame,1920*1080*4); 阅读全文
posted @ 2016-10-09 11:10 一样菜 阅读(760) 评论(0) 推荐(0) 编辑
摘要: extern "C" { __declspec(dllexport) int psq_add(int a, int b); } C:\Users\pansq>mkexp mydll.a mydll.dll extern "C" { int psq_add(int a, int b); } 阅读全文
posted @ 2016-09-28 20:30 一样菜 阅读(422) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页