Skip to content

Commit

Permalink
Allow for bigger pose angles when extracting AUs
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Mar 22, 2016
1 parent 7da0ad0 commit 18696de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/local/FaceAnalyser/src/FaceAnalyser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ void FaceAnalyser::AddNextFrame(const cv::Mat& frame, const CLMTracker::CLM& clm

// Find the appropriate AU (if not found add it)
// Only add if the detection was successful and not too out of plane
if(clm_model.detection_success && angle_norm < 0.4)
if(clm_model.detection_success && angle_norm < 0.5)
{
AU_predictions_reg_all_hist[AU_predictions_reg[au].first].push_back(AU_predictions_reg[au].second);
}
Expand All @@ -363,7 +363,7 @@ void FaceAnalyser::AddNextFrame(const cv::Mat& frame, const CLMTracker::CLM& clm

// Find the appropriate AU (if not found add it)
// Only add if the detection was successful and not too out of plane
if(clm_model.detection_success && angle_norm < 0.4)
if(clm_model.detection_success && angle_norm < 0.5)
{
AU_predictions_class_all_hist[AU_predictions_class[au].first].push_back(AU_predictions_class[au].second);
}
Expand All @@ -383,7 +383,7 @@ void FaceAnalyser::AddNextFrame(const cv::Mat& frame, const CLMTracker::CLM& clm

view_used = orientation_to_use;

bool success = clm_model.detection_success && angle_norm < 0.4;
bool success = clm_model.detection_success && angle_norm < 0.5;

confidences.push_back(clm_model.detection_certainty);
valid_preds.push_back(success);
Expand Down Expand Up @@ -422,7 +422,7 @@ void FaceAnalyser::PredictAUs(const cv::Mat_<double>& hog_features, const cv::Ma

// Find the appropriate AU (if not found add it)
// Only add if the detection was successful and not too out of plane
if(clm_model.detection_success && angle_norm < 0.4)
if(clm_model.detection_success && angle_norm < 0.5)
{
AU_predictions_reg_all_hist[AU_predictions_reg[au].first].push_back(AU_predictions_reg[au].second);
}
Expand All @@ -439,7 +439,7 @@ void FaceAnalyser::PredictAUs(const cv::Mat_<double>& hog_features, const cv::Ma

// Find the appropriate AU (if not found add it)
// Only add if the detection was successful and not too out of plane
if(clm_model.detection_success && angle_norm < 0.4)
if(clm_model.detection_success && angle_norm < 0.5)
{
AU_predictions_class_all_hist[AU_predictions_class[au].first].push_back(AU_predictions_class[au].second);
}
Expand All @@ -465,7 +465,7 @@ void FaceAnalyser::PredictAUs(const cv::Mat_<double>& hog_features, const cv::Ma

view_used = orientation_to_use;

bool success = clm_model.detection_success && angle_norm < 0.4;
bool success = clm_model.detection_success && angle_norm < 0.5;

confidences.push_back(clm_model.detection_certainty);
valid_preds.push_back(success);
Expand Down

0 comments on commit 18696de

Please sign in to comment.