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
173bb97f
Commit
173bb97f
authored
Jan 03, 2015
by
Vinh Khuc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explained the difference between pykvals in the Python API and kvals in C++ code
parent
067e36b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
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