2017-07-06 9 views
0

Logitech USB webcamのスナップショットをコンソールアプリケーションでキャプチャするというシンプルで完全な例が必要ですが、わかりません。コンソールアプリケーションでwebcamとEmguCVをc#で使用する

次の命令は機能しません。

private Capture _capture = null; //Camera 

キャプチャ定義はどこにありますか? Emgu.CV.Worldではそうではありません。

EmguCVの3.2.0バージョンを使用します。

http://www.emgu.com/wiki/index.php?title=Camera_Capture

事前にありがとうございます。

The error is the attached image

答えて

0

あなたは全体の記事を読みましたか?それはここで具体化されます:

private void SetupCapture(int Camera_Identifier) 
    { 
     //update the selected device 
     CameraDevice = Camera_Identifier; 

     //Dispose of Capture if it was created before 
     if (_capture != null) _capture.Dispose(); 
     try 
     { 
      //Set up capture device 
      _capture = new Capture(CameraDevice); 
      _capture.ImageGrabbed += ProcessFrame; 
     } 
     catch (NullReferenceException excpt) 
     { 
      MessageBox.Show(excpt.Message); 
     } 
    } 

これは役立ちます。

ダグ

+0

問題は、キャプチャクラスを使用していることです。どのような使用が必要ですか? – asegurpe

+0

申し訳ありませんが、私はその質問を理解していません。 – AeroClassics

+0

問題があるスクリーンショットを添付しました。ありがとう!!! – asegurpe