mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge branch 4.x
This commit is contained in:
@@ -200,6 +200,9 @@ private:
|
||||
float score = std::sqrt(cls_score * obj_score);
|
||||
face.at<float>(0, 14) = score;
|
||||
|
||||
// Checking if the score meets the threshold before adding the face
|
||||
if (score < scoreThreshold)
|
||||
continue;
|
||||
// Get bounding box
|
||||
float cx = ((c + bbox_v[idx * 4 + 0]) * strides[i]);
|
||||
float cy = ((r + bbox_v[idx * 4 + 1]) * strides[i]);
|
||||
|
||||
Reference in New Issue
Block a user