diff --git a/dlib/python/numpy_image.h b/dlib/python/numpy_image.h index 30733a52b..9d73bdf7e 100644 --- a/dlib/python/numpy_image.h +++ b/dlib/python/numpy_image.h @@ -146,6 +146,14 @@ namespace dlib assert_is_image(img); } + numpy_image ( + long rows, + long cols + ) + { + set_size(rows,cols); + } + numpy_image ( const py::object& img ) : numpy_image(img.cast()) {}