Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
048af3c7
Commit
048af3c7
authored
Aug 25, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing requirements
parent
c4c8535d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
structural_object_detection_trainer.h
dlib/svm/structural_object_detection_trainer.h
+3
-1
structural_object_detection_trainer_abstract.h
dlib/svm/structural_object_detection_trainer_abstract.h
+1
-0
structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+1
-0
structural_svm_object_detection_problem_abstract.h
dlib/svm/structural_svm_object_detection_problem_abstract.h
+1
-0
No files found.
dlib/svm/structural_object_detection_trainer.h
View file @
048af3c7
...
...
@@ -262,13 +262,15 @@ namespace dlib
{
for
(
unsigned
long
j
=
0
;
j
<
truth_object_detections
[
i
].
size
();
++
j
)
{
DLIB_ASSERT
(
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
==
get_scanner
().
get_num_movable_components_per_detection_template
(),
DLIB_ASSERT
(
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
==
get_scanner
().
get_num_movable_components_per_detection_template
()
&&
all_parts_in_rect
(
truth_object_detections
[
i
][
j
])
==
true
,
"
\t
trained_function_type structural_object_detection_trainer::train()"
<<
"
\n\t
invalid inputs were given to this function"
<<
"
\n\t
truth_object_detections["
<<
i
<<
"]["
<<
j
<<
"].movable_parts.size(): "
<<
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
<<
"
\n\t
get_scanner().get_num_movable_components_per_detection_template(): "
<<
get_scanner
().
get_num_movable_components_per_detection_template
()
<<
"
\n\t
all_parts_in_rect(truth_object_detections["
<<
i
<<
"]["
<<
j
<<
"]): "
<<
all_parts_in_rect
(
truth_object_detections
[
i
][
j
])
);
}
}
...
...
dlib/svm/structural_object_detection_trainer_abstract.h
View file @
048af3c7
...
...
@@ -296,6 +296,7 @@ namespace dlib
(also, image_array_type must be an implementation of dlib/array/array_kernel_abstract.h)
- for all valid i, j:
- truth_object_detections[i][j].movable_parts.size() == get_scanner().get_num_movable_components_per_detection_template()
- all_parts_in_rect(truth_object_detections[i][j]) == true
ensures
- Uses the structural_svm_object_detection_problem to train an object_detector
on the given images and truth_object_detections.
...
...
dlib/svm/structural_svm_object_detection_problem.h
View file @
048af3c7
...
...
@@ -70,6 +70,7 @@ namespace dlib
truth_object_detections
[
i
][
j
].
movable_parts
.
size
()
<<
"
\n\t
scanner.get_num_movable_components_per_detection_template(): "
<<
scanner
.
get_num_movable_components_per_detection_template
()
<<
"
\n\t
all_parts_in_rect(truth_object_detections["
<<
i
<<
"]["
<<
j
<<
"]): "
<<
all_parts_in_rect
(
truth_object_detections
[
i
][
j
])
);
}
}
...
...
dlib/svm/structural_svm_object_detection_problem_abstract.h
View file @
048af3c7
...
...
@@ -92,6 +92,7 @@ namespace dlib
- scanner.load(images[0]) must be a valid expression.
- for all valid i, j:
- truth_object_detections[i][j].movable_rects.size() == scanner.get_num_movable_components_per_detection_template()
- all_parts_in_rect(truth_object_detections[i][j]) == true
ensures
- This object attempts to learn a mapping from the given images to the
object locations given in truth_object_detections. In particular, it attempts to
...
...
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