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
173bb97f
Commit
173bb97f
authored
Jan 03, 2015
by
Vinh Khuc
Browse files
Explained the difference between pykvals in the Python API and kvals in C++ code
parent
067e36b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tools/python/src/object_detection.cpp
tools/python/src/object_detection.cpp
+5
-1
No files found.
tools/python/src/object_detection.cpp
View file @
173bb97f
...
...
@@ -199,13 +199,17 @@ obtain the fastest training speed.");
.
def_pickle
(
serialize_pickle
<
type
>
());
}
// Here, pykvals is actually the result of linspace(start, end, num) and it is different from kvals used
// in find_candidate_object_locations(). See dlib/image_transforms/segment_image_abstract.h for more details.
// TODO: Need to figure out how to allow specifying matrix_range_exp<double> kvals in Python
def
(
"find_candidate_object_locations"
,
find_candidate_object_locations_py
,
(
arg
(
"image"
),
arg
(
"rects"
),
arg
(
"pykvals"
)
=
boost
::
python
::
make_tuple
(
50
,
200
,
3
),
arg
(
"min_size"
)
=
20
,
arg
(
"max_merging_iterations"
)
=
50
),
"Returns found candidate objects
\n
\
requires
\n
\
- image == an image object which is a numpy ndarray
\n
\
- kvals == a tuple with three elements for start, end, num.
\n
\
- is_vector(kvals) == true
\n
\
- kvals.size() > 0
\n
\
ensures
\n
\
- This function takes an input image and generates a set of candidate
\n
\
rectangles which are expected to bound any objects in the image. It does
\n
\
...
...
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