Commit 37d13ae8 authored by Davis King's avatar Davis King

Fixed some python functions not taking as wide a range of images as they did in

previous dlib versions.
parent 027cf643
......@@ -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>());
}
}
......
......@@ -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]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment