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
37d13ae8
Commit
37d13ae8
authored
May 25, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some python functions not taking as wide a range of images as they did in
previous dlib versions.
parent
027cf643
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
conversion.h
tools/python/src/conversion.h
+1
-1
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