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
9be82fdc
Commit
9be82fdc
authored
Mar 03, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
42d6520c
795f6382
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
add_python_module
dlib/cmake_utils/add_python_module
+1
-0
cca.cpp
dlib/test/cca.cpp
+1
-1
object_detection.cpp
tools/python/src/object_detection.cpp
+3
-9
No files found.
dlib/cmake_utils/add_python_module
View file @
9be82fdc
...
...
@@ -68,6 +68,7 @@ if (PYTHON3)
if (NOT Boost_FOUND)
FIND_PACKAGE(Boost 1.41.0 COMPONENTS python)
endif()
set(Python_ADDITIONAL_VERSIONS 3.5)
FIND_PACKAGE(PythonLibs 3.4 REQUIRED)
else()
FIND_PACKAGE(Boost 1.41.0 COMPONENTS python)
...
...
dlib/test/cca.cpp
View file @
9be82fdc
...
...
@@ -139,7 +139,7 @@ namespace
dlog
<<
LINFO
<<
"correlation error: "
<<
corr_error
;
DLIB_TEST_MSG
(
corr_error
<
1e-13
,
Ltrans
<<
"
\n\n
"
<<
Rtrans
);
DLIB_TEST
(
trans_error
<
1
e-9
);
DLIB_TEST
(
trans_error
<
2
e-9
);
}
dlog
<<
LINFO
<<
"*****************************************************"
;
...
...
tools/python/src/object_detection.cpp
View file @
9be82fdc
...
...
@@ -325,9 +325,7 @@ ensures \n\
- This function runs the object detector on the input image and returns
\n
\
a list of detections.
\n
\
- Upsamples the image upsample_num_times before running the basic
\n
\
detector. If you don't know how many times you want to upsample then
\n
\
don't provide a value for upsample_num_times and an appropriate
\n
\
default will be used."
)
detector."
)
.
def
(
"run"
,
run_rect_detector
,
(
arg
(
"image"
),
arg
(
"upsample_num_times"
)
=
0
,
arg
(
"adjust_threshold"
)
=
0.0
),
"requires
\n
\
- image is a numpy ndarray containing either an 8bit grayscale or RGB
\n
\
...
...
@@ -337,9 +335,7 @@ ensures \n\
- This function runs the object detector on the input image and returns
\n
\
a tuple of (list of detections, list of scores, list of weight_indices).
\n
\
- Upsamples the image upsample_num_times before running the basic
\n
\
detector. If you don't know how many times you want to upsample then
\n
\
don't provide a value for upsample_num_times and an appropriate
\n
\
default will be used."
)
detector."
)
.
def
(
"run_multiple"
,
run_multiple_rect_detectors
,(
arg
(
"detectors"
),
arg
(
"image"
),
arg
(
"upsample_num_times"
)
=
0
,
arg
(
"adjust_threshold"
)
=
0.0
),
"requires
\n
\
- detectors is a list of detectors.
\n
\
...
...
@@ -350,9 +346,7 @@ ensures \n\
- This function runs the list of object detectors at once on the input image and returns
\n
\
a tuple of (list of detections, list of scores, list of weight_indices).
\n
\
- Upsamples the image upsample_num_times before running the basic
\n
\
detector. If you don't know how many times you want to upsample then
\n
\
don't provide a value for upsample_num_times and an appropriate
\n
\
default will be used."
)
detector."
)
.
staticmethod
(
"run_multiple"
)
.
def
(
"save"
,
save_simple_object_detector
,
(
arg
(
"detector_output_filename"
)),
"Save a simple_object_detector to the provided path."
)
.
def_pickle
(
serialize_pickle
<
type
>
());
...
...
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