Browse Source

Added ExceptionMode to VideoCapture.

pull/461/head
Canming Huang 4 years ago
parent
commit
feb54c24c6
  1. 13
      Emgu.CV.Extern/CMakeLists.txt
  2. 7
      Emgu.CV/Videoio/VideoCapture.cs

13
Emgu.CV.Extern/CMakeLists.txt

@ -1755,12 +1755,13 @@ ENDIF()
"${CMAKE_CURRENT_SOURCE_DIR}/../Emgu.CV/Videoio/VideoCapture.g.cs"
"cv::VideoCapture"
"VideoCapture"
"isOpened"
"bool"
"val"
"IsOpened"
"bool"
"True if the camera is opened"
"isOpened;ExceptionMode"
"bool;bool"
"val;prop"
"IsOpened;ExceptionMode"
"bool;bool"
"True if the camera is opened;
If True, methods raise exceptions if not successful instead of returning an error code"
"Emgu.CV"
"CvInvoke"
"VideoCapture"

7
Emgu.CV/Videoio/VideoCapture.cs

@ -368,12 +368,13 @@ namespace Emgu.CV
}
/// <summary>
/// Sets the specified property of video capturing
/// Sets the specified property of video capture
/// </summary>
/// <param name="property">Property identifier</param>
/// <param name="value">Value of the property</param>
/// <returns>True if success</returns>
public bool SetCaptureProperty(CvEnum.CapProp property, double value)
/// <returns>True if the property is supported by backend used by the VideoCapture instance.</returns>
/// <remarks>Even if it returns true this doesn't ensure that the property value has been accepted by the capture device.</remarks>
public bool Set(CvEnum.CapProp property, double value)
{
return CvInvoke.cveVideoCaptureSet(Ptr, property, value);
}

Loading…
Cancel
Save