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
b5a90e52
Commit
b5a90e52
authored
Aug 07, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests to work with current code
parent
36d5677a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
object_detector.cpp
dlib/test/object_detector.cpp
+6
-0
No files found.
dlib/test/object_detector.cpp
View file @
b5a90e52
...
...
@@ -384,6 +384,7 @@ namespace
const
rectangle
object_box
=
compute_box_dimensions
(
1
,
35
*
35
);
scanner
.
add_detection_template
(
object_box
,
create_grid_detection_template
(
object_box
,
2
,
2
));
setup_hashed_features
(
scanner
,
images
,
9
);
use_uniform_feature_weights
(
scanner
);
structural_object_detection_trainer
<
image_scanner_type
>
trainer
(
scanner
);
trainer
.
set_num_threads
(
4
);
trainer
.
set_overlap_tester
(
test_box_overlap
(
0
,
0
));
...
...
@@ -424,6 +425,7 @@ namespace
typedef
scan_image_boxes
<
feature_extractor_type
>
image_scanner_type
;
image_scanner_type
scanner
;
setup_hashed_features
(
scanner
,
images
,
9
);
use_uniform_feature_weights
(
scanner
);
structural_object_detection_trainer
<
image_scanner_type
>
trainer
(
scanner
);
trainer
.
set_num_threads
(
4
);
trainer
.
set_overlap_tester
(
test_box_overlap
(
0
,
0
));
...
...
@@ -472,6 +474,7 @@ namespace
mboxes
.
push_back
(
centered_rect
(
0
,
0
,
mbox_size
,
mbox_size
));
scanner
.
add_detection_template
(
object_box
,
create_grid_detection_template
(
object_box
,
1
,
1
),
mboxes
);
setup_hashed_features
(
scanner
,
images
,
9
);
use_uniform_feature_weights
(
scanner
);
structural_object_detection_trainer
<
image_scanner_type
>
trainer
(
scanner
);
trainer
.
set_num_threads
(
4
);
trainer
.
set_overlap_tester
(
test_box_overlap
(
0
,
0
));
...
...
@@ -514,6 +517,7 @@ namespace
const
rectangle
object_box
=
compute_box_dimensions
(
1
,
35
*
35
);
scanner
.
add_detection_template
(
object_box
,
create_grid_detection_template
(
object_box
,
2
,
2
));
setup_hashed_features
(
scanner
,
images
,
9
);
use_uniform_feature_weights
(
scanner
);
structural_object_detection_trainer
<
image_scanner_type
>
trainer
(
scanner
);
trainer
.
set_num_threads
(
4
);
trainer
.
set_overlap_tester
(
test_box_overlap
(
0
,
0
));
...
...
@@ -556,6 +560,7 @@ namespace
const
rectangle
object_box
=
compute_box_dimensions
(
1
,
35
*
35
);
scanner
.
add_detection_template
(
object_box
,
create_grid_detection_template
(
object_box
,
2
,
2
));
setup_hashed_features
(
scanner
,
images
,
9
);
use_uniform_feature_weights
(
scanner
);
structural_object_detection_trainer
<
image_scanner_type
>
trainer
(
scanner
);
trainer
.
set_num_threads
(
4
);
trainer
.
set_overlap_tester
(
test_box_overlap
(
0
,
0
));
...
...
@@ -604,6 +609,7 @@ namespace
mboxes
.
push_back
(
centered_rect
(
0
,
0
,
mbox_size
,
mbox_size
));
scanner
.
add_detection_template
(
object_box
,
create_grid_detection_template
(
object_box
,
2
,
2
),
mboxes
);
setup_hashed_features
(
scanner
,
images
,
9
);
use_uniform_feature_weights
(
scanner
);
structural_object_detection_trainer
<
image_scanner_type
>
trainer
(
scanner
);
trainer
.
set_num_threads
(
4
);
trainer
.
set_overlap_tester
(
test_box_overlap
(
0
,
0
));
...
...
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