Enable mutable images for Haar cascades.
@@ -5044,7 +5044,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_KW(py_image_find_template_obj, 3, py_image_find_t
static mp_obj_t py_image_find_features(uint n_args, const mp_obj_t *args, mp_map_t *kw_args)
{
- image_t *arg_img = py_helper_arg_to_image_grayscale(args[0]);
+ image_t *arg_img = py_helper_arg_to_image_mutable(args[0]);
cascade_t *cascade = py_cascade_cobj(args[1]);
cascade->threshold = py_helper_keyword_float(n_args, args, 2, kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_threshold), 0.5f);
cascade->scale_factor = py_helper_keyword_float(n_args, args, 3, kw_args, MP_OBJ_NEW_QSTR(MP_QSTR_scale_factor), 1.5f);
