diff --git a/src/detect-filter.cpp b/src/detect-filter.cpp index 0162bc4..09fce84 100644 --- a/src/detect-filter.cpp +++ b/src/detect-filter.cpp @@ -863,7 +863,7 @@ void detect_filter_video_tick(void *data, float seconds) if (tf->minAreaThreshold > 0) { std::vector filtered_objects; for (const Object &obj : objects) { - if (obj.rect.area() > tf->minAreaThreshold) { + if (obj.rect.area() > (float)tf->minAreaThreshold) { filtered_objects.push_back(obj); } }