2017-07-06 1 views
0

Ich brauche ein einfaches, aber vollständiges Beispiel für die Aufnahme eines Snapshots von Logitech USB Webcam in einer Konsolenanwendung, aber ich finde nicht.Take Snapshot mit Webcam und EmguCV in C# in der Konsolenanwendung

Die nächste Anweisung funktioniert nicht.

private Capture _capture = null; //Camera 

Wo ist die Capture-Definition? In der Emgu.CV.World ist es nicht so.

Ich benutze die Version 3.2.0 von EmguCV.

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

Vielen Dank im Voraus.

The error is the attached image

Antwort

0

Lasen Sie den gesamten Artikel? Es ist instanziiert hier:

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); 
     } 
    } 

Hoffe, dass dies hilft.

Doug

+0

Das Problem liegt in der Verwendung der Capture-Klasse. Was ist nötig? – asegurpe

+0

Sorry, ich verstehe die Frage nicht. – AeroClassics

+0

Ich habe einen Screenshot mit dem Problem anhängen. Vielen Dank!!! – asegurpe