Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 615f91c

Browse files
committed
refactor: Update detect-filter.cpp to use float values for minAreaThreshold comparison
1 parent 275c5b0 commit 615f91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detect-filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ void detect_filter_video_tick(void *data, float seconds)
863863
if (tf->minAreaThreshold > 0) {
864864
std::vector<Object> filtered_objects;
865865
for (const Object &obj : objects) {
866-
if (obj.rect.area() > tf->minAreaThreshold) {
866+
if (obj.rect.area() > (float)tf->minAreaThreshold) {
867867
filtered_objects.push_back(obj);
868868
}
869869
}

0 commit comments

Comments
 (0)