mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added missing requirements
This commit is contained in:
parent
c4c8535dae
commit
048af3c7b4
@ -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])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user