AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Logitech C920 Snapshot

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

Logitech C920 Snapshot

Postby Econ49 » Fri Sep 14, 2018 2:11 pm

Hello,

I've got a problem with my cam (Logitech c920 Pro HD). I want to take a snapshot by the still pin of this camera. I try to use SimulateTrigger() method, but when method is call my camera light flash and no event from new frame snapshot are fired.

Code: Select all
videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice );
capture videoSource = new VideoCaptureDevice(videoDevices[3].MonikerString );
capture.VideoResolution = capture.VideoCapabilities[5];
capture.SnapshotResolution = capture.SnapshotCapabilities[10]; // there are 19 snapshots capabilities in list
capture.ProvideSnapshots = true;

capture.NewFrame += new NewFrameEventHandler( video_NewFrame );
capture.SnapshotFrame += Capture_SnapshotFrame;

capture.Start( );

private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            capture.SimulateTrigger();
        }
Econ49
 
Posts: 1
Joined: Fri Sep 14, 2018 2:02 pm



Return to AForge.NET Framework