VC++视频采集的步骤
2013-09-28 17:36
567 查看
VC6.0视频采集的步骤:
1、插入摄像头,安装驱动 VCap2800 USB2.0 DRV(windows 7)或者Vcap2820 sdk,两者依次尝试
![](http://img.blog.csdn.net/20130928172514437?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928172607640?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928172634984?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928172706109?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928172735171?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
注意:驱动有一下几种,如果USB2.0 DRVB不成功!!可以换驱动VCap2820 sdk进行尝试!!!
![](http://img.blog.csdn.net/20130928172747437?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928172800921?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
2、G:\VC++视频采集资料\USB2800\Vcap2820 sdk\Vcap2820 sdk目录下的 devwdm.ax 放到c:\windows\system32\目录下
![](http://img.blog.csdn.net/20130928172925078?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
3、打开 “运行”,输入 Regsvr32 c:\windows\system32\devwdm.ax 进行注册驱动
![](http://img.blog.csdn.net/20130928172946343?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928173001140?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
4、创建VC工程,基于对话框
![](http://img.blog.csdn.net/20130928173020359?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928173034937?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928173042546?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20130928173059343?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
5、添加devwdm.dll devwdm.h devwdm.lib到项目中,这些是摄像头的相关API
![](http://img.blog.csdn.net/20130928173118703?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbWE0NTExNTIwMDI=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
5、在StdAfx.h文件中加载动态链接库
#pragma comment(lib,"devwdm.lib")
6、添加头文件到响应的cpp应用文件中,进行测试
备注:相关资料下载http://download.csdn.net/detail/ma451152002/6334637
1、插入摄像头,安装驱动 VCap2800 USB2.0 DRV(windows 7)或者Vcap2820 sdk,两者依次尝试
注意:驱动有一下几种,如果USB2.0 DRVB不成功!!可以换驱动VCap2820 sdk进行尝试!!!
2、G:\VC++视频采集资料\USB2800\Vcap2820 sdk\Vcap2820 sdk目录下的 devwdm.ax 放到c:\windows\system32\目录下
3、打开 “运行”,输入 Regsvr32 c:\windows\system32\devwdm.ax 进行注册驱动
4、创建VC工程,基于对话框
5、添加devwdm.dll devwdm.h devwdm.lib到项目中,这些是摄像头的相关API
5、在StdAfx.h文件中加载动态链接库
#pragma comment(lib,"devwdm.lib")
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__1357FC0D_0191_4DD3_8CB5_4A15DA0B970C__INCLUDED_) #define AFX_STDAFX_H__1357FC0D_0191_4DD3_8CB5_4A15DA0B970C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers #include <afxwin.h> // MFC core and standard components #include <afxext.h> // MFC extensions #include <afxdisp.h> // MFC Automation classes #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls #ifndef _AFX_NO_AFXCMN_SUPPORT #include <afxcmn.h> // MFC support for Windows Common Controls #endif // _AFX_NO_AFXCMN_SUPPORT //注册动态链接库 #pragma comment(lib,"devwdm.lib") //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__1357FC0D_0191_4DD3_8CB5_4A15DA0B970C__INCLUDED_)
6、添加头文件到响应的cpp应用文件中,进行测试
#include "devwdm.h"
void CVideoDemoDlg::OnOK() { // TODO: Add extra validation here devwdm_InitCard(0,m_static.m_hWnd,300,400);//初始化 devwdm_StartVideoPreview(0);//启动 // CDialog::OnOK(); }
备注:相关资料下载http://download.csdn.net/detail/ma451152002/6334637
相关文章推荐
- VC++关于的VFW视频采集方案(续)【转 360doc】
- VC++中视频采集系统(摄像头的制作,串口通信的应用)
- VC使用Halcon打开图片以及视频采集显示
- VC++中视频采集系统(摄像头的制作,串口通信的应用)
- Voip程序中,视频采集的步骤
- V4L2视频采集实现步骤
- ffmpeg摄像头视频采集(1)---采集步骤概述并采集一帧视频
- [转载] ffmpeg摄像头视频采集-采集步骤概述并采集一帧视频
- VC++关于的VFW视频采集方案
- 想问一下,VC视频采集谁有资料啊???书本的那种介绍资料,电子书,网页也好啊、
- vc视频采集代码
- V4L2视频采集实现步骤
- .VC++关于的VFW视频采集方案【转 360doc】
- VC++实现视频聊天:VFW视频采集+FFmpeg编码
- YUYV编码成h.264:Linux视频采集与编码(二)
- 嵌入式LINUX环境下视频采集知识
- 基于mini2440的USB视频采集
- 计算机视觉(1)--摄像头采集视频信息
- VC++孙鑫视频笔记(十二)
- V4L2视频采集的基本流程