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
b6456297
Commit
b6456297
authored
Jun 01, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended highgui VideoCapture::get/set property documentation (thanks to frm)
parent
d3ae1d19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
6 deletions
+100
-6
HighGui.tex
doc/HighGui.tex
+100
-6
No files found.
doc/HighGui.tex
View file @
b6456297
...
...
@@ -404,9 +404,10 @@ Gets video capturing properties.
\cvdefC
{
double cvGetCaptureProperty( CvCapture* capture, int property
\_
id );
}
\cvdefPy
{
GetCaptureProperty(capture, property
\_
id)->double
}
% when updating the list below, remember to update it also in the cvSetCaptureProperty, cv::VideoCapture::get/set() functions docs
\begin{description}
\cvarg
{
capture
}{
video capturing structure.
}
\cvarg
{
property
\_
id
}{
Property identifier. Can be one of the following:
\cvarg
{
property
\_
id
}{
Property identifier. Can be one of the following:
}
\begin{description}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
MSEC
}{
Film current position in milliseconds or video capture timestamp
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
FRAMES
}{
0-based index of the frame to be decoded/captured next
}
...
...
@@ -416,11 +417,18 @@ Gets video capturing properties.
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FPS
}{
Frame rate
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FOURCC
}{
4-character code of codec
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
COUNT
}{
Number of frames in the video file
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FORMAT
}{
The format of the Mat objects returned by retrieve()
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
MODE
}{
A backend-specific value indicating the current capture mode
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
BRIGHTNESS
}{
Brightness of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONTRAST
}{
Contrast of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
SATURATION
}{
Saturation of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
HUE
}{
Hue of the image (only for cameras)
}
\end{description}
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
GAIN
}{
Gain of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
EXPOSURE
}{
Exposure (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONVERT
\_
RGB
}{
Boolean flags indicating whether images should be converted to RGB
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
WHITE
\_
BALANCE
}{
Currently unsupported
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
RECTIFICATION
}{
TOWRITE (note: only supported by DC1394 v 2.x backend currently)
}
\end{description}
\end{description}
The function
\texttt
{
cvGetCaptureProperty
}
retrieves the specified property of the camera or video file.
...
...
@@ -482,10 +490,10 @@ Sets video capturing properties.
\cvdefC
{
int cvSetCaptureProperty(
\par
CvCapture* capture,
\par
int property
\_
id,
\par
double value );
}
\cvdefPy
{
SetCaptureProperty(capture, property
\_
id,value)->None
}
% when updating the list below, remember to update it also in the cvGetCaptureProperty, cv::VideoCapture::get/set() functions docs
\begin{description}
\cvarg
{
capture
}{
video capturing structure.
}
\cvarg
{
property
\_
id
}{
property identifier. Can be one of the following:
\cvarg
{
property
\_
id
}{
property identifier. Can be one of the following:
}
\begin{description}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
MSEC
}{
Film current position in milliseconds or video capture timestamp
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
FRAMES
}{
0-based index of the frame to be decoded/captured next
}
...
...
@@ -494,12 +502,19 @@ Sets video capturing properties.
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
HEIGHT
}{
Height of the frames in the video stream
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FPS
}{
Frame rate
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FOURCC
}{
4-character code of codec
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
COUNT
}{
Number of frames in the video file
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FORMAT
}{
The format of the Mat objects returned by retrieve()
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
MODE
}{
A backend-specific value indicating the current capture mode
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
BRIGHTNESS
}{
Brightness of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONTRAST
}{
Contrast of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
SATURATION
}{
Saturation of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
HUE
}{
Hue of the image (only for cameras)
}
\end{description}
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
GAIN
}{
Gain of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
EXPOSURE
}{
Exposure (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONVERT
\_
RGB
}{
Boolean flags indicating whether images should be converted to RGB
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
WHITE
\_
BALANCE
}{
Currently unsupported
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
RECTIFICATION
}{
TOWRITE (note: only supported by DC1394 v 2.x backend currently)
}
\end{description}
\cvarg
{
value
}{
value of the property.
}
\end{description}
...
...
@@ -818,6 +833,85 @@ int main(int, char**)
}
\end{lstlisting}
\cvCppFunc
{
VideoCapture::VideoCapture
}
\cvdefCpp
{
VideoCapture::VideoCapture();
\newline
VideoCapture::VideoCapture(const string
\&
filename);
\newline
VideoCapture::VideoCapture(int device);
}
\begin{description}
\cvarg
{
filename
}{
TOWRITE
}
\cvarg
{
device
}{
TOWRITE
}
\end{description}
VideoCapture constructors.
\cvCppFunc
{
VideoCapture::get
}
\cvdefCpp
{
double VideoCapture::get(int property
\_
id);
}
% when updating the list below, remember to update it also in the cvGet/SetCaptureProperty, cv::VideoCapture::set() functions docs
\begin{description}
\cvarg
{
property
\_
id
}{
Property identifier. Can be one of the following:
}
\begin{description}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
MSEC
}{
Film current position in milliseconds or video capture timestamp
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
FRAMES
}{
0-based index of the frame to be decoded/captured next
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
AVI
\_
RATIO
}{
Relative position of the video file (0 - start of the film, 1 - end of the film)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
WIDTH
}{
Width of the frames in the video stream
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
HEIGHT
}{
Height of the frames in the video stream
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FPS
}{
Frame rate
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FOURCC
}{
4-character code of codec
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
COUNT
}{
Number of frames in the video file
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FORMAT
}{
The format of the Mat objects returned by retrieve()
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
MODE
}{
A backend-specific value indicating the current capture mode
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
BRIGHTNESS
}{
Brightness of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONTRAST
}{
Contrast of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
SATURATION
}{
Saturation of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
HUE
}{
Hue of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
GAIN
}{
Gain of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
EXPOSURE
}{
Exposure (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONVERT
\_
RGB
}{
Boolean flags indicating whether images should be converted to RGB
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
WHITE
\_
BALANCE
}{
Currently unsupported
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
RECTIFICATION
}{
TOWRITE (note: only supported by DC1394 v 2.x backend currently)
}
\end{description}
\end{description}
Note that when querying a property which is unsupported by the backend used by the VideoCapture class, the value 0 is returned.
\cvCppFunc
{
VideoCapture::set
}
\cvdefCpp
{
bool VideoCapture::set(int property
\_
id, double value);
}
% when updating the list below, remember to update it also in the cvGet/SetCaptureProperty, cv::VideoCapture::get() functions docs
\begin{description}
\cvarg
{
property
\_
id
}{
Property identifier. Can be one of the following:
}
\begin{description}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
MSEC
}{
Film current position in milliseconds or video capture timestamp
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
FRAMES
}{
0-based index of the frame to be decoded/captured next
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
POS
\_
AVI
\_
RATIO
}{
Relative position of the video file (0 - start of the film, 1 - end of the film)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
WIDTH
}{
Width of the frames in the video stream
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
HEIGHT
}{
Height of the frames in the video stream
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FPS
}{
Frame rate
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FOURCC
}{
4-character code of codec
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FRAME
\_
COUNT
}{
Number of frames in the video file
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
FORMAT
}{
The format of the Mat objects returned by retrieve()
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
MODE
}{
A backend-specific value indicating the current capture mode
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
BRIGHTNESS
}{
Brightness of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONTRAST
}{
Contrast of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
SATURATION
}{
Saturation of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
HUE
}{
Hue of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
GAIN
}{
Gain of the image (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
EXPOSURE
}{
Exposure (only for cameras)
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
CONVERT
\_
RGB
}{
Boolean flags indicating whether images should be converted to RGB
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
WHITE
\_
BALANCE
}{
Currently unsupported
}
\cvarg
{
CV
\_
CAP
\_
PROP
\_
RECTIFICATION
}{
TOWRITE (note: only supported by DC1394 v 2.x backend currently)
}
\end{description}
\cvarg
{
value
}{
value of the property.
}
\end{description}
Sets a property in the VideoCapture backend.
\cvclass
{
VideoWriter
}
Video writer class
...
...
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