Skip to content

Commit 82902b6

Browse files
committed
Merge pull request opencv#8082 from PkLab:fix_videoio_doc
2 parents 124c482 + eb76851 commit 82902b6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

modules/videoio/include/opencv2/videoio.hpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ enum VideoCaptureAPIs {
118118
};
119119

120120
/** @brief %VideoCapture generic properties identifier.
121+
122+
Reading / writing properties involves many layers. Some unexpected result might happens along this chain.
123+
Effective behaviour depends from device hardware, driver and API Backend.
121124
@sa videoio_flags_others, VideoCapture::get(), VideoCapture::set()
122125
*/
123126
enum VideoCaptureProperties {
@@ -131,12 +134,12 @@ enum VideoCaptureProperties {
131134
CAP_PROP_FRAME_COUNT =7, //!< Number of frames in the video file.
132135
CAP_PROP_FORMAT =8, //!< Format of the %Mat objects returned by VideoCapture::retrieve().
133136
CAP_PROP_MODE =9, //!< Backend-specific value indicating the current capture mode.
134-
CAP_PROP_BRIGHTNESS =10, //!< Brightness of the image (only for cameras).
137+
CAP_PROP_BRIGHTNESS =10, //!< Brightness of the image (only for those cameras that support).
135138
CAP_PROP_CONTRAST =11, //!< Contrast of the image (only for cameras).
136139
CAP_PROP_SATURATION =12, //!< Saturation of the image (only for cameras).
137140
CAP_PROP_HUE =13, //!< Hue of the image (only for cameras).
138-
CAP_PROP_GAIN =14, //!< Gain of the image (only for cameras).
139-
CAP_PROP_EXPOSURE =15, //!< Exposure (only for cameras).
141+
CAP_PROP_GAIN =14, //!< Gain of the image (only for those cameras that support).
142+
CAP_PROP_EXPOSURE =15, //!< Exposure (only for those cameras that support).
140143
CAP_PROP_CONVERT_RGB =16, //!< Boolean flags indicating whether images should be converted to RGB.
141144
CAP_PROP_WHITE_BALANCE_BLUE_U =17, //!< Currently unsupported.
142145
CAP_PROP_RECTIFICATION =18, //!< Rectification flag for stereo cameras (note: only supported by DC1394 v 2.x backend currently).
@@ -157,7 +160,7 @@ enum VideoCaptureProperties {
157160
CAP_PROP_TILT =34,
158161
CAP_PROP_ROLL =35,
159162
CAP_PROP_IRIS =36,
160-
CAP_PROP_SETTINGS =37, //! Pop up video/camera filter dialog (note: only supported by DSHOW backend currently. Property value is ignored)
163+
CAP_PROP_SETTINGS =37, //!< Pop up video/camera filter dialog (note: only supported by DSHOW backend currently. The property value is ignored)
161164
CAP_PROP_BUFFERSIZE =38,
162165
CAP_PROP_AUTOFOCUS =39
163166
};
@@ -668,9 +671,9 @@ class CV_EXPORTS_W VideoCapture
668671
669672
@overload
670673
671-
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
672674
Parameters are similar as the constructor VideoCapture(int index),except it takes an additional argument apiPreference.
673-
@return open(cameraNum + apiPreference).
675+
Definitely, is same as open(int index) where `index=cameraNum + apiPreference`
676+
@return `true` if the camera has been successfully opened.
674677
*/
675678
CV_WRAP bool open(int cameraNum, int apiPreference);
676679

0 commit comments

Comments
 (0)