mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix assertion in find_features.
This commit is contained in:
parent
015181588a
commit
473b8025bf
@ -950,7 +950,7 @@ static mp_obj_t py_image_find_features(uint n_args, const mp_obj_t *args, mp_map
|
||||
"Region of interest is smaller than detector window!");
|
||||
|
||||
// Make sure ROI is smaller than image size
|
||||
PY_ASSERT_TRUE_MSG(((roi.x+roi.w) < image->w && (roi.y+roi.h) < image->h),
|
||||
PY_ASSERT_TRUE_MSG(((roi.x+roi.w) <= image->w && (roi.y+roi.h) <= image->h),
|
||||
"Region of interest is bigger than frame size!");
|
||||
|
||||
// Detect objects
|
||||
|
||||
Loading…
Reference in New Issue
Block a user