Skip to content

Commit

Permalink
modify nms
Browse files Browse the repository at this point in the history
  • Loading branch information
MirrorYu committed Mar 5, 2020
1 parent 7492696 commit 980e127
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prj-mnn/cpp/centerface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ int Centerface::Detect(const cv::Mat & img_src, std::vector<FaceInfo>* faces) {
faces_tmp.push_back(face_info);
}
}
std::sort(faces_tmp.begin(), faces_tmp.end(),
[](const FaceInfo& a, const FaceInfo& b) {
return a.score_ < b.score_;
});
NMS(faces_tmp, faces, nmsThreshold_);
std::cout << "end detect." << std::endl;
return 0;
Expand Down

0 comments on commit 980e127

Please sign in to comment.