- 博客(15)
- 收藏
- 关注
原创 opencv使用videocapture打开视频时,依赖opencv_ffmpeg***.dll,默认必须放到执行目录,自定义目录需要重新编译opencv库
2. 找到加载opencv_ffmpeg的接口, 修改接口内opencv_ffmpeg的路径即可.1. 找到modules下opencv_highgui模块的cap_ffmpeg.cpp。
2024-09-12 12:04:15
488
原创 使用depends查看64位dll/exe
VS默认安装只有32位的查看器.需要去官网下载x64位.下载链接:https://www.dependencywalker.com/
2020-08-03 13:14:22
3555
1
转载 MFC 设置控件初始默认焦点
转自:https://blog.youkuaiyun.com/libaineu2004/article/details/24377105 在控件初始化时GetDlgItem(IDC_XXXX)->SetFocus();将对话框中的OnInitDialog的最后那句return设置为"FALSE";
2019-01-24 09:24:56
3031
转载 CMFCButton控件改变颜色
CMFCButton* button = new CMFCButton;RECT buttonRect;buttonRect.left = 200;buttonRect.right = 400;buttonRect.top = 200;buttonRect.bottom = 400;button->Create("测试按钮", WS_CHILD | WS_VISIBLE | ...
2019-01-24 09:20:03
1390
转载 大华相机YUV数据通过opencv转换成rgb, 叠加字符显示
#include <iostream>#include <dhconfigsdk.h>#include <dhnetsdk.h>#include <dhplay.h>#include <Cv310Text.h>#define PLAYPORT 0#define IMAGE_HEIGHT 1280#define IM...
2018-07-03 22:01:35
2719
8
转载 Ubuntu 打乱行
转载自: https://blog.youkuaiyun.com/u010555688/article/details/50475739打乱train_list.txt的行序, 保存到train.txtsudo awk 'BEGIN{ 100000*srand();}{ printf "%s %s\n", rand(), $0}' train_list.txt |sort -k1n | awk '...
2018-05-07 16:50:07
330
转载 vnc远程ubuntu,分辨率调整
方法1. (转自http://blog.sina.com.cn/s/blog_67de9c540102x5qt.html)调整分辨率为1920x1080命令cvt 1920 1080显示 # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHzModeline "1920x1080_60.00" 17
2017-11-14 18:44:07
6633
转载 windows 批处理 获取当前目录及子目录的所有文件路径
新建文本文件,文件后缀改为.bat编辑打开在里面输入下面对应命令获取当前目录及子目录下的所有文件dir /s /b > list.txt只获取当前目录与子目录下的jpg文件dir *.jpg /s /b > list.txt只获取当前目录的文件dir /b > list.txt只获取当前目录下的jpg文件dir *.jpg /b > list.t
2017-11-06 15:38:11
9895
转载 MFC CImage 类加载图片显示到控件
void CDemoDlg::ShowImage(){ CImage m_image; HDC m_imageHdc; CRect m_imageRect; // 得到控件对象 CWnd *pWnd = GetDlgItem(IDC_STATIC_PICTURE); // 获得控件的大小 pWnd->GetClientRect(&m_imageRect); // 获取控件的绘
2017-07-27 17:16:12
2085
转载 Win32 SOCKET之UDP
Socket.h#ifndef __SOCKET_H__#define __SOCKET_H__#include #pragma comment(lib, "ws2_32.lib")#pragma warning(disable : 4786) #include #include using namespace std;// select mode #define SEL
2017-07-27 17:11:29
639
转载 FFmpeg 视频解码,窗口显示
#ifndef __DECODE_STREAM_FROM_CAMERA__#define __DECODE_STREAM_FROM_CAMERA__extern "C"{#include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavdevice/avdevice.h" #in
2017-07-27 16:55:04
1135
1
转载 WIN32 控件显示RGB 图像 / Mat 图像
转载出处: http://blog.youkuaiyun.com/zfdxx369/article/details/8138706PictureCtrl 显示Mat图像:https://blog.youkuaiyun.com/fjqlldg/article/details/52260585在OnInitDialog 或者 OnInitialUpdate 中添加 namedWindow(...
2017-07-27 16:38:06
1482
转载 windows C++ 遍历目录,获取文件名和文件路径
void GetFiles(string path, vector &filesPath, vector& filesName){ WIN32_FIND_DATAA ffd; memset(&ffd, 0, sizeof(ffd)); path.append("\\*"); HANDLE hFind = FindFirstFileA(path.c_str(), &ffd); do
2017-07-27 16:30:15
2886
转载 MFC 打开目录窗口
char szPath[MAX_PATH]; //存放选择的目录路径 CString str;ZeroMemory(szPath, sizeof(szPath));BROWSEINFO bi;memset(&bi, 0, sizeof(bi));bi.hwndOwner = m_hWnd;bi.pidlRoot = NULL;bi.pszDisplayN
2017-07-27 16:27:42
937
转载 MFC CRichEdit 打印日志
原文链接: http://www.orcode.com/article/Edit_20120879.html首先在应用程序CxxxApp 类的 InitInstance 中 AfxEnableControlContainer() 后面添加 AfxInitRichEdit2();然后在资源中添加RichEdit2控件根据需要改变控件属性需要垂直滚动条把 Auto VScroll
2017-07-27 16:10:40
1356
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人