Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f274c592
Commit
f274c592
authored
Jun 27, 2016
by
PkLab.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use copydoc for the list of valid property identifier in VideoCapture and VideoWriter docs
parent
6c3d8abe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
54 deletions
+59
-54
videoio.hpp
modules/videoio/include/opencv2/videoio.hpp
+59
-54
No files found.
modules/videoio/include/opencv2/videoio.hpp
View file @
f274c592
...
@@ -66,6 +66,16 @@ namespace cv
...
@@ -66,6 +66,16 @@ namespace cv
//! @{
//! @{
/** @brief Capture API backends.
/** @brief Capture API backends.
Select preferred API for a capture object.
To be used in the constructor VideoCapture::VideoCapture or VideoCapture::open
@note Backends are available only if they have been built with your OpenCV binaries.<br>
Check in <tt>cvconfig.h</tt> to know which APIs are currently available (e.g. <tt>HAVE_MSMF, HAVE_VFW, HAVE_LIBV4L</tt>).
To enable/disable APIs, you have to:
1. re-configure OpenCV using the appropriates CMake switches
(e.g. <tt>-DWITH_MSMF=ON -DWITH_VFW=ON ... </tt>) or checking related switch in cmake-gui
2. rebuild OpenCV itself
*/
*/
enum
{
CAP_ANY
=
0
,
//!< Auto detect
enum
{
CAP_ANY
=
0
,
//!< Auto detect
CAP_VFW
=
200
,
//!< Video For Windows (platform native)
CAP_VFW
=
200
,
//!< Video For Windows (platform native)
...
@@ -542,13 +552,13 @@ public:
...
@@ -542,13 +552,13 @@ public:
img_%02d.jpg, which will read samples like img_00.jpg, img_01.jpg, img_02.jpg, ...)
img_%02d.jpg, which will read samples like img_00.jpg, img_01.jpg, img_02.jpg, ...)
@param apiPreference preferred Capture API to use. Can be used to enforce a specific reader
@param apiPreference preferred Capture API to use. Can be used to enforce a specific reader
implementation if multiple are available: e.g.
CAP_FFMPEG or
CAP_IMAGES
implementation if multiple are available: e.g.
cv::CAP_FFMPEG or cv::
CAP_IMAGES
*/
*/
CV_WRAP
VideoCapture
(
const
String
&
filename
,
int
apiPreference
);
CV_WRAP
VideoCapture
(
const
String
&
filename
,
int
apiPreference
);
/** @overload
/** @overload
@param index = camera_id + domain_offset (CAP_*). id of the video capturing device to open. If there is a single
@param index = camera_id + domain_offset (CAP_*). id of the video capturing device to open. If there is a single
camera connected, just pass 0. Advanced Usage: to open Camera 1 using the MS Media Foundation API: index = 1 + CAP_MSMF
camera connected, just pass 0. Advanced Usage: to open Camera 1 using the MS Media Foundation API: index = 1 +
cv::
CAP_MSMF
*/
*/
CV_WRAP
VideoCapture
(
int
index
);
CV_WRAP
VideoCapture
(
int
index
);
...
@@ -565,7 +575,7 @@ public:
...
@@ -565,7 +575,7 @@ public:
/** @overload
/** @overload
@param index = camera_id + domain_offset (CAP_*). id of the video capturing device to open. If there is a single
@param index = camera_id + domain_offset (CAP_*). id of the video capturing device to open. If there is a single
camera connected, just pass 0. Advanced Usage: to open Camera 1 using the MS Media Foundation API: index = 1 + CAP_MSMF
camera connected, just pass 0. Advanced Usage: to open Camera 1 using the MS Media Foundation API: index = 1 +
cv::
CAP_MSMF
*/
*/
CV_WRAP
virtual
bool
open
(
int
index
);
CV_WRAP
virtual
bool
open
(
int
index
);
...
@@ -633,28 +643,26 @@ public:
...
@@ -633,28 +643,26 @@ public:
/** @brief Sets a property in the VideoCapture.
/** @brief Sets a property in the VideoCapture.
@param propId Property identifier. It can be one of the following:
@param propId Property identifier. It can be one of the following:
- **CAP_PROP_POS_MSEC** Current position of the video file in milliseconds.
- cv::CAP_PROP_POS_MSEC @copydoc cv::CAP_PROP_POS_MSEC
- **CAP_PROP_POS_FRAMES** 0-based index of the frame to be decoded/captured next.
- cv::CAP_PROP_POS_FRAMES @copydoc CAP_PROP_POS_FRAMES
- **CAP_PROP_POS_AVI_RATIO** Relative position of the video file: 0 - start of the
- cv::CAP_PROP_POS_AVI_RATIO @copydoc cv::CAP_PROP_POS_AVI_RATIO
film, 1 - end of the film.
- cv::CAP_PROP_FRAME_WIDTH @copydoc cv::CAP_PROP_FRAME_WIDTH
- **CAP_PROP_FRAME_WIDTH** Width of the frames in the video stream.
- cv::CAP_PROP_FRAME_HEIGHT @copydoc cv::CAP_PROP_FRAME_HEIGHT
- **CAP_PROP_FRAME_HEIGHT** Height of the frames in the video stream.
- cv::CAP_PROP_FPS @copydoc cv::CAP_PROP_FPS
- **CAP_PROP_FPS** Frame rate.
- cv::CAP_PROP_FOURCC @copydoc cv::CAP_PROP_FOURCC
- **CAP_PROP_FOURCC** 4-character code of codec.
- cv::CAP_PROP_FRAME_COUNT @copydoc cv::CAP_PROP_FRAME_COUNT
- **CAP_PROP_FRAME_COUNT** Number of frames in the video file.
- cv::CAP_PROP_FORMAT @copydoc cv::CAP_PROP_FORMAT
- **CAP_PROP_FORMAT** Format of the Mat objects returned by retrieve() .
- cv::CAP_PROP_MODE @copydoc cv::CAP_PROP_MODE
- **CAP_PROP_MODE** Backend-specific value indicating the current capture mode.
- cv::CAP_PROP_BRIGHTNESS @copydoc cv::CAP_PROP_BRIGHTNESS
- **CAP_PROP_BRIGHTNESS** Brightness of the image (only for cameras).
- cv::CAP_PROP_CONTRAST @copydoc cv::CAP_PROP_CONTRAST
- **CAP_PROP_CONTRAST** Contrast of the image (only for cameras).
- cv::CAP_PROP_SATURATION @copydoc cv::CAP_PROP_SATURATION
- **CAP_PROP_SATURATION** Saturation of the image (only for cameras).
- cv::CAP_PROP_HUE @copydoc cv::CAP_PROP_HUE
- **CAP_PROP_HUE** Hue of the image (only for cameras).
- cv::CAP_PROP_GAIN @copydoc cv::CAP_PROP_GAIN
- **CAP_PROP_GAIN** Gain of the image (only for cameras).
- cv::CAP_PROP_EXPOSURE @copydoc cv::CAP_PROP_EXPOSURE
- **CAP_PROP_EXPOSURE** Exposure (only for cameras).
- cv::CAP_PROP_CONVERT_RGB @copydoc cv::CAP_PROP_CONVERT_RGB
- **CAP_PROP_CONVERT_RGB** Boolean flags indicating whether images should be converted
- cv::CAP_PROP_WHITE_BALANCE_BLUE_U @copydoc cv::CAP_PROP_WHITE_BALANCE_BLUE_U
to RGB.
- cv::CAP_PROP_WHITE_BALANCE_RED_V @copydoc cv::CAP_PROP_WHITE_BALANCE_RED_V
- **CAP_PROP_WHITE_BALANCE** Currently unsupported
- cv::CAP_PROP_RECTIFICATION @copydoc cv::CAP_PROP_RECTIFICATION
- **CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported
by DC1394 v 2.x backend currently)
@param value Value of the property.
@param value Value of the property.
*/
*/
CV_WRAP
virtual
bool
set
(
int
propId
,
double
value
);
CV_WRAP
virtual
bool
set
(
int
propId
,
double
value
);
...
@@ -662,29 +670,26 @@ public:
...
@@ -662,29 +670,26 @@ public:
/** @brief Returns the specified VideoCapture property
/** @brief Returns the specified VideoCapture property
@param propId Property identifier. It can be one of the following:
@param propId Property identifier. It can be one of the following:
- **CAP_PROP_POS_MSEC** Current position of the video file in milliseconds or video
- cv::CAP_PROP_POS_MSEC @copydoc cv::CAP_PROP_POS_MSEC
capture timestamp.
- cv::CAP_PROP_POS_FRAMES @copydoc CAP_PROP_POS_FRAMES
- **CAP_PROP_POS_FRAMES** 0-based index of the frame to be decoded/captured next.
- cv::CAP_PROP_POS_AVI_RATIO @copydoc cv::CAP_PROP_POS_AVI_RATIO
- **CAP_PROP_POS_AVI_RATIO** Relative position of the video file: 0 - start of the
- cv::CAP_PROP_FRAME_WIDTH @copydoc cv::CAP_PROP_FRAME_WIDTH
film, 1 - end of the film.
- cv::CAP_PROP_FRAME_HEIGHT @copydoc cv::CAP_PROP_FRAME_HEIGHT
- **CAP_PROP_FRAME_WIDTH** Width of the frames in the video stream.
- cv::CAP_PROP_FPS @copydoc cv::CAP_PROP_FPS
- **CAP_PROP_FRAME_HEIGHT** Height of the frames in the video stream.
- cv::CAP_PROP_FOURCC @copydoc cv::CAP_PROP_FOURCC
- **CAP_PROP_FPS** Frame rate.
- cv::CAP_PROP_FRAME_COUNT @copydoc cv::CAP_PROP_FRAME_COUNT
- **CAP_PROP_FOURCC** 4-character code of codec.
- cv::CAP_PROP_FORMAT @copydoc cv::CAP_PROP_FORMAT
- **CAP_PROP_FRAME_COUNT** Number of frames in the video file.
- cv::CAP_PROP_MODE @copydoc cv::CAP_PROP_MODE
- **CAP_PROP_FORMAT** Format of the Mat objects returned by retrieve() .
- cv::CAP_PROP_BRIGHTNESS @copydoc cv::CAP_PROP_BRIGHTNESS
- **CAP_PROP_MODE** Backend-specific value indicating the current capture mode.
- cv::CAP_PROP_CONTRAST @copydoc cv::CAP_PROP_CONTRAST
- **CAP_PROP_BRIGHTNESS** Brightness of the image (only for cameras).
- cv::CAP_PROP_SATURATION @copydoc cv::CAP_PROP_SATURATION
- **CAP_PROP_CONTRAST** Contrast of the image (only for cameras).
- cv::CAP_PROP_HUE @copydoc cv::CAP_PROP_HUE
- **CAP_PROP_SATURATION** Saturation of the image (only for cameras).
- cv::CAP_PROP_GAIN @copydoc cv::CAP_PROP_GAIN
- **CAP_PROP_HUE** Hue of the image (only for cameras).
- cv::CAP_PROP_EXPOSURE @copydoc cv::CAP_PROP_EXPOSURE
- **CAP_PROP_GAIN** Gain of the image (only for cameras).
- cv::CAP_PROP_CONVERT_RGB @copydoc cv::CAP_PROP_CONVERT_RGB
- **CAP_PROP_EXPOSURE** Exposure (only for cameras).
- cv::CAP_PROP_WHITE_BALANCE_BLUE_U @copydoc cv::CAP_PROP_WHITE_BALANCE_BLUE_U
- **CAP_PROP_CONVERT_RGB** Boolean flags indicating whether images should be converted
- cv::CAP_PROP_WHITE_BALANCE_RED_V @copydoc cv::CAP_PROP_WHITE_BALANCE_RED_V
to RGB.
- cv::CAP_PROP_RECTIFICATION @copydoc cv::CAP_PROP_RECTIFICATION
- **CAP_PROP_WHITE_BALANCE** Currently not supported
- **CAP_PROP_RECTIFICATION** Rectification flag for stereo cameras (note: only supported
by DC1394 v 2.x backend currently)
@note When querying a property that is not supported by the backend used by the VideoCapture
@note When querying a property that is not supported by the backend used by the VideoCapture
class, value 0 is returned.
class, value 0 is returned.
...
@@ -697,7 +702,7 @@ public:
...
@@ -697,7 +702,7 @@ public:
img_%02d.jpg, which will read samples like img_00.jpg, img_01.jpg, img_02.jpg, ...)
img_%02d.jpg, which will read samples like img_00.jpg, img_01.jpg, img_02.jpg, ...)
@param apiPreference preferred Capture API to use. Can be used to enforce a specific reader
@param apiPreference preferred Capture API to use. Can be used to enforce a specific reader
implementation if multiple are available: e.g.
CAP_FFMPEG or
CAP_IMAGES
implementation if multiple are available: e.g.
cv::CAP_FFMPEG or cv::
CAP_IMAGES
The methods first call VideoCapture::release to close the already opened file or camera.
The methods first call VideoCapture::release to close the already opened file or camera.
*/
*/
...
@@ -772,8 +777,8 @@ public:
...
@@ -772,8 +777,8 @@ public:
/** @brief Sets a property in the VideoWriter.
/** @brief Sets a property in the VideoWriter.
@param propId Property identifier. It can be one of the following:
@param propId Property identifier. It can be one of the following:
-
**VIDEOWRITER_PROP_QUALITY** Quality (0..100%) of the videostream encoded. Can be adjusted dynamically in some codecs.
-
cv::VIDEOWRITER_PROP_QUALITY @copydoc cv::VIDEOWRITER_PROP_QUALITY
-
**VIDEOWRITER_PROP_NSTRIPES** Number of stripes for parallel encoding
-
cv::VIDEOWRITER_PROP_NSTRIPES @copydoc cv::VIDEOWRITER_PROP_NSTRIPES
@param value Value of the property.
@param value Value of the property.
*/
*/
CV_WRAP
virtual
bool
set
(
int
propId
,
double
value
);
CV_WRAP
virtual
bool
set
(
int
propId
,
double
value
);
...
@@ -781,9 +786,9 @@ public:
...
@@ -781,9 +786,9 @@ public:
/** @brief Returns the specified VideoWriter property
/** @brief Returns the specified VideoWriter property
@param propId Property identifier. It can be one of the following:
@param propId Property identifier. It can be one of the following:
-
**VIDEOWRITER_PROP_QUALITY** Current quality of the encoded videostream.
-
cv::VIDEOWRITER_PROP_QUALITY @copydoc cv::VIDEOWRITER_PROP_QUALITY
-
**VIDEOWRITER_PROP_FRAMEBYTES** (Read-only) Size of just encoded video frame; note that the encoding order may be different from representation order.
-
cv::VIDEOWRITER_PROP_FRAMEBYTES @copydoc VIDEOWRITER_PROP_FRAMEBYTES
-
**VIDEOWRITER_PROP_NSTRIPES** Number of stripes for parallel encoding
-
cv::VIDEOWRITER_PROP_NSTRIPES @copydoc cv::VIDEOWRITER_PROP_NSTRIPES
@note When querying a property that is not supported by the backend used by the VideoWriter
@note When querying a property that is not supported by the backend used by the VideoWriter
class, value 0 is returned.
class, value 0 is returned.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment