关于用 OpenCV 做视频图像采集的问题

47 views
Skip to first unread message

zhaojin lu

unread,
Jul 1, 2008, 12:57:42 AM7/1/08
to fsac...@googlegroups.com
Dear all:

我现在有一个问题,是关于用OpenCV 做视频图像采集,其实我只是采集静态图像,不是采集视频。

主要代码如下:


cvcamSetProperty(0, CVCAM_PROP_ENABLE, CVCAMTRUE);                 
cvcamSetProperty(0, CVCAM_PROP_RENDER, CVCAMTRUE);     
cvcamGetProperty(0, CVCAM_VIDEOFORMAT, NULL);
cvcamGetProperty(0, CVCAM_CAMERAPROPS, NULL);                       
     
cvcamSetProperty(0, CVCAM_PROP_WINDOW, &hWnd_proc);
cvcamSetProperty(0, CVCAM_PROP_CALLBACK, MonoImage);
     
if( !cvcamInit() )
    AfxMessageBox("Camera initialization failed!");
cvcamStart();



问题如下:  当使用函数 cvcamStart();后,会自动打开一个窗口显示视频,其实我不想显示视频,因为我是在后台处理,我只是想获取图像数据,并不想把他显示出来。
大家有没有什么办法可以启动视频采集,而又不显示视频窗口,谢谢。


--
卢昭金 ( Lu Zhaojin )
Ph.D candidate
Intelligent Systems Research Center,
2nd Research Complex 6th floor,
Sungkyunkwan University,
300 Cheoncheon-dong, Jangan-gu,
Suwon, Gyeonggi-do,
440-746, Korea
Tel: +82-31-299-6477
Mobile:+82-10-2970-1937
Fax: +82-31-299-6478
luzh...@gmail.com

Shiqi Yu

unread,
Jul 1, 2008, 1:02:15 AM7/1/08
to fsac...@googlegroups.com
你可以用 opencv.org.cn网站提供的 CCameraDS类。

2008/7/1 zhaojin lu <luzh...@gmail.com>:



--
Shiqi Yu
Shenzhen Institute of Advanced Technology,
Chinese Academy of Sciences.
Homepage: http://yushiqi.cn

Zhaojin Lu

unread,
Jul 1, 2008, 1:23:06 AM7/1/08
to fsac...@googlegroups.com
谢谢,我看看啊,回复这么快,非常感谢
 
 
2008-07-01

Zhaojin Lu
Ph.D candidate
Intelligent Systems Research Center,
2nd Research Complex 6th floor, Sungkyunkwan University
300 Cheoncheon-dong, Jangan-gu, Suwon, Gyeonggi-do, 440-746, Korea
Tel: +82-31-299-6477
Mobile:+82-10-2970-1937
Fax: +82-31-299-6478
luzh...@gmail.com

发件人: Shiqi Yu
发送时间: 2008-07-01  14:02:29
抄送:
主题: [FSA] Re: 关于用 OpenCV 做视频图像采集的问题

Zhaojin Lu

unread,
Jul 1, 2008, 1:41:02 AM7/1/08
to fsac...@googlegroups.com
Shiqi Yu ,你好
 
你的这个CCameraDS里面好像没有 camera 的属性设置啊 (比如分辨率等等)。
 
谢谢!
 
 
2008-07-01

Zhaojin Lu
Ph.D candidate
Intelligent Systems Research Center,
2nd Research Complex 6th floor, Sungkyunkwan University
300 Cheoncheon-dong, Jangan-gu, Suwon, Gyeonggi-do, 440-746, Korea
Tel: +82-31-299-6477
Mobile:+82-10-2970-1937
Fax: +82-31-299-6478
luzh...@gmail.com

发件人: Shiqi Yu
发送时间: 2008-07-01  14:02:29
抄送:
主题: [FSA] Re: 关于用 OpenCV 做视频图像采集的问题

Zhaojin Lu

unread,
Jul 1, 2008, 3:05:25 AM7/1/08
to fsac...@googlegroups.com
Dear All

需要采集的是静态图像,不是视频图像,我现在有一个视频头 ,Logitech QuickCam P9000, 这个sensor是2M的,所以最大的图像可以支持到 1600x1200(有效象素), 通过什么办法可以采集到高分辨率的图像,而且需要有 格式设置 对话框出现( 可以设置视频图像的size)
 
还有一个问题就是,我原来用VFW ,难道VFW的库最大分辨率只能支持到 640x480是吗? 
 
谢谢
 
 
 
 
2008-07-01

Zhaojin Lu
Ph.D candidate
Intelligent Systems Research Center,
2nd Research Complex 6th floor, Sungkyunkwan University
300 Cheoncheon-dong, Jangan-gu, Suwon, Gyeonggi-do, 440-746, Korea
Tel: +82-31-299-6477
Mobile:+82-10-2970-1937
Fax: +82-31-299-6478
luzh...@gmail.com

发件人: Shiqi Yu
发送时间: 2008-07-01  14:02:29
抄送:
主题: [FSA] Re: 关于用 OpenCV 做视频图像采集的问题

Shiqi Yu

unread,
Jul 1, 2008, 3:12:35 AM7/1/08
to fsac...@googlegroups.com
http://www.opencv.org.cn/forum is a better place for these kinds of questions.

2008/7/1 Zhaojin Lu <luzh...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages