Table of Contents

Method Set

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Set(VideoCaptureProperties, double)

Sets a property in the VideoCapture.

public bool Set(VideoCaptureProperties propertyId, double value)

Parameters

propertyId VideoCaptureProperties

Property identifier from cv::VideoCaptureProperties (eg. cv::CAP_PROP_POS_MSEC, cv::CAP_PROP_POS_FRAMES, ...) or one from @ref videoio_flags_others

value double

Value of the property.

Returns

bool

true if the property is supported by backend used by the VideoCapture instance.

Set(int, double)

Sets a property in the VideoCapture.

public bool Set(int propertyId, double value)

Parameters

propertyId int

Property identifier from cv::VideoCaptureProperties (eg. cv::CAP_PROP_POS_MSEC, cv::CAP_PROP_POS_FRAMES, ...) or one from @ref videoio_flags_others

value double

Value of the property.

Returns

bool

true if the property is supported by backend used by the VideoCapture instance.