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
4a9be7bb
Commit
4a9be7bb
authored
Feb 23, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved python docs
parent
2293c91e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
6 deletions
+44
-6
object_detection.cpp
tools/python/src/object_detection.cpp
+44
-6
No files found.
tools/python/src/object_detection.cpp
View file @
4a9be7bb
...
@@ -225,17 +225,55 @@ void bind_object_detection()
...
@@ -225,17 +225,55 @@ void bind_object_detection()
{
{
using
boost
::
python
::
arg
;
using
boost
::
python
::
arg
;
class_
<
simple_object_detector_training_options
>
(
"simple_object_detector_training_options"
)
class_
<
simple_object_detector_training_options
>
(
"simple_object_detector_training_options"
,
"This object is a container for the options to the train_simple_object_detector() routine."
)
.
add_property
(
"be_verbose"
,
&
simple_object_detector_training_options
::
be_verbose
,
.
add_property
(
"be_verbose"
,
&
simple_object_detector_training_options
::
be_verbose
,
&
simple_object_detector_training_options
::
be_verbose
)
&
simple_object_detector_training_options
::
be_verbose
,
"If true, train_simple_object_detector() will print out a lot of information to the screen while training."
)
.
add_property
(
"add_left_right_image_flips"
,
&
simple_object_detector_training_options
::
add_left_right_image_flips
,
.
add_property
(
"add_left_right_image_flips"
,
&
simple_object_detector_training_options
::
add_left_right_image_flips
,
&
simple_object_detector_training_options
::
add_left_right_image_flips
)
&
simple_object_detector_training_options
::
add_left_right_image_flips
,
"if true, train_simple_object_detector() will assume the objects are
\n
\
left/right symmetric and add in left right flips of the training
\n
\
images. This doubles the size of the training dataset."
/*!
if true, train_simple_object_detector() will assume the objects are
left/right symmetric and add in left right flips of the training
images. This doubles the size of the training dataset.
!*/
)
.
add_property
(
"detection_window_size"
,
&
simple_object_detector_training_options
::
detection_window_size
,
.
add_property
(
"detection_window_size"
,
&
simple_object_detector_training_options
::
detection_window_size
,
&
simple_object_detector_training_options
::
detection_window_size
)
&
simple_object_detector_training_options
::
detection_window_size
,
"The sliding window used will have about this many pixels inside it."
)
.
add_property
(
"C"
,
&
simple_object_detector_training_options
::
C
,
.
add_property
(
"C"
,
&
simple_object_detector_training_options
::
C
,
&
simple_object_detector_training_options
::
C
)
&
simple_object_detector_training_options
::
C
,
"C is the usual SVM C regularization parameter. So it is passed to
\n
\
structural_object_detection_trainer::set_c(). Larger values of C
\n
\
will encourage the trainer to fit the data better but might lead to
\n
\
overfitting. Therefore, you must determine the proper setting of
\n
\
this parameter experimentally."
/*!
C is the usual SVM C regularization parameter. So it is passed to
structural_object_detection_trainer::set_c(). Larger values of C
will encourage the trainer to fit the data better but might lead to
overfitting. Therefore, you must determine the proper setting of
this parameter experimentally.
!*/
)
.
add_property
(
"num_threads"
,
&
simple_object_detector_training_options
::
num_threads
,
.
add_property
(
"num_threads"
,
&
simple_object_detector_training_options
::
num_threads
,
&
simple_object_detector_training_options
::
num_threads
);
&
simple_object_detector_training_options
::
num_threads
,
"train_simple_object_detector() will use this many threads of
\n
\
execution. Set this to the number of CPU cores on your machine to
\n
\
obtain the fastest training speed."
/*!
train_simple_object_detector() will use this many threads of
execution. Set this to the number of CPU cores on your machine to
obtain the fastest training speed.
!*/
);
class_
<
simple_test_results
>
(
"simple_test_results"
)
class_
<
simple_test_results
>
(
"simple_test_results"
)
.
add_property
(
"precision"
,
&
simple_test_results
::
precision
)
.
add_property
(
"precision"
,
&
simple_test_results
::
precision
)
...
...
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