OpenCV/Patch to enable capturing using DirectShow? on OpenCV 2.3 †
#multilang(ja){{
概要
OpenCV 2.3からOpenCVのソースにVideoInput?の実装が組み込まれるようになりました.
その影響からVisual Studio 2005とWindows SDKをインストールした状態で
WITH_VIDEOINPUTを有効にするとビルドエラーが出てしまいます.
このページではこの問題を回避する方法を紹介します.
※こちらで配布されているOpenCV-2.3.0-win-src.zipを対象としたパッチです.
ダウンロード
Version | Filename | Size | Date | Type | Download |
1.0 | highgui_dshow_capture_patch_v1.zip | 23.6 KB | 20110710 | zip | |
変更履歴
Version | Date | 変更内容 |
1.0 | 20110710 | 新規作成 |
内容物
変更内容
- OpenCV内部にあるdshowディレクトリのヘッダを参照しないように変更
- _MSC_VERが1400(=VS2005)以上であればWindows SDKのヘッダを参照するよう変更
使い方
- 上記リンクからhighgui_dshow_capture_patch_v1.zipをダウンロードして展開します.
- 展開したファイル(cap_dshow.cpp)を下記ディレクトリにコピーして下さい.
OpenCV-2.3.0\modules\highgui\src
- CMakeでWITH_VIDEOINPUTを有効にしてビルドしてください.
Contact
間違い・御指摘等ありましたら,
までメールにてご連絡ください.
}}
#multilang(en){{
Abstract
This page describes the way to enable capturing using DirectShow? on OpenCV 2.3.
VideoInput? library code was merged to highgui code on OpenCV 2.3.
In the result, OpenCV 2.3(WITH_VIDEOINPUT enable) can not build
when you install Visual Studio 2005 and Windows SDK.
This patch is intended for OpenCV-2.3.0-win-src.zip in Official Release.
Download
Version | Filename | Size | Date | Type | Download |
1.0 | highgui_dshow_capture_patch_v1.zip | 23.6 KB | 20110710 | zip | |
ChangeLog?
Version | Date | Changes |
1.0 | 20110710 | First Release |
Files
The contents of the patch
- This patch changed that OpenCV does not refer to header files in "dshow" directory.
- Instead, this patch changed that OpenCV refers to header files in Windows SDK.
Usage
- Please download highgui_dshow_fps_patch_v1.zip. And,extract this file.
- Please overwrite the patch's files to the following directory.
OpenCV-2.3.0\modules\highgui\src
- Please enable WITH_VIDEOINPUT on CMake, and build OpenCV.
Contact
If you have question,please send e-mail to the following address.
}}