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を対象としたパッチです.

ダウンロード

VersionFilenameSizeDateTypeDownload
1.0highgui_dshow_capture_patch_v1.zip23.6 KB20110710ziphttp://www.atinfinity.info/opencv/extension/highgui_dshow_capture_patch_v1.zip

変更履歴

VersionDate変更内容
1.020110710新規作成

内容物

  • cap_dshow.cpp
    OpenCV 2.3でDirectShowによるキャプチャを有効にするパッチ

変更内容

  • OpenCV内部にあるdshowディレクトリのヘッダを参照しないように変更
  • _MSC_VERが1400(=VS2005)以上であればWindows SDKのヘッダを参照するよう変更

使い方

  1. 上記リンクからhighgui_dshow_capture_patch_v1.zipをダウンロードして展開します.
  2. 展開したファイル(cap_dshow.cpp)を下記ディレクトリにコピーして下さい.
    OpenCV-2.3.0\modules\highgui\src
  3. CMakeでWITH_VIDEOINPUTを有効にしてビルドしてください.

Contact

間違い・御指摘等ありましたら,

mail.png

までメールにてご連絡ください.

}}

#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

VersionFilenameSizeDateTypeDownload
1.0highgui_dshow_capture_patch_v1.zip23.6 KB20110710ziphttp://www.atinfinity.info/opencv/extension/highgui_dshow_capture_patch_v1.zip

ChangeLog?

VersionDateChanges
1.020110710First Release

Files

  • cap_dshow.cpp
    This is patch to enable capturing using DirectShow on OpenCV 2.3.

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

  1. Please download highgui_dshow_fps_patch_v1.zip. And,extract this file.
  2. Please overwrite the patch's files to the following directory.
    OpenCV-2.3.0\modules\highgui\src
  3. Please enable WITH_VIDEOINPUT on CMake, and build OpenCV.

Contact

If you have question,please send e-mail to the following address.

mail.png

}}


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-07-10 (日) 03:42:00 (4674d)