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
331b2d75
Commit
331b2d75
authored
Dec 15, 2011
by
Davis King
Browse files
Improved error messages from object detector.
parent
dcb8b6ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dlib/svm/structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+3
-0
No files found.
dlib/svm/structural_svm_object_detection_problem.h
View file @
331b2d75
...
@@ -184,6 +184,9 @@ namespace dlib
...
@@ -184,6 +184,9 @@ namespace dlib
sout
<<
"The offending rectangles are:
\n
"
;
sout
<<
"The offending rectangles are:
\n
"
;
sout
<<
"rect1: "
<<
mapped_rects
[
i
]
<<
endl
;
sout
<<
"rect1: "
<<
mapped_rects
[
i
]
<<
endl
;
sout
<<
"rect2: "
<<
mapped_rects
[
j
]
<<
endl
;
sout
<<
"rect2: "
<<
mapped_rects
[
j
]
<<
endl
;
sout
<<
"overlap amount: "
<<
mapped_rects
[
i
].
intersect
(
mapped_rects
[
j
]).
area
()
/
(
double
)(
mapped_rects
[
i
]
+
mapped_rects
[
j
]).
area
()
<<
endl
;
throw
dlib
::
impossible_labeling_error
(
sout
.
str
());
throw
dlib
::
impossible_labeling_error
(
sout
.
str
());
}
}
}
}
...
...
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