Commit 934ce3b0 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #2251 from clunietp:quality_issue_2226

parents b72dc5e6 ea84c59b
......@@ -230,7 +230,7 @@ namespace
cv::Mat result;
model->predict(feat_mat, result);
return result.at<float>(0);
return std::min( std::max( result.at<float>(0), 0.f ), 100.f ); // clamp to [0-100]
}
// computes score for a single frame
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment