AForge.NET

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

problem with Pan/Tilt using CameraControlProperty.Pan

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

problem with Pan/Tilt using CameraControlProperty.Pan

Postby uripeled » Tue Nov 24, 2015 12:15 pm

private FilterInfoCollection CaptureDevice; // list of webcam

private VideoCaptureDevice FinalFrame;

CaptureDevice = new FilterInfoCollection(FilterCategory.VideoInputDevice);//constructor
foreach (FilterInfo Device in CaptureDevice)
{
comboBox1.Items.Add(Device.Name);
}

comboBox1.SelectedIndex = 1; // default

FinalFrame = new VideoCaptureDevice(CaptureDevice[1].MonikerString);// specified web cam and its filter moniker string comboBox1.SelectedIndex

FinalFrame.NewFrame += new NewFrameEventHandler(FinalFrame_NewFrame);// click button event is fired,

FinalFrame.Start();

FinalFrame.SetCameraProperty(CameraControlProperty.Pan, -180, CameraControlFlags.Auto); //not working

FinalFrame.SetVideoProperty(VideoProcAmpProperty.Contrast, 30, VideoProcAmpFlags.Manual); //working


//========================================================================================

here is part of my code I can control the contrast on my C615 Camera but cant Pan or Tilt

Please advice what I am doing wrong

Thank you

Uri
uripeled
 
Posts: 1
Joined: Tue Nov 24, 2015 11:44 am



Return to AForge.NET Framework