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