/// <summary> /// Sets the specified property of video capturing /// </summary> /// <param name="property">Property identifier</param> /// <param name="value">Value of the property</param> public void SetCaptureProperty(CvEnum.CAP_PROP property, double value) { /* * if (_captureModuleType == CaptureModuleType.FFMPEG) * CvInvoke.cvSetCaptureProperty_FFMPEG(Ptr, property, value); * else*/ CvInvoke.cvSetCaptureProperty(Ptr, property, value); }
/// <summary> /// Sets the specified property of video capturing /// </summary> /// <param name="property">Property identifier</param> /// <param name="value">Value of the property</param> public void SetCaptureProperty(CvEnum.CAP_PROP property, double value) { CvInvoke.cvSetCaptureProperty(Ptr, property, value); }
/// <summary> /// Obtain the capture property /// </summary> /// <param name="index">The index for the property</param> /// <returns>The value of the specific property</returns> public double GetCaptureProperty(CvEnum.CAP_PROP index) { return(CvInvoke.cvGetCaptureProperty(_ptr, index)); }
public static extern void cvSetCaptureProperty(IntPtr capture, CvEnum.CAP_PROP property_id, double value);
public static extern double cvGetCaptureProperty(IntPtr capture, CvEnum.CAP_PROP prop);
/// <summary> /// Obtain the capture property /// </summary> /// <param name="index">The index for the property</param> /// <returns>The value of the specific property</returns> public double GetCaptureProperty(CvEnum.CAP_PROP index) { return /*_captureModuleType == CaptureModuleType.FFMPEG ? CvInvoke.cvGetCaptureProperty_FFMPEG(Ptr, index) :*/ (CvInvoke.cvGetCaptureProperty(_ptr, index)); }