From 015181588a3606c4b63cc7dea4c087a7794a8d8e Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Mon, 22 Feb 2016 19:35:11 +0200 Subject: [PATCH] Fix assertion in find_features. --- src/omv/py/py_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omv/py/py_image.c b/src/omv/py/py_image.c index a582587fe..fd830937c 100644 --- a/src/omv/py/py_image.c +++ b/src/omv/py/py_image.c @@ -942,7 +942,7 @@ static mp_obj_t py_image_find_features(uint n_args, const mp_obj_t *args, mp_map cascade->scale_factor = py_helper_lookup_float(kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_scale), 1.5f); // Make sure ROI is not negative - PY_ASSERT_TRUE_MSG((roi.x < 0) || (roi.y < 0) || (roi.w < 0) || (roi.h < 0), + PY_ASSERT_FALSE_MSG((roi.x < 0) || (roi.y < 0) || (roi.w < 0) || (roi.h < 0), "Region of interest is negative!"); // Make sure ROI is bigger than feature size