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
8cf6b56f
Commit
8cf6b56f
authored
Dec 01, 2010
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print on error
parent
4c95848c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
starter_video.cpp
samples/cpp/starter_video.cpp
+2
-1
No files found.
samples/cpp/starter_video.cpp
View file @
8cf6b56f
...
@@ -61,7 +61,8 @@ int main(int ac, char** av) {
...
@@ -61,7 +61,8 @@ int main(int ac, char** av) {
if
(
!
capture
.
isOpened
())
//if this fails, try to open as a video camera, through the use of an integer param
if
(
!
capture
.
isOpened
())
//if this fails, try to open as a video camera, through the use of an integer param
capture
.
open
(
atoi
(
arg
.
c_str
()));
capture
.
open
(
atoi
(
arg
.
c_str
()));
if
(
!
capture
.
isOpened
())
{
if
(
!
capture
.
isOpened
())
{
cerr
<<
"Failed to open a video device or video file!"
<<
endl
;
cerr
<<
"Failed to open a video device or video file!
\n
"
<<
endl
;
help
(
av
);
return
1
;
return
1
;
}
}
return
process
(
capture
);
return
process
(
capture
);
...
...
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