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
94b5a740
Commit
94b5a740
authored
Nov 09, 2016
by
sourin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed with review comments.
parent
b2fa82ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
videoio.hpp
modules/videoio/include/opencv2/videoio.hpp
+10
-0
cap.cpp
modules/videoio/src/cap.cpp
+5
-0
No files found.
modules/videoio/include/opencv2/videoio.hpp
View file @
94b5a740
...
...
@@ -650,6 +650,16 @@ public:
*/
CV_WRAP
virtual
bool
open
(
int
index
);
/** @brief Open a camera for video capturing
@overload
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Parameters are similar as the constructor VideoCapture(int index),except it takes an additional argument apiPreference.
@return open(cameraNum + apiPreference).
*/
CV_WRAP
bool
open
(
int
cameraNum
,
int
apiPreference
);
/** @brief Returns true if video capturing has been initialized already.
If the previous call to VideoCapture constructor or VideoCapture::open() succeeded, the method returns
...
...
modules/videoio/src/cap.cpp
View file @
94b5a740
...
...
@@ -606,6 +606,11 @@ bool VideoCapture::open(int index)
cap
.
reset
(
cvCreateCameraCapture
(
index
));
return
isOpened
();
}
bool
VideoCapture
::
open
(
int
cameraNum
,
int
apiPreference
)
{
cameraNum
=
cameraNum
+
apiPreference
;
return
open
(
cameraNum
);
}
bool
VideoCapture
::
isOpened
()
const
{
...
...
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