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
37d13ae8
Commit
37d13ae8
authored
May 25, 2018
by
Davis King
Browse files
Fixed some python functions not taking as wide a range of images as they did in
previous dlib versions.
parent
027cf643
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tools/python/src/conversion.h
tools/python/src/conversion.h
+1
-1
tools/python/src/shape_predictor.cpp
tools/python/src/shape_predictor.cpp
+1
-1
No files found.
tools/python/src/conversion.h
View file @
37d13ae8
...
...
@@ -31,7 +31,7 @@ void images_and_nested_params_to_dlib(
for
(
py
::
iterator
param_it
=
params_it
->
begin
();
param_it
!=
params_it
->
end
();
++
param_it
)
params
[
image_idx
].
push_back
(
param_it
->
cast
<
param_type
>
());
images
[
image_idx
]
=
image_it
->
cast
<
py
::
object
>
();
assign_image
(
images
[
image_idx
]
,
image_it
->
cast
<
py
::
array
>
()
)
;
}
}
...
...
tools/python/src/shape_predictor.cpp
View file @
37d13ae8
...
...
@@ -128,7 +128,7 @@ inline double test_shape_predictor_with_images_py (
++
det_it
)
detections
[
i
].
push_back
(
det_it
->
cast
<
full_object_detection
>
());
images
[
i
]
=
pyimages
[
i
];
assign_image
(
images
[
i
]
,
pyimages
[
i
]
.
cast
<
py
::
array
>
())
;
if
(
num_scales
>
0
)
{
if
(
num_boxes
!=
py
::
len
(
pyscales
[
i
]))
...
...
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