Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
0cd76f89
Commit
0cd76f89
authored
May 18, 2016
by
Davis King
Browse files
Added an error message if a camera isn't available.
parent
617ffba6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
examples/webcam_face_pose_ex.cpp
examples/webcam_face_pose_ex.cpp
+6
-0
No files found.
examples/webcam_face_pose_ex.cpp
View file @
0cd76f89
...
...
@@ -42,6 +42,12 @@ int main()
try
{
cv
::
VideoCapture
cap
(
0
);
if
(
!
cap
.
isOpened
())
{
cerr
<<
"Unable to connect to camera"
<<
endl
;
return
1
;
}
image_window
win
;
// Load face detection and pose estimation models.
...
...
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