Skip to content

Commit

Permalink
refactor: Update detect-filter.cpp to use float values for minAreaThr…
Browse files Browse the repository at this point in the history
…eshold comparison
  • Loading branch information
royshil committed Jun 1, 2024
1 parent 275c5b0 commit 615f91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detect-filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ void detect_filter_video_tick(void *data, float seconds)
if (tf->minAreaThreshold > 0) {
std::vector<Object> 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);
}
}
Expand Down

0 comments on commit 615f91c

Please sign in to comment.