mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix cascade step.
* Assumed window width == height.
This commit is contained in:
parent
c3a75a515b
commit
a054b5faab
@ -94,9 +94,9 @@ array_t *imlib_detect_objects(image_t *image, cascade_t *cascade, rectangle_t *r
|
||||
// Start with a step of 5% of the image width and reduce at each scaling step
|
||||
cascade->step = (roi->w*50)/1000;
|
||||
|
||||
// Make sure step is less than feature height + 1
|
||||
if (cascade->step > cascade->window.w) {
|
||||
cascade->step = cascade->window.w;
|
||||
// Make sure step is less than window height + 1
|
||||
if (cascade->step > cascade->window.h) {
|
||||
cascade->step = cascade->window.h;
|
||||
}
|
||||
|
||||
// Allocate integral images
|
||||
|
||||
Loading…
Reference in New Issue
Block a user