diff --git a/dlib/python/numpy_image.h b/dlib/python/numpy_image.h index 1664fec54..562f972c4 100644 --- a/dlib/python/numpy_image.h +++ b/dlib/python/numpy_image.h @@ -163,7 +163,7 @@ namespace dlib const py::object& rhs ) { - py::array_t::basic_pixel_type, py::array::c_style> arr = rhs.cast(); + py::array arr = rhs.cast(); assert_is_image(arr); py::array_t::basic_pixel_type, py::array::c_style>::operator=(arr); return *this;