close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
DirectShow 取得攝影機列表
May 28th 2013, 22:53

請問,我是初學者,我希望從攝影機擷取影像然後作影像處理。由於 openCV 這台 NB 裝完問題還是很多,所以決定用 DirectShow。我參考這個網站

http://blog.csdn.net/capboy/article/details/8698

結果我就死在第一步了...連設備都抓不到,然後寫了一個簡單的測試用 HRESURT 去看 CoCreateInstance  作用是否成功, 請問問題出在哪裡阿>"<

#include<stdio.h>

#include<stdlib.h>
#include<dshow.h>
 
int main(int argc, char* argv[])
{
    ICreateDevEnum  *pCreateDevEnum ;
    HRESULT hr;
 
    hr=CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, IID_ICreateDevEnum, (void**)&pCreateDevEnum);
    printf("%d\n",SUCCEEDED(hr)); //印出是否啟動成功, 1成功, 0失敗
 
    system("pause");
    return 0;
}

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 sdfgdf2 的頭像
    sdfgdf2

    中文名字日文翻譯, 中文翻譯日文名字, 名字日文翻譯, 日文翻譯名字, 日文翻譯字典發音, 日文翻譯網 漢字,

    sdfgdf2 發表在 痞客邦 留言(0) 人氣()