Some more adaptation to get the first version of interface working with FaceLandmarkVid

This commit is contained in:
Tadas Baltrusaitis
2018-02-12 08:24:59 +00:00
parent da29fb402c
commit 4ae2ce5e1f
5 changed files with 10 additions and 19 deletions

View File

@@ -377,6 +377,9 @@ float DetectionValidator::Check(const cv::Vec3d& orientation, const cv::Mat_<uch
// The actual validation step
double dec = CheckCNN(warped, id);
// Convert it to a more interpretable signal (0 low confidence, 1 high confidence)
dec = 0.5 * (1.0 - dec);
return (float)dec;
}