Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
triple-Mu authored and Chilicyy committed Apr 29, 2023
1 parent 2f44eab commit adbd6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/NCNN/Android/app/src/main/jni/yolo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ int Yolo::detect(const cv::Mat& rgb, std::vector<Object>& objects, float prob_th
obj.rect.y = y0;
obj.rect.width = x1 - x0;
obj.rect.height = y1 - y0;
if (obj.rect.width > 10.f || obj.rect.height > 10.f) {
if (obj.rect.width > 10.f && obj.rect.height > 10.f) {
objects.push_back(obj);
}
}
Expand Down

0 comments on commit adbd6fe

Please sign in to comment.