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
c5b29d98
Commit
c5b29d98
authored
Feb 11, 2017
by
Davis King
Browse files
Added try/catch block to main
parent
d7a6cd49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
examples/dnn_face_recognition_ex.cpp
examples/dnn_face_recognition_ex.cpp
+5
-1
No files found.
examples/dnn_face_recognition_ex.cpp
View file @
c5b29d98
...
@@ -78,7 +78,7 @@ std::vector<matrix<rgb_pixel>> jitter_image(
...
@@ -78,7 +78,7 @@ std::vector<matrix<rgb_pixel>> jitter_image(
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
try
{
{
if
(
argc
!=
2
)
if
(
argc
!=
2
)
{
{
...
@@ -194,6 +194,10 @@ int main(int argc, char** argv)
...
@@ -194,6 +194,10 @@ int main(int argc, char** argv)
cout
<<
"hit enter to terminate"
<<
endl
;
cout
<<
"hit enter to terminate"
<<
endl
;
cin
.
get
();
cin
.
get
();
}
}
catch
(
std
::
exception
&
e
)
{
cout
<<
e
.
what
()
<<
endl
;
}
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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